3v4l.org

run code in 200+ php & hhvm versions
<?php defined('PHP_INT_MAX') or define('PHP_INT_MAX', is_int(0x7FFFFFFF+1) ? 0x7FFFFFFFFFFFFFFF : 0x7FFFFFFF); $a = array(PHP_INT_MAX => 42); $a[] = 37; var_dump($a);

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.2.60.0070.00716.74
7.2.00.0030.01018.92
7.1.200.0000.01515.53
7.1.100.0150.00317.96
7.1.70.0040.00417.16
7.1.60.0130.01319.70
7.1.50.0070.01416.97
7.1.00.0030.07722.54
7.0.200.0000.00916.91
7.0.140.0070.07321.95
7.0.60.0030.08719.77
7.0.50.0030.04317.68
7.0.40.0100.07720.40
7.0.30.0500.06020.21
7.0.20.0270.06320.09
7.0.10.0270.04720.30
7.0.00.0000.04320.05
5.6.280.0070.07021.12
5.6.210.0100.06020.69
5.6.200.0170.07018.18
5.6.190.0070.08320.35
5.6.180.0100.06320.63
5.6.170.0230.04320.53
5.6.160.0070.04320.52
5.6.150.0070.07018.14
5.6.140.0070.06718.20
5.6.130.0100.08718.11
5.6.120.0070.03720.99
5.6.110.0130.08320.95
5.6.100.0130.07720.96
5.6.90.0030.07020.99
5.6.80.0030.08320.38
5.5.350.0030.07320.31
5.5.340.0030.05018.01
5.5.330.0070.06020.47
5.5.320.0000.04020.21
5.5.310.0230.03720.17
5.5.300.0100.07718.02
5.5.290.0130.07017.98
5.5.280.0070.08320.88
5.5.270.0070.03720.75
5.5.260.0200.05720.87
5.5.250.0000.09020.54
5.5.240.0070.03720.35
5.4.450.0400.05019.54
5.4.440.0170.05019.54
5.4.430.0370.04019.45
5.4.420.0230.04319.57
5.4.410.0430.04319.44
5.4.400.0230.04319.23
5.4.390.0730.03019.09
5.4.380.0100.06318.71
5.4.370.0100.06018.66
5.4.360.0230.04718.61
5.4.350.0100.06018.50
5.4.340.0230.04318.52
5.4.320.0080.03812.45
5.4.310.0040.04712.45
5.4.300.0060.03912.45
5.4.290.0080.03712.45
5.4.280.0050.03712.34
5.4.270.0050.04112.34
5.4.260.0040.04112.34
5.4.250.0090.03612.35
5.4.240.0120.03212.35
5.4.230.0100.03512.34
5.4.220.0100.04812.34
5.4.210.0090.04712.34
5.4.200.0080.05212.34
5.4.190.0140.04512.34
5.4.180.0080.04212.33
5.4.170.0070.03612.35
5.4.160.0050.03612.34
5.4.150.0070.03412.34
5.4.140.0090.03512.02
5.4.130.0050.03612.01
5.4.120.0050.03711.96
5.4.110.0030.04011.96
5.4.100.0060.03511.96
5.4.90.0040.04011.96
5.4.80.0060.03711.96
5.4.70.0060.03511.96
5.4.60.0070.03411.96
5.4.50.0060.03511.96
5.4.40.0050.03611.95
5.4.30.0090.03311.95
5.4.20.0050.03611.95
5.4.10.0090.03311.95
5.4.00.0060.03711.43
5.3.290.0060.03912.80
5.3.280.0080.05112.71
5.3.270.0100.04012.73
5.3.260.0080.03912.72
5.3.250.0050.04112.72
5.3.240.0070.03912.72
5.3.230.0060.04012.71
5.3.220.0070.03812.68
5.3.210.0060.04012.68
5.3.200.0100.03412.68
5.3.190.0050.04712.68
5.3.180.0080.04712.67
5.3.170.0100.04312.67
5.3.160.0050.04212.68
5.3.150.0080.03612.67
5.3.140.0080.03512.66
5.3.130.0070.03812.65
5.3.120.0050.04112.66
5.3.110.0050.04112.66
5.3.100.0050.03812.12
5.3.90.0060.03712.08
5.3.80.0080.03412.07
5.3.70.0060.04212.07
5.3.60.0070.03512.06
5.3.50.0050.03912.00
5.3.40.0070.03912.00
5.3.30.0040.03711.94
5.3.20.0070.03511.72
5.3.10.0070.03311.69
5.3.00.0080.03411.68
5.2.170.0050.0309.18
5.2.160.0080.0269.18
5.2.150.0060.0309.18
5.2.140.0080.0279.17
5.2.130.0020.0329.13
5.2.120.0010.0329.13
5.2.110.0070.0279.14
5.2.100.0040.0299.14
5.2.90.0070.0279.14
5.2.80.0050.0319.14
5.2.70.0090.0269.14
5.2.60.0100.0399.09
5.2.50.0040.0329.05
5.2.40.0090.0309.03
5.2.30.0070.0309.01
5.2.20.0050.0289.00
5.2.10.0070.0268.92
5.2.00.0040.0318.77
5.1.60.0040.0248.06
5.1.50.0040.0258.06
5.1.40.0060.0258.04
5.1.30.0060.0248.39
5.1.20.0050.0258.41
5.1.10.0060.0248.14
5.1.00.0040.0258.13
5.0.50.0040.0216.61
5.0.40.0060.0186.47
5.0.30.0030.0326.29
5.0.20.0030.0206.25
5.0.10.0030.0206.23
5.0.00.0000.0346.23
4.4.90.0030.0154.78
4.4.80.0030.0154.76
4.4.70.0050.0144.75
4.4.60.0050.0134.75
4.4.50.0010.0174.77
4.4.40.0020.0264.70
4.4.30.0020.0164.76
4.4.20.0040.0144.84
4.4.10.0050.0144.85
4.4.00.0020.0254.76
4.3.110.0050.0134.67
4.3.100.0040.0154.66
4.3.90.0030.0144.64
4.3.80.0030.0244.58
4.3.70.0040.0144.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0020.0244.54
4.3.30.0010.0173.28
4.3.20.0020.0163.25
4.3.10.0010.0173.22
4.3.00.0100.01312.20