3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('orange', 'blue', 'gray'); $s = reset($a); print_r($s); print_r($a); $a = array(); $s = reset($a); print_r($s); print_r($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.3.10.0000.01316.61
7.3.00.0100.00316.59
7.2.130.0030.01016.77
7.2.120.0080.00416.79
7.2.110.0060.00316.77
7.2.100.0000.00916.75
7.2.90.0060.01016.80
7.2.80.0040.00816.85
7.2.70.0120.00616.82
7.2.60.0080.00616.74
7.2.50.0080.01216.59
7.2.40.0060.00916.93
7.2.30.0040.01416.84
7.2.20.0090.00616.84
7.2.10.0060.00916.70
7.2.00.0080.00517.96
7.1.250.0070.00715.74
7.1.200.0100.00315.77
7.1.100.0040.00818.22
7.1.70.0000.00716.97
7.1.60.0090.01519.50
7.1.50.0040.00916.57
7.1.00.0100.06722.40
7.0.200.0180.00516.37
7.0.140.0000.03721.97
7.0.60.0000.08719.90
7.0.50.0070.07317.88
7.0.40.0030.09320.10
7.0.30.0430.04320.16
7.0.20.0170.04020.06
7.0.10.0400.06320.33
7.0.00.0100.06720.33
5.6.280.0070.07020.89
5.6.210.0030.08320.74
5.6.200.0230.07018.29
5.6.190.0000.04720.79
5.6.180.0200.04720.56
5.6.170.0270.07720.57
5.6.160.0000.04320.46
5.6.150.0030.09018.18
5.6.140.0030.04018.11
5.6.130.0100.07318.16
5.6.120.0030.08720.88
5.6.110.0000.04321.05
5.6.100.0070.08020.98
5.6.90.0100.08020.88
5.6.80.0100.08320.28
5.6.70.0230.04020.49
5.5.350.0170.08020.32
5.5.340.0070.03718.02
5.5.330.0030.05720.37
5.5.320.0070.03720.25
5.5.310.0330.06720.33
5.5.300.0070.04718.07
5.5.290.0030.04018.07
5.5.280.0000.05020.89
5.5.270.0100.06320.66
5.5.260.0100.07320.66
5.5.250.0030.04020.65
5.5.240.0030.05320.14
5.4.450.0730.05019.48
5.4.440.0900.06019.40
5.4.430.0770.06019.59
5.4.420.0200.05319.38
5.4.410.1070.06319.30
5.4.400.0570.06018.82
5.4.390.0370.07718.59
5.4.380.0670.05018.75
5.4.370.0330.06018.55
5.4.360.0300.08018.50
5.4.350.0470.06718.84
5.4.340.0330.05718.61
5.4.320.0300.06018.73
5.4.310.0300.07018.70
5.4.300.0330.06018.59
5.4.290.0330.05718.52
5.4.280.0330.05718.84
5.4.270.0370.05018.52
5.4.260.0270.06018.59
5.4.250.0500.05318.52
5.4.240.0300.06318.54
5.4.230.0400.04718.79
5.4.220.0300.06318.77
5.4.210.0330.05018.57
5.4.200.0330.04716.64
5.4.190.0270.05718.57
5.4.180.0300.05318.51
5.4.170.0330.05718.69
5.4.160.0170.07018.70
5.4.150.0300.06018.76
5.4.140.0330.05016.28
5.4.130.0300.04716.20
5.4.120.0230.05716.17
5.4.110.0370.04016.27
5.4.100.0470.04716.32
5.4.90.0330.05016.28
5.4.80.0330.04316.30
5.4.70.0230.05316.29
5.4.60.0270.05016.23
5.4.50.0370.04716.39
5.4.40.0370.05016.29
5.4.30.0330.04316.25
5.4.20.0470.06316.24
5.4.10.0430.06316.13
5.4.00.0230.05315.86
5.3.290.0430.04714.64
5.3.280.0300.05714.80
5.3.270.0330.05314.73
5.3.260.0270.06014.63
5.3.250.0400.05314.78
5.3.240.0300.06014.57
5.3.230.0300.05714.59
5.3.220.0300.06314.61
5.3.210.0200.07014.69
5.3.200.0330.05314.68
5.3.190.0300.05714.73
5.3.180.0530.05714.66
5.3.170.0370.05714.59
5.3.160.0300.05714.65
5.3.150.0300.07314.54
5.3.140.0270.07714.73
5.3.130.0330.07714.71
5.3.120.0370.05314.55
5.3.110.0270.05714.72
5.3.100.0330.06714.09
5.3.90.0400.04714.12
5.3.80.0300.05714.01
5.3.70.0330.05714.01
5.3.60.0400.05014.07
5.3.50.0400.05714.04
5.3.40.0430.06314.10
5.3.30.0370.05714.00
5.3.20.0270.06313.72
5.3.10.0370.06013.67
5.3.00.0430.06713.65
5.2.170.0330.04311.13
5.2.160.0270.05711.14
5.2.150.0270.04311.18
5.2.140.0230.04311.36
5.2.130.0230.06011.07
5.2.120.0330.03711.22
5.2.110.0270.03711.12
5.2.100.0230.04711.21
5.2.90.0230.04711.22
5.2.80.0230.04311.11
5.2.70.0230.04711.07
5.2.60.0230.06311.05
5.2.50.0300.05711.11
5.2.40.0300.03310.97
5.2.30.0170.05011.02
5.2.20.0130.04711.00
5.2.10.0370.03711.06
5.2.00.0300.04710.73
5.1.60.0230.03310.02
5.1.50.0330.02710.09
5.1.40.0230.03310.03
5.1.30.0200.04310.38
5.1.20.0230.04010.49
5.1.10.0230.03710.13
5.1.00.0270.04010.04
5.0.50.0130.0308.61
5.0.40.0130.0278.46
5.0.30.0130.0438.24
5.0.20.0130.0308.17
5.0.10.0230.0378.36
5.0.00.0100.0578.18
4.4.90.0130.0276.80
4.4.80.0130.0306.80
4.4.70.0100.0236.80
4.4.60.0130.0236.80
4.4.50.0100.0276.80
4.4.40.0100.0336.80
4.4.30.0270.0236.80
4.4.20.0170.0176.80
4.4.10.0100.0236.81
4.4.00.0100.0476.81
4.3.110.0100.0306.81
4.3.100.0200.0306.84
4.3.90.0130.0236.84
4.3.80.0130.0376.84
4.3.70.0170.0206.84
4.3.60.0200.0306.84
4.3.50.0200.0236.84
4.3.40.0130.0476.84
4.3.30.0100.0306.84
4.3.20.0100.0276.84
4.3.10.0100.0206.84
4.3.00.0070.0276.79