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.0100.08320.09
5.6.160.0070.07020.45
5.6.150.0100.03718.19
5.6.140.0130.07018.23
5.6.130.0130.07318.15
5.6.120.0030.08720.90
5.6.110.0100.08321.04
5.6.100.0070.04021.04
5.6.90.0170.07721.13
5.6.80.0130.07020.54
5.5.300.0030.04718.02
5.5.290.0100.08018.05
5.5.280.0130.07320.88
5.5.270.0100.07720.76
5.5.260.0200.07020.77
5.5.250.0070.08720.69
5.5.240.4130.04020.07

preferences:
147.78 ms | 1394 KiB | 7 Q