3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 1;$i < 10;$i++) { if ($i > 10) { break; } print $i; }

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.0rc40.0090.00098.97
7.3.0rc30.0350.00616.52
7.2.00.0030.01019.34
7.1.100.0030.00618.17
7.1.70.0060.01017.08
7.1.60.0000.01317.19
7.1.50.0100.01016.78
7.1.00.0000.08022.43
7.0.200.0060.00916.73
7.0.140.0000.07721.95
7.0.120.0000.08721.98
7.0.110.0030.07322.08
7.0.100.0100.07021.96
7.0.90.0030.06321.98
7.0.80.0030.07022.13
7.0.70.0030.06022.09
7.0.60.0000.08021.95
7.0.50.0000.04322.07
7.0.40.0030.04320.13
7.0.30.0070.08019.92
7.0.20.0000.04020.10
7.0.10.0030.08720.06
7.0.00.0030.07020.13
5.6.280.0100.06721.14
5.6.270.0030.08321.00
5.6.260.0000.07320.82
5.6.250.0030.04721.00
5.6.240.0070.07721.04
5.6.230.0070.07720.95
5.6.220.0030.04721.02
5.6.210.0030.04020.63
5.6.200.0000.04320.74
5.6.190.0000.04020.88
5.6.180.0100.06720.78
5.6.170.0070.03320.91
5.6.160.0070.06020.85
5.6.150.0070.04021.00
5.6.140.0000.05320.77
5.6.130.0030.05020.85
5.6.120.0030.07721.02
5.6.110.0000.04320.86
5.6.100.0070.08020.96
5.6.90.0100.07020.93
5.6.80.0000.04720.41
5.6.70.0030.07320.25
5.6.60.0030.07320.25
5.6.50.0030.05720.26
5.6.40.0070.07720.16
5.6.30.0030.03720.36
5.6.20.0030.07020.09
5.6.10.0000.08020.21
5.6.00.0070.05720.03
5.5.380.0070.07317.58
5.5.370.0000.05717.44
5.5.360.0100.07017.60
5.5.350.0070.07317.39
5.5.340.0030.03717.85
5.5.330.0030.05317.87
5.5.320.0000.04018.26
5.5.310.0000.04018.25
5.5.300.0070.03717.77
5.5.290.0000.04018.25
5.5.280.0030.04018.09
5.5.270.0000.04318.08
5.5.260.0070.03318.00
5.5.250.0000.04017.97
5.5.240.0070.03317.28
5.5.230.0030.07717.20
5.5.220.0000.07717.53
5.5.210.0070.07017.54
5.5.200.0070.05717.20
5.5.190.0000.03717.52
5.5.180.0030.04017.53
5.5.160.0000.06317.20
5.5.150.0000.07317.45
5.5.140.0000.07717.47
5.5.130.0000.04317.46
5.5.120.0070.03317.36
5.5.110.0030.05317.47
5.5.100.0030.07717.12
5.5.90.0030.07317.09
5.5.80.0000.06717.09
5.5.70.0030.07017.22
5.5.60.0000.03717.40
5.5.50.0000.04017.37
5.5.40.0030.03717.33
5.5.30.0000.04317.49
5.5.20.0070.03317.36
5.5.10.0030.03717.36
5.5.00.0000.04317.14
5.4.450.0100.03319.26
5.4.440.0070.03319.43
5.4.430.0070.03319.54
5.4.420.0030.07719.21
5.4.410.0100.06719.10
5.4.400.0000.06719.22
5.4.390.0000.04319.05
5.4.380.0030.03319.13
5.4.370.0100.05718.95
5.4.360.0030.07319.13
5.4.350.0070.03018.93
5.4.340.0000.04018.94
5.4.320.0030.03718.97
5.4.310.0030.03718.95
5.4.300.0000.06719.02
5.4.290.0000.03718.89
5.4.280.0000.04019.22
5.4.270.0000.04018.91
5.4.260.0000.03719.02
5.4.250.0030.06718.92
5.4.240.0030.07719.04
5.4.230.0130.05718.96
5.4.220.0000.06019.12
5.4.210.0070.05319.12
5.4.200.0030.03718.95
5.4.190.0070.03319.21
5.4.180.0070.05318.88
5.4.170.0070.04318.96
5.4.160.0070.06018.93
5.4.150.0070.07019.04
5.4.140.0030.06316.11
5.4.130.0070.05316.42
5.4.120.0100.06016.41
5.4.110.0030.05716.13
5.4.100.0030.03716.23
5.4.90.0130.03016.47
5.4.80.0070.06316.47
5.4.70.0000.04316.27
5.4.60.0030.03716.43
5.4.50.0030.03316.43
5.4.40.0000.04316.50
5.4.30.0000.03716.44
5.4.20.0100.04016.44
5.4.10.0070.09016.43
5.4.00.0070.03015.76
5.3.290.0000.07714.67
5.3.280.0000.08014.38
5.3.270.0030.05314.50
5.3.260.0030.04714.61
5.3.250.0000.03714.61
5.3.240.0070.03714.67
5.3.230.0000.07714.66
5.3.220.0030.05714.43
5.3.210.0100.03014.55
5.3.200.0100.03314.55
5.3.190.0030.07014.44
5.3.180.0070.04314.45
5.3.170.0030.05314.61
5.3.160.0030.03714.63
5.3.150.0070.07714.55
5.3.140.0070.03014.42
5.3.130.0000.03714.38
5.3.120.0030.03714.40
5.3.110.0030.03714.44
5.3.100.0070.03313.82
5.3.90.0070.03013.91
5.3.80.0000.03714.08
5.3.70.0000.04713.95
5.3.60.0000.03713.91
5.3.50.0000.07713.76
5.3.40.0000.07013.82
5.3.30.0070.03013.82
5.3.20.0000.08013.62
5.3.10.0070.07713.73
5.3.00.0030.07013.74
5.2.170.0070.02311.14
5.2.160.0070.05711.29
5.2.150.0030.05311.13
5.2.140.0030.06711.07
5.2.130.0100.05011.10
5.2.120.0170.05311.05
5.2.110.0070.02310.99
5.2.100.0070.04311.04
5.2.90.0070.02311.05
5.2.80.0030.05011.10
5.2.70.0100.05711.02
5.2.60.0000.05011.04
5.2.50.0000.03011.07
5.2.40.0030.06011.00
5.2.30.0070.03711.03
5.2.20.0000.04310.95
5.2.10.0000.02710.82
5.2.00.0030.02710.66
5.1.60.0030.0479.96
5.1.50.0000.0239.96
5.1.40.0030.0439.92
5.1.30.0000.05710.40
5.1.20.0100.05310.34
5.1.10.0030.04710.12
5.1.00.0030.0339.88
5.0.50.0000.0439.83
5.0.40.0000.0209.83
5.0.30.0000.0339.83
5.0.20.0000.0209.83
5.0.10.0030.0439.83
5.0.00.0000.0539.83
4.4.90.0070.0309.83
4.4.80.0000.0209.83
4.4.70.0000.0339.83
4.4.60.0000.0279.83
4.4.50.0000.0379.83
4.4.40.0030.0309.83
4.4.30.0000.0339.83
4.4.20.0030.0339.83
4.4.10.0030.0279.83
4.4.00.0030.0509.83
4.3.110.0000.0379.83
4.3.100.0000.0309.83
4.3.90.0000.0279.83
4.3.80.0000.0379.83
4.3.70.0000.0339.83
4.3.60.0000.0309.83
4.3.50.0000.0179.83
4.3.40.0000.0479.83
4.3.30.0100.0239.83
4.3.20.0030.0339.83
4.3.10.0000.0239.83
4.3.00.0000.0339.83