3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "asd"; namespace { function strlen($str) { return "overriden" . \strlen($str); } echo strlen($foo); }

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)
7.0.20.0270.05720.20
7.0.10.0070.06020.20
7.0.00.0170.07320.01
5.6.170.0500.07020.41
5.6.160.0070.08720.50
5.6.150.0100.03718.19
5.6.140.0130.07718.21
5.6.130.0030.05318.14
5.6.120.0100.05020.96
5.6.110.0130.07721.11
5.6.100.0100.07020.97
5.6.90.0100.07720.99
5.6.80.0300.06320.36
5.5.310.0330.03720.29
5.5.300.0100.05318.02
5.5.290.0270.05318.02
5.5.280.0070.07320.87
5.5.270.0070.08720.86
5.5.260.0170.07720.82
5.5.250.0170.07320.65
5.5.240.0200.08020.27

preferences:
139.47 ms | 1394 KiB | 7 Q