3v4l.org

run code in 300+ PHP versions simultaneously
<?php $callable = function(&$foo) { $foo = 42; } $bar = 23; $callable(23); var_dump($bar);

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.0000.09020.22
5.6.160.0070.03720.55
5.6.150.0070.08318.18
5.6.140.0000.06318.14
5.6.130.0100.04318.14
5.6.120.0030.08320.99
5.6.110.0000.09021.02
5.6.100.0100.06321.03
5.6.90.0100.08020.98
5.6.80.0130.07720.38
5.5.300.0070.04017.98
5.5.290.0030.06017.92
5.5.280.0100.05720.68
5.5.270.0130.07720.87
5.5.260.0130.06720.68
5.5.250.0100.07720.50
5.5.240.0130.06320.19

preferences:
141.25 ms | 1394 KiB | 7 Q