3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$dataSet = file_get_contents('ADDRESS OF DATABASE FILE'); $dataSet = "t0:4:2,t1:2:5,t0:4:2,t1:2:5"; foreach(explode(",",$dataSet) AS $key => $subarray) { $array[$key] = explode(":",$subarray); } for($itemNum = 0; $itemNum < sizeof($array); $itemNum++){ echo "<tr>"; for($itemNum2 = 0; $itemNum2 < sizeof($array[$itemNum]); $itemNum2++){ echo "<td>" . $array[$itemNum][$itemNum2] . "</td>"; } echo "</tr>"; } print_r($array); print(test); ?>
based on tbfBF

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0080.00816.57
7.3.00.0040.00816.76
7.2.130.0070.00717.09
7.2.120.0060.00917.01
7.2.110.0040.01116.86
7.2.100.0070.00716.79
7.2.90.0110.00417.10
7.2.80.0070.00316.76
7.2.70.0070.01016.86
7.2.60.0110.00516.94
7.2.50.0070.00316.87
7.2.40.0060.00316.96
7.2.30.0080.00616.95
7.2.20.0040.00716.97
7.2.10.0060.00917.03
7.2.00.0050.00618.06
7.1.250.0040.01116.03
7.1.200.0090.00615.82
7.1.100.0070.01018.21
7.1.70.0040.00417.28
7.1.60.0040.01219.40
7.1.50.0100.01016.81
7.1.00.0000.08022.27
7.0.200.0040.00416.48
7.0.140.0030.07321.95
7.0.60.0130.08319.93
7.0.50.0030.05717.87
7.0.40.0130.07320.04
7.0.30.0600.06320.18
7.0.20.0400.07020.30
7.0.10.0200.08020.09
7.0.00.0130.08320.06
5.6.280.0070.07321.13
5.6.210.0100.05720.76
5.6.200.0030.08318.17
5.6.190.0130.08020.41
5.6.180.3700.04320.61
5.6.170.0230.04720.71
5.6.160.0170.06020.54
5.6.150.0070.07318.28
5.6.140.0070.08318.18
5.6.130.0130.05718.15
5.6.120.0100.05321.00
5.6.110.0230.06721.04
5.6.100.0100.08020.90
5.6.90.0070.07321.00
5.6.80.0070.04020.52
5.6.70.0270.07020.34
5.5.350.0230.07720.30
5.5.340.0100.07717.95
5.5.330.0070.04720.37
5.5.320.0430.07020.34
5.5.310.0330.07020.34
5.5.300.0030.08317.98
5.5.290.0070.06318.13
5.5.280.0070.04320.89
5.5.270.0130.05020.83
5.5.260.0070.06720.72
5.5.250.0100.08020.54
5.5.240.0330.07320.28
5.4.450.0630.06719.58
5.4.440.0730.05719.51
5.4.430.0200.04319.53
5.4.420.0070.07019.53
5.4.410.0230.06019.35
5.4.400.0000.06319.13
5.4.390.0070.05319.13
5.4.380.0930.05718.72
5.4.370.1000.06318.78
5.4.360.1070.05718.70
5.4.350.1000.06018.59
5.4.340.1270.07318.84
5.4.320.0080.03912.49
5.4.310.0080.04212.48
5.4.300.0080.03512.49
5.4.290.0050.03912.48
5.4.280.0050.03712.38
5.4.270.0060.03712.38
5.4.260.0070.03712.38
5.4.250.0060.03812.38
5.4.240.0060.03712.38
5.4.230.0070.04512.38
5.4.220.0080.03612.38
5.4.210.0060.03812.37
5.4.200.0060.04412.38
5.4.190.0050.03812.37
5.4.180.0050.03812.37
5.4.170.0090.03312.38
5.4.160.0070.04512.38
5.4.150.0060.03612.37
5.4.140.0050.03812.06
5.4.130.0080.03612.05
5.4.120.0060.03612.00
5.4.110.0060.03712.00
5.4.100.0100.03311.99
5.4.90.0060.03812.00
5.4.80.0070.04112.00
5.4.70.0090.03311.99
5.4.60.0080.04911.99
5.4.50.0090.03411.99
5.4.40.0080.03611.98
5.4.30.0040.03811.98
5.4.20.0070.03411.98
5.4.10.0080.03411.98
5.4.00.0050.04711.47
5.3.290.0120.03612.80
5.3.280.0100.04612.71
5.3.270.0070.05112.72
5.3.260.0090.03912.72
5.3.250.0070.04112.72
5.3.240.0080.04012.72
5.3.230.0110.03412.71
5.3.220.0090.03712.68
5.3.210.0050.04212.68
5.3.200.0070.03612.68
5.3.190.0060.03812.68
5.3.180.0080.03912.67
5.3.170.0090.03512.67
5.3.160.0060.04312.67
5.3.150.0090.04412.68
5.3.140.0080.04012.66
5.3.130.0030.04212.66
5.3.120.0140.04012.66
5.3.110.0070.04212.66
5.3.100.0110.04112.12
5.3.90.0070.03812.09
5.3.80.0100.03312.09
5.3.70.0080.03812.09
5.3.60.0090.04112.07
5.3.50.0060.03712.02
5.3.40.0060.04112.01
5.3.30.0060.04111.98
5.3.20.0060.03711.75
5.3.10.0090.03211.72
5.3.00.0070.04211.71
5.2.170.0060.0309.21
5.2.160.0080.0269.21
5.2.150.0080.0279.21
5.2.140.0060.0309.20
5.2.130.0040.0309.16
5.2.120.0070.0289.17
5.2.110.0070.0279.18
5.2.100.0030.0309.17
5.2.90.0070.0279.17
5.2.80.0060.0309.16
5.2.70.0060.0419.17
5.2.60.0070.0349.12
5.2.50.0100.0269.09
5.2.40.0080.0279.06
5.2.30.0030.0329.04
5.2.20.0080.0329.03
5.2.10.0050.0288.94
5.2.00.0050.0298.80
5.1.60.0060.0238.07
5.1.50.0090.0208.07
5.1.40.0050.0248.05
5.1.30.0040.0278.40
5.1.20.0050.0298.41
5.1.10.0020.0288.14
5.1.00.0060.0318.14
5.0.50.0040.0256.63
5.0.40.0050.0186.48
5.0.30.0040.0316.30
5.0.20.0030.0206.27
5.0.10.0020.0216.25
5.0.00.0030.0326.24
4.4.90.0010.0174.78
4.4.80.0030.0154.76
4.4.70.0030.0184.75
4.4.60.0030.0254.76
4.4.50.0020.0204.77
4.4.40.0010.0314.71
4.4.30.0040.0184.76
4.4.20.0040.0174.85
4.4.10.0020.0184.85
4.4.00.0030.0294.76
4.3.110.0050.0154.67
4.3.100.0020.0204.67
4.3.90.0020.0164.64
4.3.80.0050.0264.58
4.3.70.0040.0134.63
4.3.60.0040.0204.62
4.3.50.0020.0214.63
4.3.40.0040.0264.53
4.3.30.0010.0173.30
4.3.20.0020.0233.27
4.3.10.0040.0183.23
4.3.00.0100.0237.24