3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->b = function($test){ echo $test; }; {$a->b}(); // работает

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.04320.07
7.0.10.0030.09020.08
7.0.00.0070.07720.09
5.6.170.0370.07320.40
5.6.160.0200.03720.47
5.6.150.0100.06318.19
5.6.140.0070.07718.15
5.6.130.0030.04718.17
5.6.120.0070.08721.04
5.6.110.0030.06721.14
5.6.100.0030.05021.01
5.6.90.0170.07720.97
5.6.80.0200.06720.43
5.5.310.0230.04720.35
5.5.300.0100.07718.07
5.5.290.0130.06718.01
5.5.280.0230.07320.96
5.5.270.0100.08020.73
5.5.260.0100.06720.84
5.5.250.0200.06320.69
5.5.240.0270.06720.16

preferences:
144.93 ms | 1394 KiB | 7 Q