3v4l.org

run code in 300+ PHP versions simultaneously
<?php function local(){ $x = 0; return function(){ $x += 1; return $x; } } echo local();

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.10.0000.04720.07
7.0.00.0030.07020.11
5.6.160.0100.06720.46
5.6.150.0000.08718.16
5.6.140.0130.08018.19
5.6.130.0000.06718.29
5.6.120.0100.07721.14
5.6.110.0130.08021.14
5.6.100.0030.09020.98
5.6.90.0000.04720.98
5.6.80.0100.06320.49
5.5.300.0170.06717.92
5.5.290.0070.03718.04
5.5.280.0170.07720.81
5.5.270.0200.06720.87
5.5.260.0100.06020.62
5.5.250.0130.06320.80
5.5.240.0170.08020.16

preferences:
141.29 ms | 1394 KiB | 7 Q