3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace A\B; $a = array(['blah'], ['bluh'], 1, 234, 1341234, 'aruisetauirs'); for ($i=0; $i < 1000; $i++) { \count($a); }
based on eKake

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.30.0080.00714.62
7.3.20.1820.00614.60
7.3.10.1620.00714.64
7.3.00.1500.00714.63
7.2.160.0090.00714.75
7.2.150.1470.00714.83
7.2.140.1590.00714.81
7.2.130.1590.00714.84
7.2.120.1160.00714.80
7.2.110.1110.00714.83
7.2.100.1290.00714.81
7.2.90.1750.00714.89
7.2.80.1270.00814.86
7.2.70.1000.00714.83
7.2.60.1330.00714.84
7.2.50.1250.00814.85
7.2.40.1530.00614.82
7.2.30.1740.00814.86
7.2.20.1420.00714.85
7.2.10.1500.00714.79
7.2.00.1740.00614.85
7.1.270.1560.00813.79
7.1.260.1640.00613.81
7.1.250.1370.00613.84
7.1.240.5130.01014.01
7.1.230.3900.01013.73
7.1.220.4250.01613.84
7.1.210.4110.01014.14
7.1.200.2600.01013.90
7.1.190.2280.00014.07
7.1.180.3310.00714.13
7.1.170.3120.00013.92
7.1.160.2550.00313.98
7.1.150.2740.01014.05
7.1.140.2690.01013.88
7.1.130.1910.01313.79
7.1.120.1680.00314.12
7.1.110.1890.01013.68
7.1.100.1490.01614.11
7.1.90.1140.00414.16
7.1.80.0290.01314.03
7.1.70.2940.00713.84
7.1.60.0960.01213.97
7.1.50.0900.01513.91
7.1.40.0840.00313.26
7.1.30.0770.00414.06
7.1.20.0660.00713.98
7.1.10.0670.01313.95
7.1.00.0640.00714.06
7.0.330.6500.01013.62
7.0.320.3450.00713.72
7.0.310.2060.01013.59
7.0.300.2410.01013.37
7.0.290.2110.01713.51
7.0.280.2100.01013.79
7.0.270.2570.00313.54
7.0.260.3110.00713.34
7.0.250.1440.00313.30
7.0.240.1280.01313.30
7.0.230.1200.01013.32
7.0.220.1060.00913.69
7.0.210.0300.01013.54
7.0.200.1320.00313.58
7.0.190.1310.00413.57
7.0.180.1090.00313.55
7.0.170.1070.00413.78
7.0.160.0710.01113.55
7.0.150.0800.00313.66
7.0.140.0790.00713.80
7.0.130.0960.00713.83
7.0.120.0930.00713.59
7.0.110.0790.01013.45
7.0.100.0720.01113.51
7.0.90.0660.00013.54
7.0.80.0700.00613.68
7.0.70.0760.01113.43
7.0.60.0620.00613.59
7.0.50.0730.01413.36
7.0.40.0570.01313.52
7.0.30.0580.01013.79
7.0.20.0550.01013.55
7.0.10.3130.01013.69
7.0.00.0710.00613.48
hhvm-3.22.00.1900.19690.10
hhvm-3.21.30.1050.16190.24
hhvm-3.21.00.1490.18190.17
hhvm-3.20.20.1520.19390.04
hhvm-3.19.20.1260.16789.70
hhvm-3.18.50.1490.13288.15
hhvm-3.18.40.0900.18688.52
hhvm-3.17.30.1130.14987.68
hhvm-3.15.40.1070.18185.04
hhvm-3.13.20.1140.17296.41
hhvm-3.12.140.1420.23995.75
hhvm-3.11.10.1090.22787.61
hhvm-3.10.10.1000.19084.48
5.6.400.0200.00414.32
5.6.390.0150.00614.56
5.6.380.0090.01514.62
5.6.370.0230.00814.54
5.6.360.0170.00713.83
5.6.350.0230.00514.21
5.6.340.0080.01014.29
5.6.330.0130.00414.42
5.6.320.0170.01114.48
5.6.310.0140.00514.41
5.6.300.0160.00314.40
5.6.290.0040.02614.30
5.6.280.0200.00713.93
5.6.270.0140.01714.25
5.6.260.0250.00814.16
5.6.250.0150.00814.34
5.6.240.0120.01614.40
5.6.230.0140.01414.33
5.6.220.0220.00814.41
5.6.210.0130.01314.36
5.6.200.0230.01014.20
5.6.190.0160.01814.48
5.6.180.0080.01214.33
5.6.170.0140.00614.40
5.6.160.0250.00414.04
5.6.150.0210.00914.27
5.6.140.0090.01814.14
5.6.130.0110.01114.01
5.6.120.0120.00914.30
5.6.110.0070.01314.17
5.6.100.0110.00914.59
5.6.90.0060.01514.26
5.6.80.0150.00314.09
5.6.70.0170.00614.18
5.6.60.0130.01314.12
5.6.50.0090.00914.18
5.6.40.0130.00713.97
5.6.30.0030.01314.31
5.6.20.0140.00314.03
5.6.10.0170.00014.30
5.6.00.0120.00614.36
5.5.380.0150.01514.03
5.5.370.0130.01014.54
5.5.360.0120.01213.82
5.5.350.0190.00414.35
5.5.340.0160.00314.20
5.5.330.0130.01614.51
5.5.320.0200.00414.04
5.5.310.0160.01614.36
5.5.300.0180.01114.20
5.5.290.0060.01014.14
5.5.280.0100.00714.05
5.5.270.0190.00514.19
5.5.260.0110.01113.80
5.5.250.0200.00914.45
5.5.240.0040.01413.96
5.5.230.0180.00414.16
5.5.220.0090.00613.86
5.5.210.0170.01414.27
5.5.200.0000.01714.35
5.5.190.0110.00514.14
5.5.180.0120.00413.79
5.5.170.0000.01814.11
5.5.160.0180.01413.84
5.5.150.0170.01714.34
5.5.140.0180.00613.77
5.5.130.0000.01514.01
5.5.120.0210.00814.00
5.5.110.0140.01114.27
5.5.100.0210.00614.25
5.5.90.0170.00313.87
5.5.80.0120.01014.16
5.5.70.0100.01414.29
5.5.60.0180.00714.33
5.5.50.0160.00014.07
5.5.40.0110.01414.00
5.5.30.0170.00813.99
5.5.20.0130.01314.14
5.5.10.0160.00814.16
5.5.00.0070.00713.99
5.4.450.0030.00910.82
5.4.440.0050.00510.85
5.4.430.0040.00911.11
5.4.420.0110.00811.10
5.4.410.0060.00610.67
5.4.400.0040.00910.91
5.4.390.0080.01211.01
5.4.380.0190.00010.94
5.4.370.0140.00510.86
5.4.360.0100.01010.84
5.4.350.0100.00510.84
5.4.340.0140.00311.00
5.4.330.0040.00911.12
5.4.320.0080.01110.77
5.4.310.0080.00410.89
5.4.300.0110.00510.84
5.4.290.0150.00310.84
5.4.280.0110.00410.73
5.4.270.0120.01311.04
5.4.260.0170.00711.03
5.4.250.0140.00910.93
5.4.240.0070.00510.87
5.4.230.0070.00411.04
5.4.220.0130.00711.09
5.4.210.0040.00810.61
5.4.200.0120.00810.81
5.4.190.0130.00611.17
5.4.180.0130.00210.81
5.4.170.0120.00811.10
5.4.160.0060.00610.54
5.4.150.0040.01110.59
5.4.140.0160.00810.89
5.4.130.0180.00010.72
5.4.120.0130.00011.20
5.4.110.0120.00410.84
5.4.100.0000.01010.81
5.4.90.0060.00710.73
5.4.80.0070.00710.80
5.4.70.0060.00610.84
5.4.60.0090.00310.89
5.4.50.0050.00910.94
5.4.40.0110.00410.57
5.4.30.0090.00611.01
5.4.20.0110.00010.94
5.4.10.0090.00210.97
5.4.00.0100.00710.71
5.3.290.0090.00910.27
5.3.280.0070.00510.11
5.3.270.0140.00310.00
5.3.260.0070.00510.11
5.3.250.0180.00610.15
5.3.240.0090.00310.09
5.3.230.0080.00310.05
5.3.220.0030.0149.90
5.3.210.0030.0069.94
5.3.200.0110.00010.05
5.3.190.0130.00010.13
5.3.180.0080.00410.26
5.3.170.0130.00610.30
5.3.160.0130.00710.28
5.3.150.0080.00410.23
5.3.140.0050.00910.18
5.3.130.0140.00010.29
5.3.120.0090.00010.16
5.3.110.0100.00010.27
5.3.100.0040.00410.00
5.3.90.0110.00010.30
5.3.80.0090.0069.93
5.3.70.0150.00010.15
5.3.60.0170.00310.31
5.3.50.0160.00310.10
5.3.40.0140.0039.91
5.3.30.0190.00310.08
5.3.20.0100.00710.20
5.3.10.0130.0039.91
5.3.00.0140.0049.70
5.2.170.0150.0009.01
5.2.160.0070.0029.26
5.2.150.0080.0039.28
5.2.140.0170.0009.11
5.2.130.0060.0069.21
5.2.120.0000.0099.21
5.2.110.0130.0039.11
5.2.100.0130.0009.19
5.2.90.0130.0009.21
5.2.80.0140.0008.89
5.2.70.0100.0059.23
5.2.60.0120.0049.05
5.2.50.0080.0039.05
5.2.40.0100.0029.05
5.2.30.0080.0089.11
5.2.20.0130.0048.98
5.2.10.0000.0138.79
5.2.00.0110.0078.83
5.1.60.0090.0038.73
5.1.50.0090.0048.73
5.1.40.0040.0088.73
5.1.30.0000.0158.73
5.1.20.0040.0048.73
5.1.10.0110.0008.73
5.1.00.0070.0078.73
5.0.50.0090.0008.73
5.0.40.0090.0038.73
5.0.30.0080.0068.73
5.0.20.0030.0068.73
5.0.10.0000.0088.73
5.0.00.0080.0028.73
4.4.90.0000.0128.73
4.4.80.0030.0098.73
4.4.70.0080.0038.73
4.4.60.0060.0068.73
4.4.50.0000.0088.73
4.4.40.0050.0058.73
4.4.30.0050.0008.73
4.4.20.0030.0038.73
4.4.10.0040.0048.73
4.4.00.0030.0038.73
4.3.110.0080.0038.73
4.3.100.0090.0048.73
4.3.90.0060.0068.73
4.3.80.0030.0038.73
4.3.70.0030.0088.73
4.3.60.0030.0038.73
4.3.50.0030.0068.73
4.3.40.0030.0038.73
4.3.30.0050.0008.73
4.3.20.0000.0088.73
4.3.10.0000.0048.73
4.3.00.0050.0058.73