3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function a(){return 'A'}; } $a = new A; var_dump(new {$a->a()});

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.00.0030.05320.30
5.6.160.0100.09020.52
5.6.150.0070.04018.29
5.6.140.0030.04718.21
5.6.130.0000.05318.18
5.6.120.0130.05721.01
5.6.110.0070.06320.96
5.6.100.0130.03020.89
5.6.90.0130.07720.97
5.6.80.0100.05020.39
5.5.300.0070.03317.94
5.5.290.0100.03318.08
5.5.280.0070.08720.77
5.5.270.0100.04320.84
5.5.260.0070.07020.89
5.5.250.0230.07320.78
5.5.240.4230.03720.35

preferences:
140.36 ms | 1394 KiB | 7 Q