3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [[1,2]]; foreach($a as list($q,$w)) { echo $q.$w; }

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.0000.01416.34
7.3.00.0080.00816.53
7.2.130.0080.00916.80
7.2.120.0080.00816.93
7.2.110.0150.00316.61
7.2.100.0090.00616.53
7.2.90.0120.00316.95
7.2.80.0110.00716.82
7.2.70.0000.01516.91
7.2.60.0100.00716.87
7.2.50.0110.00616.98
7.2.40.0000.01216.87
7.2.30.0060.00816.60
7.2.20.0000.01716.91
7.2.10.0090.00016.87
7.2.00.0030.00818.03
7.1.250.0170.00015.74
7.1.200.0060.00615.62
7.1.100.0040.00717.89
7.1.70.0030.00516.97
7.1.60.0140.01019.43
7.1.50.0070.01616.93
7.1.00.0030.03322.32
7.0.200.0070.00316.86
7.0.140.0000.08322.12
7.0.70.4830.04719.93
7.0.60.0070.03719.78
7.0.50.0070.07317.80
7.0.40.0130.08020.20
7.0.30.0570.06020.00
7.0.20.0430.06720.18
7.0.10.0270.06020.09
7.0.00.0030.06320.00
5.6.280.0170.06021.03
5.6.210.0100.08020.74
5.6.200.0070.08718.16
5.6.190.0130.07720.39
5.6.180.0100.04020.61
5.6.170.0370.07720.61
5.6.160.0070.05020.51
5.6.150.0200.07318.17
5.6.140.0030.07718.21
5.6.130.0070.08718.14
5.6.120.0100.08321.01
5.6.110.0000.04321.02
5.6.100.0100.08020.96
5.6.90.0070.06021.01
5.6.80.0030.08320.40
5.6.70.0030.08020.52
5.5.350.0130.07020.43
5.5.340.0070.07717.89
5.5.330.0000.05020.37
5.5.320.0070.08320.40
5.5.310.0200.04320.07
5.5.300.0100.05318.00
5.5.290.0030.08017.96
5.5.280.0030.04320.78
5.5.270.0130.08020.96
5.5.260.0270.07320.83
5.5.250.0100.03320.79
5.5.240.0070.04020.18
5.4.450.0070.06019.47
5.4.440.0900.05319.29
5.4.430.0900.06719.70
5.4.420.0770.05719.54
5.4.410.0730.06019.04
5.4.400.0830.05319.23
5.4.390.0800.05719.15
5.4.380.0300.05718.56
5.4.370.0400.05018.72
5.4.360.0300.05718.74
5.4.350.0120.04612.02
5.4.340.0090.04812.01
5.4.320.0120.04612.50
5.4.310.0090.04312.49
5.4.300.0070.03612.50
5.4.290.0080.05312.49
5.4.280.0060.03512.39
5.4.270.0040.03812.39
5.4.260.0060.03712.39
5.4.250.0060.03912.39
5.4.240.0170.04018.77
5.4.230.0130.05018.75
5.4.220.0200.04318.75
5.4.210.0130.05019.09
5.4.200.0200.06318.77
5.4.190.0100.05018.82
5.4.180.0130.04719.08
5.4.170.0070.07718.76
5.4.160.0030.07718.75
5.4.150.0030.07018.95
5.4.140.0030.05716.40
5.4.130.0100.05716.54
5.4.120.0130.04716.38
5.4.110.0100.04716.31
5.4.100.0130.04316.39
5.4.90.0070.05016.27
5.4.80.0170.04016.32
5.4.70.0170.04716.38
5.4.60.0070.06016.46
5.4.50.0070.05016.38
5.4.40.0130.04316.50
5.4.30.0130.05716.32
5.4.20.0100.04716.36
5.4.10.0000.06016.36
5.4.00.0030.05016.00
5.3.290.0040.04112.80
5.3.280.0070.05014.45
5.3.270.0100.05014.62
5.3.260.0030.06014.64
5.3.250.0130.05714.61
5.3.240.0100.05014.66
5.3.230.0070.05714.60
5.3.220.0100.04714.41
5.3.210.0130.04714.45
5.3.200.0100.04714.61
5.3.190.0100.05314.57
5.3.180.0030.05314.58
5.3.170.0030.07314.43
5.3.160.0070.05014.34
5.3.150.0030.05714.43
5.3.140.0100.05314.57
5.3.130.0200.04714.55
5.3.120.0170.06314.39
5.3.110.0070.05014.41
5.3.100.0070.04714.20
5.3.90.0030.05713.71
5.3.80.0070.04713.96
5.3.70.0170.04314.03
5.3.60.0030.07013.86
5.3.50.0100.04313.95
5.3.40.0100.04714.00
5.3.30.0100.04313.61
5.3.20.0070.04713.57
5.3.10.0070.04713.64
5.3.00.0070.05013.79
5.2.170.0100.03711.06
5.2.160.0070.04010.90
5.2.150.0030.04011.16
5.2.140.0070.04711.25
5.2.130.0130.04311.25
5.2.120.0100.03310.93
5.2.110.0070.03711.25
5.2.100.0000.04311.11
5.2.90.0100.03311.01
5.2.80.0000.04311.01
5.2.70.0030.05011.19
5.2.60.0000.04310.96
5.2.50.0130.03311.02
5.2.40.0030.04010.82
5.2.30.0000.04310.99
5.2.20.0070.03711.05
5.2.10.0030.04010.86
5.2.00.0100.03310.79
5.1.60.0000.03710.04
5.1.50.0070.03310.05
5.1.40.0100.0309.87
5.1.30.0030.03710.26
5.1.20.0030.03710.11
5.1.10.0170.02710.21
5.1.00.0070.0339.95
5.0.50.0030.0308.48
5.0.40.0000.0308.34
5.0.30.0030.0438.28
5.0.20.0100.0178.22
5.0.10.0070.0238.15
5.0.00.0070.0438.30
4.4.90.0000.0306.96
4.4.80.0000.0206.96
4.4.70.0030.0206.96
4.4.60.0000.0236.96
4.4.50.0030.0306.96
4.4.40.0100.0276.96
4.4.30.0030.0206.96
4.4.20.0000.0236.96
4.4.10.0000.0236.96
4.4.00.0070.0306.96
4.3.110.0000.0236.96
4.3.100.0030.0206.96
4.3.90.0000.0236.96
4.3.80.0070.0336.96
4.3.70.0000.0206.96
4.3.60.0030.0206.96
4.3.50.0070.0176.96
4.3.40.0000.0476.96
4.3.30.0000.0236.96
4.3.20.0070.0176.96
4.3.10.0000.0236.96
4.3.00.0100.0237.38