3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name = 'foo'; if (strlen($name) > 49) { echo 'a'; } if (isset($name[49])) { echo 'a'; }

Here you find the average performance (time & memory) of each version. A greyed 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.00.0030.01018.87
7.1.100.1460.00011.91
7.1.70.0150.00316.52
7.1.60.0070.01319.22
7.1.50.0060.01116.78
7.1.00.0100.07022.42
7.0.200.0030.00316.79
7.0.140.0030.07722.18
7.0.60.0330.06719.93
7.0.50.0030.06317.89
7.0.40.0130.07020.12
7.0.30.0370.04320.30
7.0.20.0300.06020.17
7.0.10.0070.05720.16
7.0.00.0100.04020.12
5.6.280.0030.07020.91
5.6.210.0100.08320.61
5.6.200.0070.06318.22
5.6.190.0000.05320.41
5.6.180.0300.03720.43
5.6.170.0370.07020.52
5.6.160.0070.04720.50
5.6.150.0070.08318.20
5.6.140.0030.08318.11
5.6.130.0070.08318.22
5.6.120.0170.07320.98
5.6.110.0100.07720.97
5.6.100.0100.06320.95
5.6.90.0130.07720.99
5.6.80.0100.08020.43
5.5.350.0230.07020.33
5.5.340.0070.04317.96
5.5.330.0030.04320.13
5.5.320.0400.03720.52
5.5.310.0270.04320.30
5.5.300.0100.03017.90
5.5.290.0100.03717.98
5.5.280.0100.03720.87
5.5.270.0130.05720.76
5.5.260.0100.04020.86
5.5.250.0170.07020.69
5.5.240.0170.08320.23
5.4.450.0370.07019.57
5.4.440.0330.03319.57
5.4.430.0270.04719.13
5.4.420.0230.04019.48
5.4.410.0300.03719.45
5.4.400.0170.03718.92
5.4.390.0070.04019.13
5.4.380.0200.03319.25
5.4.370.0270.05319.13
5.4.360.0270.03019.21
5.4.350.0130.04018.92
5.4.340.0270.04019.09
5.4.320.0270.03018.80
5.4.310.0230.03319.22
5.4.300.0200.03019.25
5.4.290.0230.03319.09
5.4.280.0170.03719.05
5.4.270.0200.04319.24
5.4.260.0170.04019.05
5.4.250.0230.03018.78
5.4.240.0200.03319.20
5.4.230.0170.04718.82
5.4.220.0330.07019.21
5.4.210.0270.07018.81
5.4.200.0230.07319.17
5.4.190.0230.06719.07
5.4.180.0330.04318.91
5.4.170.0300.07019.12
5.4.160.0230.07718.90
5.4.150.0400.06019.11
5.4.140.0300.05316.50
5.4.130.0300.06716.25
5.4.120.0230.03716.37
5.4.110.0300.06016.39
5.4.100.0270.07016.43
5.4.90.0300.05316.22
5.4.80.0230.07016.32
5.4.70.0370.06016.29
5.4.60.0300.06316.18
5.4.50.0300.06016.20
5.4.40.0430.07016.36
5.4.30.0270.07016.45
5.4.20.0370.03716.40
5.4.10.0270.06316.46
5.4.00.0330.05715.68
5.3.290.0200.03714.50
5.3.280.0230.05014.52
5.3.270.0270.04014.50
5.3.260.0270.07314.54
5.3.250.0430.03714.44
5.3.240.0300.07314.69
5.3.230.0230.05014.50
5.3.220.0270.07014.61
5.3.210.0270.06014.41
5.3.200.0270.05714.47
5.3.190.0300.04714.46
5.3.180.0230.04714.40
5.3.170.0330.05314.39
5.3.160.0300.05714.41
5.3.150.0330.06714.41
5.3.140.0430.05314.59
5.3.130.0330.06714.49
5.3.120.0270.07014.40
5.3.110.0300.07014.41
5.3.100.0400.06013.98
5.3.90.0370.06013.96
5.3.80.0300.06713.79
5.3.70.0330.06314.11
5.3.60.0400.04313.88
5.3.50.0300.07013.87
5.3.40.0300.06313.98
5.3.30.0270.05313.78
5.3.20.0330.05313.48
5.3.10.0330.05013.60
5.3.00.0270.04713.50
5.2.170.0300.05012.95
5.2.160.0270.05012.95
5.2.150.0200.03312.95
5.2.140.0230.05712.95
5.2.130.0270.05712.95
5.2.120.0300.05312.95
5.2.110.0230.03312.95
5.2.100.0270.05712.95
5.2.90.0300.03012.95
5.2.80.0300.02012.95
5.2.70.0270.03312.95
5.2.60.0330.05012.95
5.2.50.0270.05712.95
5.2.40.0270.03312.95
5.2.30.0200.04312.95
5.2.20.0270.05012.95
5.2.10.0330.02312.95
5.2.00.0200.03712.95
5.1.60.0230.03312.95
5.1.50.0330.02012.95
5.1.40.0230.04312.95
5.1.30.0170.04012.95
5.1.20.0170.03312.95
5.1.10.0230.05712.95
5.1.00.0170.05012.95
5.0.50.0100.04012.95
5.0.40.0070.02012.95
5.0.30.0070.06312.95
5.0.20.0100.02712.95
5.0.10.0070.03312.95
5.0.00.0170.04012.95
4.4.90.0100.03312.95
4.4.80.0100.03712.95
4.4.70.0100.03712.95
4.4.60.0100.02012.95
4.4.50.0070.03712.95
4.4.40.0130.02312.95
4.4.30.0130.03312.95
4.4.20.0130.03312.95
4.4.10.0130.03012.95
4.4.00.0130.05012.95
4.3.110.0130.01712.95
4.3.100.0130.02312.95
4.3.90.0100.03012.95
4.3.80.0170.03012.95
4.3.70.0100.03312.95
4.3.60.0130.02712.95
4.3.50.0070.02312.95
4.3.40.0170.04312.95
4.3.30.0030.03012.95
4.3.20.0030.02712.95
4.3.10.0030.02712.95
4.3.00.0070.02312.95