3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('memory_limit', '-1') $newArray = array(); while(true){ array_push($newArray,$newArray); } ?>

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.0370.06720.11
7.0.10.0070.05720.10
7.0.00.0070.08020.10
5.6.170.0230.06720.47
5.6.160.0070.05020.47
5.6.150.0070.07718.19
5.6.140.0100.07718.27
5.6.130.0100.07718.16
5.6.120.0070.08320.98
5.6.110.0100.07321.11
5.6.100.0100.08320.97
5.6.90.0130.04721.02
5.6.80.0100.05720.48
5.5.310.0200.05320.50
5.5.300.0070.05317.95
5.5.290.0070.08317.92
5.5.280.0130.03020.65
5.5.270.0070.07720.88
5.5.260.0170.07720.72
5.5.250.0070.08320.65
5.5.240.0300.06320.19

preferences:
141.75 ms | 1394 KiB | 7 Q