3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $string = "The quick blue fox jumped over the lazy dog."; $search = "blue"; $replace = "brown"; for($i = 0; $i < 1000; $i++) { echo str_replace($search, $replace, $string).PHP_EOL; }

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)
5.4.190.0120.04712.38
5.4.180.0140.04612.38
5.4.170.0180.04312.39
5.4.160.0140.04812.38
5.4.150.0210.03912.38
5.4.140.0170.04312.07
5.4.130.0180.04112.05
5.4.120.0170.04112.02
5.4.110.0110.04612.01
5.4.100.0140.04612.02
5.4.90.0150.04712.01
5.4.80.0180.04212.01
5.4.70.0120.04712.01
5.4.60.0150.04112.01
5.4.50.0160.04112.00
5.4.40.0140.04312.00
5.4.30.0150.04211.99
5.4.20.0150.04211.99
5.4.10.0140.04411.99
5.4.00.0170.03711.48
5.3.270.0160.04512.73
5.3.260.0150.04612.72
5.3.250.0230.03712.72
5.3.240.0160.04412.72
5.3.230.0160.04612.71
5.3.220.0190.04312.68
5.3.210.0240.04012.68
5.3.200.0140.04912.68
5.3.190.0150.04712.68
5.3.180.0160.04412.67
5.3.170.0120.04812.67
5.3.160.0160.04612.67
5.3.150.0190.04212.67
5.3.140.0200.04012.66
5.3.130.0140.04812.65
5.3.120.0140.04812.66
5.3.110.0180.04512.66
5.3.100.0150.04712.12
5.3.90.0100.05012.09
5.3.80.0110.05012.07
5.3.70.0130.04712.08
5.3.60.0130.04712.07
5.3.50.0200.04012.00
5.3.40.0200.04012.00
5.3.30.0150.04411.96
5.3.20.0140.04511.73
5.3.10.0150.04111.70
5.3.00.0220.03611.68

preferences:
139.7 ms | 1394 KiB | 7 Q