3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bla = (int) count(array()); echo $bla; if (count(array() > 2) { echo "Your test is broken"; } else { echo "Good job, Pascal"; }

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.0330.06020.08
7.0.10.0100.06320.30
7.0.00.0030.04320.24
5.6.170.0370.05320.57
5.6.160.0070.08320.39
5.6.150.0130.05318.27
5.6.140.0100.08018.19
5.6.130.0130.05018.18
5.6.120.0100.06020.98
5.6.110.0100.08021.00
5.6.100.0000.06021.01
5.6.90.0130.08021.03
5.6.80.0070.07320.38
5.5.310.0200.04320.51
5.5.300.0130.03017.99
5.5.290.0070.03717.95
5.5.280.0130.07720.88
5.5.270.0000.07020.97
5.5.260.0100.08720.89
5.5.250.0100.05020.66
5.5.240.0130.04020.19

preferences:
141.8 ms | 1394 KiB | 7 Q