3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = [ 0 => (object) [ 'bar' => 123, ] ]; echo $foo[0]->{'bar'};
based on ImhnU

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.0090.00516.40
7.3.00.0050.00916.56
7.2.130.0070.00716.71
7.2.120.0020.01316.83
7.2.110.0070.00516.79
7.2.100.0070.00316.76
7.2.90.0070.00517.00
7.2.80.0080.00516.99
7.2.70.0110.00317.00
7.2.60.0090.00716.87
7.2.50.0070.00617.00
7.2.40.0050.00616.96
7.2.30.0050.00716.91
7.2.20.0050.00716.89
7.2.10.0050.00616.96
7.2.00.0070.00917.68
7.1.250.0010.00815.60
7.1.200.0000.00815.99
7.1.100.0030.01117.83
7.1.70.0000.01617.32
7.1.60.0070.01619.22
7.1.50.0030.01317.04
7.1.00.0030.07722.28
7.0.200.0000.00816.46
7.0.140.0030.03322.01
7.0.60.0100.05319.91
7.0.50.0170.07317.66
7.0.40.0000.06720.07
7.0.30.0370.07320.13
7.0.20.0230.08020.21
7.0.10.0000.08320.20
7.0.00.0070.08320.16
5.6.280.0070.07021.09
5.6.210.0130.07320.69
5.6.200.0130.03318.15
5.6.190.0170.03020.27
5.6.180.0170.05720.63
5.6.170.0070.05320.42
5.6.160.0070.04020.66
5.6.150.0070.08318.16
5.6.140.0000.04318.18
5.6.130.0030.08018.18
5.6.120.0070.06321.03
5.6.110.0070.05720.97
5.6.100.0070.04020.93
5.6.90.0000.04320.94
5.6.80.0000.04020.40
5.6.70.0370.06320.43
5.5.350.0030.04320.45
5.5.340.0130.07717.98
5.5.330.0030.05320.38
5.5.320.0300.06720.28
5.5.310.0100.04320.29
5.5.300.0200.06318.01
5.5.290.0070.08017.98
5.5.280.0100.08320.85
5.5.270.0000.06020.76
5.5.260.0230.06720.64
5.5.250.0030.06020.54
5.5.240.0030.07720.33
5.4.450.0400.05019.40
5.4.440.0770.05319.14
5.4.430.0730.05319.25
5.4.420.0800.06019.16
5.4.410.0930.04719.02
5.4.400.0700.05319.10
5.4.390.0600.05319.22
5.4.380.0270.05318.67
5.4.370.0270.05318.51
5.4.360.0230.05318.65
5.4.350.0300.07718.46
5.4.340.0370.06718.48
5.4.320.0300.05018.59
5.4.310.0270.06018.67
5.4.300.0270.05018.63
5.4.290.0230.06318.72
5.4.280.0300.04718.61
5.4.270.0400.05718.59
5.4.260.0170.06018.45
5.4.250.0170.06318.56
5.4.240.0200.06018.55
5.4.230.0330.06318.66
5.4.220.0230.05718.46
5.4.210.0300.05018.55
5.4.200.0300.04316.46
5.4.190.0230.05018.55
5.4.180.0230.05318.55
5.4.170.0170.07318.66
5.4.160.0230.05318.58
5.4.150.0270.05018.64
5.4.140.0200.05316.31
5.4.130.0230.05016.20
5.4.120.0200.05716.26
5.4.110.0230.05016.06
5.4.100.0200.05716.34
5.4.90.0170.05716.21
5.4.80.0100.06316.20
5.4.70.0270.05716.23
5.4.60.0230.05716.20
5.4.50.0300.06716.20
5.4.40.0300.07016.23
5.4.30.0370.06016.16
5.4.20.0370.05016.13
5.4.10.0300.04716.21
5.4.00.0330.04315.68
5.3.290.0200.06314.75
5.3.280.0200.05714.53
5.3.270.0200.06314.50
5.3.260.0230.05714.55
5.3.250.0300.05314.70
5.3.240.0230.05714.55
5.3.230.0270.05014.69
5.3.220.0370.07014.53
5.3.210.0270.07714.46
5.3.200.0200.05714.48
5.3.190.0170.06714.64
5.3.180.0370.05714.54
5.3.170.0270.05314.64
5.3.160.0400.04314.48
5.3.150.0300.06014.50
5.3.140.0330.04014.47
5.3.130.0200.06014.58
5.3.120.0270.05014.64
5.3.110.0170.07314.48
5.3.100.0300.05314.13
5.3.90.0270.04713.97
5.3.80.0170.05714.11
5.3.70.0270.04714.01
5.3.60.0170.05313.94
5.3.50.0230.05013.93
5.3.40.0230.05013.94
5.3.30.0300.05314.02
5.3.20.0170.05713.63
5.3.10.0370.05013.57
5.3.00.0230.05013.73
5.2.170.0130.04311.14
5.2.160.0170.06011.20
5.2.150.0230.04311.11
5.2.140.0130.04711.07
5.2.130.0370.04711.10
5.2.120.0300.04711.14
5.2.110.0330.04711.09
5.2.100.0300.04311.16
5.2.90.0170.04311.15
5.2.80.0200.05711.13
5.2.70.0230.05011.25
5.2.60.0170.05711.18
5.2.50.0330.04311.05
5.2.40.0100.06010.99
5.2.30.0130.06010.98
5.2.20.0200.05010.99
5.2.10.0130.05710.95
5.2.00.0170.05310.72
5.1.60.0200.04310.04
5.1.50.0130.04710.02
5.1.40.0170.04710.03
5.1.30.0100.04010.30
5.1.20.0230.03710.35
5.1.10.0230.04010.11
5.1.00.0130.05010.17
5.0.50.0100.0408.62
5.0.40.0070.0308.43
5.0.30.0130.0538.36
5.0.20.0100.0378.18
5.0.10.0200.0278.29
5.0.00.0170.0378.15
4.4.90.0070.0236.70
4.4.80.0200.0206.70
4.4.70.0030.0276.70
4.4.60.0100.0276.70
4.4.50.0030.0306.70
4.4.40.0100.0376.70
4.4.30.0100.0306.70
4.4.20.0130.0276.70
4.4.10.0100.0276.70
4.4.00.0070.0436.70
4.3.110.0170.0206.70
4.3.100.0100.0306.70
4.3.90.0130.0236.70
4.3.80.0030.0476.70
4.3.70.0070.0236.70
4.3.60.0070.0206.70
4.3.50.0200.0206.70
4.3.40.0170.0406.70
4.3.30.0100.0206.70
4.3.20.0100.0276.70
4.3.10.0100.0276.70
4.3.00.0100.0307.22