3v4l.org

run code in 300+ PHP versions simultaneously
<?php $before = 'abca'; $after = preg_replace( '/a/', 'a', $before, -1, $count ); if ( $after === $before ) { echo "NO REPLACEMENTS" . PHP_EOL; } echo $count . " REPLACEMENTS";

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.00.0230.00816.64
8.4.150.0190.00619.75
8.4.140.0130.00917.64
8.4.90.0110.00918.15
8.3.280.0100.01218.47
8.3.270.0120.00718.61
8.3.180.0100.00916.68
8.3.50.0130.00518.50

preferences:
34.5 ms | 403 KiB | 5 Q