3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ( $i = 0; $i < 9000; $i++ ) { $test_array[ "key$i" ] = $i; } $test1 = $test_array; for ( $i = 0; $i < 9000; $i++ ) { $k = key($test1); $dummy = $test1[$k]; unset($test1[$k]); }
based on 15D8C

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.0070.00718.64
7.3.00.0000.01618.71
7.2.130.0070.00718.96
7.2.120.0060.01018.73
7.2.110.0040.01218.68
7.2.100.0090.00919.00
7.2.90.0030.01018.75
7.2.80.0070.00719.08
7.2.70.0000.02018.89
7.2.60.0030.01218.89
7.2.50.0040.01118.89
7.2.40.0130.00319.02
7.2.30.0040.00718.99
7.2.20.0130.00318.85
7.2.10.0070.01119.08
7.2.00.0030.01320.15
7.1.250.0080.00817.52
7.1.200.0030.01017.54
7.1.100.0100.00620.23
7.1.70.0050.00519.07
7.1.60.0070.02119.50
7.1.50.0070.02118.49
7.1.00.0070.07724.48
7.0.200.0840.00015.91
7.0.140.0070.07324.13
7.0.60.0030.05321.21
7.0.50.0100.04718.87
7.0.40.0070.08720.06
7.0.30.0270.05720.17
7.0.20.0300.07720.16
7.0.10.0230.08320.21
7.0.00.0070.04320.01
5.6.280.0130.07323.19
5.6.210.0070.09722.80
5.6.200.0030.06320.40
5.6.190.0030.05722.47
5.6.180.0370.08022.64
5.6.170.0400.06022.59
5.6.160.0070.04322.56
5.6.150.0170.03320.34
5.6.140.0070.09720.39
5.6.130.0030.04720.48
5.6.120.0100.05323.46
5.6.110.0070.09323.43
5.6.100.0100.06323.32
5.6.90.0070.08023.30
5.6.80.0100.08322.75
5.6.70.0270.06722.81
5.5.350.0100.04322.63
5.5.340.0000.05020.28
5.5.330.0000.06722.61
5.5.320.0030.05022.44
5.5.310.0100.05322.39
5.5.300.0130.04020.20
5.5.290.0070.07320.25
5.5.280.0030.07723.20
5.5.270.0100.08323.18
5.5.260.0100.05723.18
5.5.250.0070.09023.00
5.5.240.0100.04322.54
5.4.450.0200.06021.70
5.4.440.0430.08721.86
5.4.430.0800.08321.82
5.4.420.0970.10021.71
5.4.410.0130.05721.27
5.4.400.0430.06021.05
5.4.390.0430.06020.96
5.4.380.0470.06721.02
5.4.370.0500.06720.79
5.4.360.0330.06720.80
5.4.350.0330.06320.89
5.4.340.0470.07720.97
5.4.320.0400.05720.96
5.4.310.0400.07020.86
5.4.300.0500.05321.02
5.4.290.0370.06020.99
5.4.280.0370.07720.96
5.4.270.0300.06721.01
5.4.260.0400.05721.00
5.4.250.0570.07320.96
5.4.240.0500.08320.82
5.4.230.0400.06320.97
5.4.220.0300.09020.97
5.4.210.0330.07020.87
5.4.200.0330.06718.65
5.4.190.0570.08320.95
5.4.180.0330.06720.79
5.4.170.0470.05320.94
5.4.160.0430.06720.78
5.4.150.0330.06720.91
5.4.140.0370.07318.40
5.4.130.0330.06718.42
5.4.120.0430.05318.66
5.4.110.0400.06718.45
5.4.100.0230.06718.38
5.4.90.0370.06718.46
5.4.80.0270.09318.53
5.4.70.0400.05718.52
5.4.60.0300.06318.36
5.4.50.0430.05718.46
5.4.40.0370.05718.44
5.4.30.0270.06018.59
5.4.20.0230.06718.42
5.4.10.0270.08318.53
5.4.00.0430.07717.98
5.3.290.0300.07016.53
5.3.280.0270.07316.39
5.3.270.0330.06716.45
5.3.260.0400.07016.50
5.3.250.0330.05716.45
5.3.240.0370.05716.57
5.3.230.0430.05716.43
5.3.220.0370.06016.45
5.3.210.0270.07016.36
5.3.200.0300.06716.45
5.3.190.0400.05716.32
5.3.180.0370.08316.52
5.3.170.0270.07716.41
5.3.160.0570.06716.49
5.3.150.0330.07016.43
5.3.140.0430.06316.45
5.3.130.0430.06316.42
5.3.120.0370.06716.41
5.3.110.0300.07716.50
5.3.100.0430.07715.85
5.3.90.0330.08015.88
5.3.80.0300.06715.82
5.3.70.0500.06015.93
5.3.60.0530.07015.91
5.3.50.0470.07715.87
5.3.40.0400.09016.25
5.3.30.0400.09015.69
5.3.20.0470.06715.58
5.3.10.0370.09315.38
5.3.00.0430.08015.53
5.2.170.0300.05313.11
5.2.160.0400.06712.94
5.2.150.0300.07312.93
5.2.140.0400.06712.98
5.2.130.0330.05012.87
5.2.120.0370.04712.89
5.2.110.0230.06012.88
5.2.100.0370.05312.87
5.2.90.0300.04713.06
5.2.80.0400.04712.87
5.2.70.0270.05312.87
5.2.60.0400.05312.99
5.2.50.0430.05312.76
5.2.40.0330.05312.78
5.2.30.0400.04312.83
5.2.20.0300.04312.84
5.2.10.0200.05312.74
5.2.00.0230.05712.55
5.1.60.0230.04712.49
5.1.50.0330.06712.63
5.1.40.0330.06012.46
5.1.30.0270.05013.00
5.1.20.0400.04313.02
5.1.10.0430.05712.53
5.1.00.0370.04312.61
5.0.50.0130.06011.20
5.0.40.0130.04710.91
5.0.30.0130.06710.79
5.0.20.0130.07010.77
5.0.10.0200.04310.71
5.0.00.0100.07710.75
4.4.90.0170.0438.49
4.4.80.0200.0438.40
4.4.70.0130.0538.35
4.4.60.0100.0638.42
4.4.50.0130.0408.46
4.4.40.0170.0608.43
4.4.30.0270.0408.41
4.4.20.0200.0578.50
4.4.10.0170.0438.50
4.4.00.0100.0778.48
4.3.110.0130.0438.36
4.3.100.0170.0408.34
4.3.90.0070.0538.45
4.3.80.0130.0538.30
4.3.70.0130.0408.31
4.3.60.0070.0578.40
4.3.50.0230.0338.32
4.3.40.0200.0508.29
4.3.30.0070.0577.11
4.3.20.0070.0577.14
4.3.10.0070.0577.09
4.3.00.0030.0437.15