3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; $variantStartTime = DateTimeImmutable::createFromFormat('Y-m-d', 'xxx'); var_dump($a == 1 && isset($variantStartTime) ? $variantStartTime : null);
based on 7LVBh

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.0060.00716.54
7.3.00.0060.00416.55
7.2.130.0040.00616.54
7.2.120.0060.00616.80
7.2.110.0030.01016.70
7.2.100.0080.00516.86
7.2.90.0050.01216.86
7.2.80.0020.01016.82
7.2.70.0060.00716.92
7.2.60.0070.00816.81
7.2.50.0060.00916.88
7.2.40.0060.00916.94
7.2.30.0000.01016.97
7.2.20.0100.00316.84
7.2.10.0110.00716.68
7.2.00.0080.00617.53
7.1.250.0090.00315.73
7.1.200.0040.00715.93
7.1.100.0000.01118.07
7.1.70.0040.00417.33
7.1.60.0070.01819.22
7.1.50.0030.01917.18
7.1.00.0100.07022.30
7.0.200.0030.00616.93
7.0.140.0000.03322.16
7.0.60.0100.07719.92
7.0.50.0000.05017.84
7.0.40.0070.04320.06
7.0.30.0170.04320.21
7.0.20.0270.05720.12
7.0.10.0030.08020.09
7.0.00.0100.08720.09
5.6.280.0070.07021.09
5.6.210.0100.06320.66
5.6.200.0030.04018.18
5.6.190.0030.04320.77
5.6.180.0330.08020.44
5.6.170.0270.08020.40
5.6.160.0070.04320.44
5.6.150.0170.07018.15
5.6.140.0030.08718.17
5.6.130.0130.08018.11
5.6.120.0100.06720.89
5.6.110.0070.04321.14
5.6.100.0100.03320.96
5.6.90.0100.03720.96
5.6.80.0100.08020.40
5.5.350.0270.08020.48
5.5.340.0030.08718.01
5.5.330.0030.07020.43
5.5.320.0270.08020.50
5.5.310.0270.05720.17
5.5.300.0100.05317.96
5.5.290.0070.08317.98
5.5.280.0030.04020.65
5.5.270.0100.07320.86
5.5.260.0030.08720.88
5.5.250.0170.07720.65
5.5.240.0030.04320.18
5.4.450.0570.06319.32
5.4.440.0270.04719.47
5.4.430.0730.06319.47
5.4.420.0700.04719.31
5.4.410.0970.05019.19
5.4.400.0700.07019.30
5.4.390.0930.05719.13
5.4.380.0330.05318.70
5.4.370.0200.06018.64
5.4.360.0300.05018.68
5.4.350.0130.06318.50
5.4.340.0230.05318.72
5.4.320.0300.05018.67
5.4.310.0200.08018.66
5.4.300.0270.04718.45
5.4.290.0230.05018.49
5.4.280.0170.05718.58
5.4.270.0200.05318.57
5.4.260.0270.05318.61
5.4.250.0130.07018.69
5.4.240.0130.06318.66
5.4.230.0270.04718.43
5.4.220.0330.04718.74
5.4.210.0170.05718.55
5.4.200.0200.05016.73
5.4.190.0230.04718.66
5.4.180.0300.04318.43
5.4.170.0170.06318.48
5.4.160.0200.05018.67
5.4.150.0170.05718.67
5.4.140.0330.04016.30
5.4.130.0430.05016.29
5.4.120.0300.06016.04
5.4.110.0070.05716.24
5.4.100.0200.06016.21
5.4.90.0370.03716.20
5.4.80.0170.05316.14
5.4.70.0330.04016.27
5.4.60.0230.05316.27
5.4.50.0300.03716.09
5.4.40.0130.05716.11
5.4.30.0300.03716.09
5.4.20.0100.05716.09
5.4.10.0270.04315.97
5.4.00.0170.05015.76
5.3.290.0270.05014.64
5.3.280.0200.05014.56
5.3.270.0330.04714.60
5.3.260.0230.05314.63
5.3.250.0230.05014.59
5.3.240.0170.05714.70
5.3.230.0270.04714.59
5.3.220.0130.05714.46
5.3.210.0200.06014.65
5.3.200.0300.05014.47
5.3.190.0270.06014.66
5.3.180.0330.05714.65
5.3.170.0230.05714.52
5.3.160.0430.03014.53
5.3.150.0300.04714.51
5.3.140.0170.05714.50
5.3.130.0170.06014.64
5.3.120.0230.05014.59
5.3.110.0230.05314.50
5.3.100.0130.06014.02
5.3.90.0070.06313.95
5.3.80.0170.05313.98
5.3.70.0200.05314.11
5.3.60.0230.05013.99
5.3.50.0230.05013.89
5.3.40.0170.06013.98
5.3.30.0170.05313.85
5.3.20.0230.05313.77
5.3.10.0300.04013.63
5.3.00.0200.05013.62
5.2.170.0130.04711.07
5.2.160.0200.04011.18
5.2.150.0070.05311.20
5.2.140.0230.03711.18
5.2.130.0100.04711.10
5.2.120.0100.04711.14
5.2.110.0230.04011.13
5.2.100.0100.05011.18
5.2.90.0170.04311.08
5.2.80.0300.04011.10
5.2.70.0130.05011.16
5.2.60.0130.04311.11
5.2.50.0070.05711.00
5.2.40.0030.05011.04
5.2.30.0100.04710.93
5.2.20.0130.03711.10
5.2.10.0230.03010.85
5.2.00.0030.05010.71
5.1.60.0070.0379.96
5.1.50.0100.03710.01
5.1.40.0070.04010.11
5.1.30.0170.03010.43
5.1.20.0100.04010.46
5.1.10.0100.03710.04
5.1.00.0130.03710.18
5.0.50.0130.0338.56
5.0.40.0100.0378.38
5.0.30.0100.0438.35
5.0.20.0100.0238.27
5.0.10.0070.0338.23
5.0.00.0130.0508.36
4.4.90.0070.0305.94
4.4.80.0070.0305.88
4.4.70.0100.0275.82
4.4.60.0070.0305.87
4.4.50.0070.0235.92
4.4.40.0070.0475.91
4.4.30.0100.0205.87
4.4.20.0100.0205.92
4.4.10.0070.0235.92
4.4.00.0130.0305.84
4.3.110.0030.0275.82
4.3.100.0070.0235.82
4.3.90.0000.0275.82
4.3.80.0070.0335.79
4.3.70.0030.0275.87
4.3.60.0100.0205.78
4.3.50.0070.0235.76
4.3.40.0070.0375.83
4.3.30.0000.0274.59
4.3.20.0100.0174.66
4.3.10.0030.0274.55
4.3.00.0170.0207.56