3v4l.org

run code in 300+ PHP versions simultaneously
<?php new Foo { function __toString() { throw new \Exception('My err mes'); } } $d = new Foo(); (string) $d;

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.10.0000.04720.30
7.0.00.0030.08720.01
5.6.160.0030.04020.47
5.6.150.0100.07318.29
5.6.140.0100.07318.23
5.6.130.0170.06718.11
5.6.120.0100.08721.09
5.6.110.0100.08020.98
5.6.100.0070.07321.06
5.6.90.0100.08321.02
5.6.80.0230.06020.37
5.5.300.0070.05317.98
5.5.290.0100.06317.94
5.5.280.0070.05320.87
5.5.270.0000.04720.61
5.5.260.0130.08020.79
5.5.250.0070.07320.46
5.5.240.0070.05720.07

preferences:
142.87 ms | 1394 KiB | 7 Q