3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function b(){return 'A';} } $a = new A; var_dump( new ${!${''}= (function () { return '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.0130.07320.11
5.6.160.0070.06020.39
5.6.150.0070.08718.19
5.6.140.0170.04318.27
5.6.130.0070.04018.18
5.6.120.0170.03721.01
5.6.110.0100.07720.98
5.6.100.0000.04321.14
5.6.90.0130.07720.98
5.6.80.0130.07720.41
5.5.300.0000.04017.92
5.5.290.0070.03718.07
5.5.280.0100.07320.80
5.5.270.0130.07720.86
5.5.260.0030.04320.75
5.5.250.0030.04720.78
5.5.240.3700.04320.19

preferences:
151.91 ms | 1386 KiB | 7 Q