3v4l.org

run code in 200+ php & hhvm versions
<?php for($limit=10,$str=str_repeat(" ",$limit);$limit>=0;--$limit){ $arr=explode(" ",$str,$limit); if(($count=count($arr)) > $limit){ throw new LogicException("explode() returned more elements than the limit! someone send a bugreport! limit: {$limit} elements: {$count}"); } }
based on AEZ36

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.4.0rc10.0210.00014.82
7.4.0beta40.0070.01115.01
7.4.0beta20.0080.00914.89
7.4.0beta10.0060.01014.94
7.4.0alpha30.0090.00815.02
7.4.0alpha20.0100.00615.09
7.4.0alpha10.0070.01015.08
7.3.90.0070.00814.94
7.3.80.0100.00614.91
7.3.70.0070.00914.74
7.3.60.0080.00714.79
7.3.50.0060.00914.81
7.3.40.0070.00814.78
7.3.30.0090.00614.72
7.3.20.0070.00815.13
7.3.10.0100.00615.08
7.3.00.0090.00715.01
7.2.220.0090.00914.94
7.2.210.0070.00915.00
7.2.200.0060.01015.00
7.2.190.0080.00915.01
7.2.180.0080.00814.95
7.2.170.0090.00715.03
7.2.160.0070.00715.02
7.2.150.0090.00715.29
7.2.140.0100.00615.28
7.2.130.0080.01015.34
7.2.120.0100.00715.29
7.2.110.0090.01015.33
7.2.100.0070.01115.35
7.2.90.0110.00715.36
7.2.80.0160.00715.38
7.2.70.0090.00815.38
7.2.60.0100.00715.32
7.2.50.0080.01115.32
7.2.40.0100.00815.33
7.2.30.0090.00815.34
7.2.20.0140.00815.30
7.2.10.0120.00615.32
7.2.00.0110.00915.39
7.1.320.0080.00914.13
7.1.310.0090.00914.32
7.1.300.0110.00714.18
7.1.290.0100.00614.22
7.1.280.0080.00714.15
7.1.270.0160.00714.12
7.1.260.0100.00614.18
7.1.250.0070.00814.12
7.1.240.0150.00914.12
7.1.230.0170.00413.90
7.1.220.0210.00413.96
7.1.210.0190.00013.93
7.1.200.0150.00514.00
7.1.190.0170.00313.94
7.1.180.0190.00414.07
7.1.170.0170.00614.01
7.1.160.0210.00713.87
7.1.150.0140.01214.03
7.1.140.0090.01913.73
7.1.130.0190.00814.07
7.1.120.0140.01313.82
7.1.110.0150.00914.09
7.1.100.0140.01114.05
7.1.90.0080.01714.02
7.1.80.0180.00614.05
7.1.70.0340.01514.00
7.1.60.0170.00914.05
7.1.50.0170.00213.88
7.1.40.0190.01114.11
7.1.30.0120.01014.10
7.1.20.0080.01213.73
7.1.10.0170.00913.85
7.1.00.0210.00714.03
7.0.330.0160.00313.42
7.0.320.0250.00313.63
7.0.310.0130.00513.36
7.0.300.0070.01413.31
7.0.290.0150.00613.44
7.0.280.0190.00813.52
7.0.270.0140.01113.68
7.0.260.0190.00613.67
7.0.250.0210.00513.58
7.0.240.0060.01613.63
7.0.230.0140.01113.71
7.0.220.0190.00813.72
7.0.210.0160.01013.70
7.0.200.0160.01113.79
7.0.190.0120.01213.59
7.0.180.0140.00713.59
7.0.170.0160.00313.72
7.0.160.0240.00013.61
7.0.150.0120.01213.75
7.0.140.0140.01013.77
7.0.130.0150.00913.81
7.0.120.0120.01213.42
7.0.110.0080.01613.74
7.0.100.0090.01213.44
7.0.90.0100.01313.71
7.0.80.0140.02713.87
7.0.70.0200.00613.57
7.0.60.0090.01613.50
7.0.50.0130.01213.73
7.0.40.0380.00313.65
7.0.30.0170.00713.73
7.0.20.0150.00613.55
7.0.10.0110.01213.56
7.0.00.0090.01213.78
hhvm-3.22.00.1620.29790.71
hhvm-3.21.30.1570.25990.69
hhvm-3.21.00.1910.31091.11
hhvm-3.20.20.1480.27491.43
hhvm-3.19.20.1520.25890.25
hhvm-3.18.50.1570.31788.50
hhvm-3.18.40.1420.22089.38
hhvm-3.17.30.1330.19288.02
hhvm-3.15.40.1310.22485.73
hhvm-3.13.20.1470.27297.14
hhvm-3.12.140.1420.19096.13
hhvm-3.11.10.1100.25488.01
hhvm-3.10.10.1320.20484.98
5.6.400.0170.00313.96
5.6.390.0140.00714.27
5.6.380.0240.00014.43
5.6.370.0150.00314.09
5.6.360.0140.01214.32
5.6.350.0180.00614.03
5.6.340.0100.01314.29
5.6.330.0070.02014.36
5.6.320.0130.01014.50
5.6.310.0080.01514.13
5.6.300.0160.00414.32
5.6.290.0170.01014.62
5.6.280.0130.00914.34
5.6.270.0140.00914.20
5.6.260.0160.01014.50
5.6.250.0140.00514.12
5.6.240.0210.01714.08
5.6.230.0170.00914.31
5.6.220.0170.00914.20
5.6.210.0160.00614.01
5.6.200.0290.00414.30
5.6.190.0160.00814.37
5.6.180.0080.01614.40
5.6.170.0180.00414.16
5.6.160.0120.00914.09
5.6.150.0170.00514.47
5.6.140.0100.01014.50
5.6.130.0150.00814.25
5.6.120.0100.01014.26
5.6.110.0050.01714.25
5.6.100.0140.00714.34
5.6.90.0140.01114.20
5.6.80.0130.00914.56
5.6.70.0100.00814.33
5.6.60.0080.01514.25
5.6.50.0100.00914.10
5.6.40.0150.00614.23
5.6.30.0110.01114.21
5.6.20.0060.01314.41
5.6.10.0160.01014.35
5.6.00.0160.00314.19
5.5.380.0330.03414.05
5.5.370.0080.01414.16
5.5.360.0100.01314.28
5.5.350.0120.00914.33
5.5.340.0150.00514.37
5.5.330.0130.01314.29
5.5.320.0100.01314.39
5.5.310.0100.01014.06
5.5.300.0130.00713.97
5.5.290.0130.01614.21
5.5.280.0170.00413.95
5.5.270.0170.00314.08
5.5.260.0180.00714.08
5.5.250.0160.00714.19
5.5.240.0120.00914.23
5.5.230.0120.00614.32
5.5.220.0040.01414.12
5.5.210.0140.01014.32
5.5.200.0150.00614.08
5.5.190.0200.00014.05
5.5.180.0130.01014.11
5.5.170.0080.01314.22
5.5.160.0150.00814.38
5.5.150.0100.01014.18
5.5.140.0160.00614.04
5.5.130.0180.00414.07
5.5.120.0140.01014.38
5.5.110.0110.01314.34
5.5.100.0150.01114.16
5.5.90.0210.00214.09
5.5.80.0090.00914.21
5.5.70.0110.01114.06
5.5.60.0180.00014.13
5.5.50.0140.00514.21
5.5.40.0120.00613.95
5.5.30.0160.01014.05
5.5.20.0110.00814.55
5.5.10.0170.00714.06
5.5.00.0380.02414.18
5.4.450.0130.00312.46
5.4.440.0100.00312.46
5.4.430.0000.01412.46
5.4.420.0070.00712.46
5.4.410.0140.00312.46
5.4.400.0110.00312.46
5.4.390.0090.00412.46
5.4.380.0140.00312.46
5.4.370.0120.00212.46
5.4.360.0100.00712.46
5.4.350.0040.01212.46
5.4.340.0230.00812.46
5.4.330.0160.00312.46
5.4.320.0150.00412.46
5.4.310.0080.00812.46
5.4.300.0090.00612.46
5.4.290.0130.00612.46
5.4.280.0140.00212.46
5.4.270.0120.00312.46
5.4.260.0160.00312.46
5.4.250.0070.01212.46
5.4.240.0140.00012.46
5.4.230.0110.00712.46
5.4.220.0050.00812.46
5.4.210.0110.00312.46
5.4.200.0120.00612.46
5.4.190.0110.00412.46
5.4.180.0140.00312.46
5.4.170.0220.02212.46
5.4.160.0040.01212.46
5.4.150.0110.01412.46
5.4.140.0100.01012.46
5.4.130.0090.00612.46
5.4.120.0140.00812.46
5.4.110.0140.00712.46
5.4.100.0160.01912.46
5.4.90.0210.01112.46
5.4.80.0160.00012.46
5.4.70.0080.00612.46
5.4.60.0050.00812.46
5.4.50.0040.00812.46
5.4.40.0060.00612.46
5.4.30.0240.01412.46
5.4.20.0110.00512.46
5.4.10.0120.00612.46
5.4.00.0090.00912.46
5.3.290.0090.00512.46
5.3.280.0060.00612.46
5.3.270.0220.01612.46
5.3.260.0220.00512.46
5.3.250.0090.00512.46
5.3.240.0070.01012.46
5.3.230.0110.00612.46
5.3.220.0100.00512.46
5.3.210.0060.01012.46
5.3.200.0100.00512.46
5.3.190.0130.00012.46
5.3.180.0120.00412.46
5.3.170.0100.00512.46
5.3.160.0090.00312.46
5.3.150.0130.00012.46
5.3.140.0120.00212.46
5.3.130.0100.00412.46
5.3.120.0060.00612.46
5.3.110.0110.00512.46
5.3.100.0060.00612.46
5.3.90.0080.00512.46
5.3.80.0000.01212.46
5.3.70.0030.01012.46
5.3.60.0080.00812.46
5.3.50.0050.01012.46
5.3.40.0130.00312.46
5.3.30.0050.01112.46
5.3.20.0190.01712.46
5.3.10.0090.00612.46
5.3.00.0000.01312.46
5.2.170.0070.00512.46
5.2.160.0070.00712.46
5.2.150.0120.00312.46
5.2.140.0110.00012.46
5.2.130.0160.00212.46
5.2.120.0080.00412.46
5.2.110.0140.00012.46
5.2.100.0080.00312.46
5.2.90.0070.00412.46
5.2.80.0100.00312.46
5.2.70.0120.00412.46
5.2.60.0080.00512.46
5.2.50.0120.00312.46
5.2.40.0000.01212.46
5.2.30.0040.00812.46
5.2.20.0140.00012.46
5.2.10.0050.00612.46
5.2.00.0050.00512.46
5.1.60.0040.00412.46
5.1.50.0090.00012.46
5.1.40.0050.00612.46
5.1.30.0100.00012.46
5.1.20.0060.00712.46
5.1.10.0000.00912.46
5.1.00.0090.00512.46
5.0.50.0000.00812.46
5.0.40.0050.00512.46
5.0.30.0090.00012.46
5.0.20.0120.00512.46
5.0.10.0080.00012.46
5.0.00.0040.00412.46
4.4.90.0000.00812.46
4.4.80.0050.00512.46
4.4.70.0090.00012.46
4.4.60.0000.00712.46
4.4.50.0080.00012.46
4.4.40.0000.00612.46
4.4.30.0000.00712.46
4.4.20.0000.00712.46
4.4.10.0030.00512.46
4.4.00.0050.00912.46
4.3.110.0070.00012.46
4.3.100.0050.00212.46
4.3.90.0020.00512.46
4.3.80.0130.00312.46
4.3.70.0070.00212.46
4.3.60.0050.00512.46
4.3.50.0040.00412.46
4.3.40.0040.00412.46
4.3.30.0030.00312.46
4.3.20.0020.00512.46
4.3.10.0060.00012.46
4.3.00.0000.00612.46