3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $chars = [101, 135]; foreach($chars as $char) echo ord($char);

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.87
7.2.00.0000.01119.12
7.1.200.0090.00615.60
7.1.100.0000.01017.91
7.1.70.0080.00817.03
7.1.60.0130.01019.22
7.1.50.0000.01316.85
7.1.00.0070.07322.35
7.0.200.0110.00316.93
7.0.140.0000.06322.12
7.0.60.0100.08319.95
7.0.50.0030.08317.80
7.0.40.0030.04720.30
7.0.30.0530.06720.34
7.0.20.0170.05020.18
7.0.10.0070.04320.13
7.0.00.0070.09020.08
5.6.280.0000.07720.96
5.6.210.0170.07020.71
5.6.200.0070.07018.09
5.6.190.0100.08020.56
5.6.180.4200.03720.45
5.6.170.0230.05320.33
5.6.160.0100.08020.49
5.6.150.0100.08018.17
5.6.140.0100.07718.07
5.6.130.0170.04718.18
5.6.120.0070.07021.01
5.6.110.0070.04720.98
5.6.100.0070.07720.95
5.6.90.0030.08020.96
5.6.80.0070.07320.48
5.6.70.0270.06320.43
5.5.350.0070.04720.46
5.5.340.0030.03717.92
5.5.330.0000.08320.21
5.5.320.0130.04320.32
5.5.310.0270.06720.29
5.5.300.0100.08017.92
5.5.290.0100.07717.92
5.5.280.0070.07720.96
5.5.270.0030.09320.86
5.5.260.0030.04320.86
5.5.250.0100.08320.49
5.5.240.0100.07020.07
5.4.450.0670.06319.57
5.4.440.0700.05719.41
5.4.430.0170.07019.57
5.4.420.1230.04019.45
5.4.410.0770.05719.49
5.4.400.0630.05719.00
5.4.390.0270.04318.57
5.4.380.0370.06318.56
5.4.370.0270.07018.71
5.4.360.0170.05718.66
5.4.350.0170.05318.45
5.4.340.0300.05018.63
5.4.320.0200.05318.48
5.4.310.0230.05018.67
5.4.300.0200.05318.69
5.4.290.0070.06318.77
5.4.280.0100.05718.70
5.4.270.0030.06718.61
5.4.260.0230.04718.60
5.4.250.0100.06018.52
5.4.240.0130.06018.46
5.4.230.0230.04718.45
5.4.220.0200.05018.47
5.4.210.0200.04718.70
5.4.200.0070.05716.66
5.4.190.0070.06018.50
5.4.180.0070.06018.50
5.4.170.0200.05018.66
5.4.160.0130.05318.69
5.4.150.0130.06318.54
5.4.140.0200.04716.04
5.4.130.0200.04716.13
5.4.120.0130.05316.22
5.4.110.0200.06016.12
5.4.100.0170.05016.16
5.4.90.0170.05316.12
5.4.80.0100.05716.18
5.4.70.0300.05316.23
5.4.60.0170.06016.01
5.4.50.0270.04716.27
5.4.40.0230.04716.21
5.4.30.0300.03716.04
5.4.20.0170.05016.27
5.4.10.0200.04716.26
5.4.00.0130.05715.67
5.3.290.0100.06014.76
5.3.280.0100.06014.52
5.3.270.0070.06714.52
5.3.260.0100.06014.70
5.3.250.0070.06314.61
5.3.240.0070.06014.50
5.3.230.0170.05314.58
5.3.220.0170.05014.61
5.3.210.0200.05714.66
5.3.200.0230.04714.52
5.3.190.0230.05014.55
5.3.180.0230.04714.47
5.3.170.0130.05314.54
5.3.160.0170.05014.46
5.3.150.0130.05314.48
5.3.140.0230.04714.56
5.3.130.0130.05714.46
5.3.120.0170.05014.62
5.3.110.0270.04314.64
5.3.100.0200.04713.94
5.3.90.0200.05014.09
5.3.80.0100.05714.11
5.3.70.0270.04013.96
5.3.60.0070.06014.00
5.3.50.0170.04713.86
5.3.40.0230.04013.85
5.3.30.0270.04013.82
5.3.20.0170.05013.61
5.3.10.0100.05313.75
5.3.00.0100.05713.59
5.2.170.0230.03011.14
5.2.160.0170.03711.10
5.2.150.0100.04711.18
5.2.140.0230.03311.18
5.2.130.0100.05011.15
5.2.120.0100.06011.07
5.2.110.0200.03711.16
5.2.100.0170.03711.13
5.2.90.0070.04711.03
5.2.80.0100.04311.15
5.2.70.0200.03711.13
5.2.60.0270.03010.96
5.2.50.0170.03711.05
5.2.40.0170.03310.97
5.2.30.0170.04011.03
5.2.20.0100.04010.95
5.2.10.0100.04010.87
5.2.00.0130.04010.76
5.1.60.0230.02010.06
5.1.50.0000.04710.02
5.1.40.0070.03310.05
5.1.30.0170.03010.30
5.1.20.0170.03310.45
5.1.10.0100.03710.05
5.1.00.0070.04010.08
5.0.50.0030.0338.64
5.0.40.0030.0308.42
5.0.30.0070.0438.19
5.0.20.0030.0308.23
5.0.10.0000.0338.30
5.0.00.0070.0438.28
4.4.90.0100.0205.91
4.4.80.0030.0305.94
4.4.70.0100.0205.93
4.4.60.0030.0235.81
4.4.50.0030.0235.92
4.4.40.0000.0405.89
4.4.30.0100.0175.94
4.4.20.0000.0275.97
4.4.10.0030.0236.01
4.4.00.0070.0375.95
4.3.110.0030.0275.82
4.3.100.0070.0205.77
4.3.90.0030.0235.83
4.3.80.0070.0335.78
4.3.70.0000.0275.87
4.3.60.0130.0135.78
4.3.50.0030.0235.91
4.3.40.0070.0335.76
4.3.30.0070.0204.57
4.3.20.0000.0274.56
4.3.10.0070.0204.59
4.3.00.0130.0207.23