3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( 'a' => 'a', 'b' => 'b', 'c' => 'c', ); foreach ($a as &$b) {} print_r($b);

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.0110.00316.65
7.2.00.0040.01119.14
7.1.200.0030.01015.77
7.1.100.0050.00518.27
7.1.70.0040.01117.22
7.1.60.0040.00717.31
7.1.50.0070.01416.75
7.1.00.0100.06722.37
7.0.200.0110.00416.83
7.0.140.0070.07022.09
7.0.60.0030.04019.81
7.0.50.0030.04017.85
7.0.40.0070.09019.95
7.0.30.0200.05020.17
7.0.20.0230.03319.96
7.0.10.0370.06720.16
7.0.00.0070.06020.16
5.6.280.0000.07721.09
5.6.210.0170.06720.48
5.6.200.0130.07318.13
5.6.190.0130.05720.32
5.6.180.0330.07720.30
5.6.170.0330.07320.51
5.6.160.0100.03720.49
5.6.150.0070.08018.22
5.6.140.0130.06318.21
5.6.130.0100.06018.12
5.6.120.0170.03720.89
5.6.110.0070.07320.96
5.6.100.0070.08320.97
5.6.90.0130.07720.96
5.6.80.0070.08320.37
5.6.70.0100.04320.39
5.5.350.0030.04020.38
5.5.340.0070.08318.04
5.5.330.0070.08320.14
5.5.320.0070.08320.40
5.5.310.0230.05720.50
5.5.300.0070.05017.88
5.5.290.0100.03717.89
5.5.280.0030.04720.89
5.5.270.0030.06320.96
5.5.260.0170.07020.88
5.5.250.0130.06720.69
5.5.240.0100.07320.28
5.4.450.0700.06019.52
5.4.440.0770.06319.45
5.4.430.0800.05319.51
5.4.420.0770.04319.24
5.4.410.0700.06019.30
5.4.400.0200.04718.77
5.4.390.0130.05318.56
5.4.380.0170.05318.46
5.4.370.0200.04718.65
5.4.360.0170.05318.77
5.4.350.0170.06718.77
5.4.340.0200.07018.53
5.4.320.0170.05318.65
5.4.310.0200.05018.68
5.4.300.0170.05318.66
5.4.290.0130.05718.68
5.4.280.0100.06018.49
5.4.270.0170.05018.46
5.4.260.0170.05718.73
5.4.250.0200.05018.67
5.4.240.0270.04318.71
5.4.230.0170.05018.67
5.4.220.0100.06018.76
5.4.210.0130.06318.71
5.4.200.0170.05716.61
5.4.190.0170.06018.48
5.4.180.0100.06018.54
5.4.170.0200.05018.59
5.4.160.0100.06318.55
5.4.150.0130.05718.50
5.4.140.0170.05316.09
5.4.130.0100.05316.06
5.4.120.0130.05016.25
5.4.110.0200.04716.04
5.4.100.0200.04716.16
5.4.90.0170.06716.07
5.4.80.0200.05716.11
5.4.70.0300.03716.03
5.4.60.0170.05016.32
5.4.50.0100.05316.23
5.4.40.0200.04716.32
5.4.30.0070.06016.12
5.4.20.0170.04716.03
5.4.10.0200.06016.22
5.4.00.0070.06315.75
5.3.290.0070.06314.57
5.3.280.0300.04714.55
5.3.270.0270.07014.69
5.3.260.0200.05014.57
5.3.250.0100.06014.65
5.3.240.0100.05714.70
5.3.230.0100.05714.54
5.3.220.0230.06714.63
5.3.210.0130.05714.54
5.3.200.0100.05314.64
5.3.190.0130.05314.47
5.3.180.0100.05314.53
5.3.170.0300.04314.48
5.3.160.0100.05314.52
5.3.150.0230.05314.52
5.3.140.0230.05314.55
5.3.130.0270.04714.52
5.3.120.0170.05714.59
5.3.110.0100.05714.52
5.3.100.0200.04713.96
5.3.90.0230.04314.07
5.3.80.0170.05013.93
5.3.70.0270.06014.11
5.3.60.0330.05313.98
5.3.50.0330.05713.93
5.3.40.0130.06013.87
5.3.30.0300.04313.87
5.3.20.0230.04013.68
5.3.10.0370.05313.64
5.3.00.0100.06313.72
5.2.170.0000.06011.10
5.2.160.0130.04311.12
5.2.150.0130.05311.14
5.2.140.0070.06311.21
5.2.130.0070.04711.14
5.2.120.0170.03711.14
5.2.110.0130.04011.01
5.2.100.0130.04711.02
5.2.90.0130.04011.08
5.2.80.0170.03711.08
5.2.70.0100.04711.06
5.2.60.0130.04311.08
5.2.50.0230.03311.07
5.2.40.0100.04311.02
5.2.30.0070.04310.95
5.2.20.0170.03310.92
5.2.10.0100.04010.84
5.2.00.0070.04310.77
5.1.60.0170.04010.09
5.1.50.0000.04310.13
5.1.40.0130.03010.00
5.1.30.0030.04310.37
5.1.20.0070.04010.48
5.1.10.0130.04710.18
5.1.00.0100.05010.08
5.0.50.0070.0278.61
5.0.40.0100.0238.47
5.0.30.0000.0478.29
5.0.20.0070.0308.32
5.0.10.0130.0308.29
5.0.00.0030.0478.36
4.4.90.0070.0235.91
4.4.80.0030.0235.88
4.4.70.0100.0205.87
4.4.60.0100.0175.90
4.4.50.0030.0235.91
4.4.40.0070.0335.88
4.4.30.0030.0235.93
4.4.20.0030.0235.95
4.4.10.0030.0235.93
4.4.00.0030.0375.93
4.3.110.0000.0275.75
4.3.100.0030.0235.87
4.3.90.0030.0235.83
4.3.80.0000.0375.81
4.3.70.0170.0175.78
4.3.60.0030.0275.77
4.3.50.0130.0205.83
4.3.40.0030.0335.82
4.3.30.0030.0234.98
4.3.20.0000.0374.98
4.3.10.0070.0274.98
4.3.00.0130.0206.96