Skip to content

Instantly share code, notes, and snippets.

@salmanarshad2000
salmanarshad2000 / startswith-endswith-benchmark.php
Created Apr 24, 2019
PHP StartsWith and EndsWith Function Benchmarks
View startswith-endswith-benchmark.php
<?php
/**
* PHP StartsWith and EndsWith Function Benchmarks
*
* Function implementations taken from:
* https://stackoverflow.com/q/834303/87015
*
* Command line:
* php.exe -d memory_limit=128M startswith-endswith-benchmark.php
*/