3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $diff=date_diff(date_create('1997-1-1'),date_create(date("Y-m-d"))); echo $diff->format("%R%a days"); if ($diff < new DateTime('18 years')){ echo 'Too young!'; } else { echo 'old_enough'; }
based on mgLoA

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.110.0150.00016.51
7.2.60.0030.01017.11
7.2.00.0060.00619.63
7.1.200.0090.00315.90
7.1.100.0070.00318.39
7.1.70.0020.00517.05
7.1.60.0070.01719.22
7.1.50.0110.01116.98
7.1.00.0070.07322.31
7.0.200.0030.00717.07
7.0.140.0000.07021.92
7.0.90.0070.08319.86
7.0.80.0270.07319.80
7.0.70.0300.04719.83
7.0.60.0400.07319.83
7.0.50.0470.07020.16
7.0.40.0100.04320.04
7.0.30.0170.07320.00
7.0.20.0030.07320.13
7.0.10.0070.08019.99
7.0.00.0130.07720.04
5.6.280.0130.06320.89
5.6.240.0130.07020.52
5.6.230.0100.09020.60
5.6.220.0100.06320.56
5.6.210.0170.04020.61
5.6.200.0100.08021.02
5.6.190.0200.06721.05
5.6.180.0130.05321.06
5.6.170.0170.04321.01
5.6.160.0030.05021.13
5.6.150.0030.08021.02
5.6.140.0070.08320.95
5.6.130.0030.09020.95
5.6.120.0070.08320.94
5.6.110.0100.04721.07
5.6.100.0030.08021.05
5.6.90.0130.07320.99
5.6.80.0100.07720.55
5.6.70.0030.04320.31
5.6.60.0000.05020.40
5.6.50.0070.06720.48
5.6.40.0070.08020.39
5.6.30.0070.08320.31
5.6.20.0030.05020.39
5.6.10.0030.04720.30
5.6.00.0030.08320.30
5.5.380.0000.08720.36
5.5.370.0130.06320.44
5.5.360.0170.07320.43
5.5.350.0130.06320.37
5.5.340.0170.07320.87
5.5.330.0100.07720.80
5.5.320.0070.08320.89
5.5.310.0100.08020.87
5.5.300.0000.04720.88
5.5.290.0170.07320.77
5.5.280.0100.07320.75
5.5.270.0100.05020.85
5.5.260.0070.07320.63
5.5.250.0070.09320.56
5.5.240.0070.08020.28
5.5.230.0100.05320.17
5.5.220.0130.06020.18
5.5.210.0170.06720.20
5.5.200.0130.06020.09
5.5.190.0070.08320.14
5.5.180.0100.04019.98
5.5.160.0070.08320.11
5.5.150.0030.04020.12
5.5.140.0070.06020.16
5.5.130.0130.07720.26
5.5.120.0170.06020.26
5.5.110.0100.06720.21
5.5.100.0030.06720.13
5.5.90.0100.07320.04
5.5.80.0070.07320.02
5.5.70.0070.07720.05
5.5.60.0030.08720.14
5.5.50.0130.03020.14
5.5.40.0130.07019.99
5.5.30.0100.07720.04
5.5.20.0100.08020.07
5.5.10.0130.06720.04
5.5.00.0070.07319.91
5.4.450.0070.07019.13
5.4.440.0100.07319.34
5.4.430.0030.06719.29
5.4.420.0070.08319.13
5.4.410.0100.04019.08
5.4.400.0130.03718.97
5.4.390.0030.05318.96
5.4.380.0100.06719.03
5.4.370.0070.04319.10
5.4.360.0200.07018.78
5.4.350.0170.03719.02
5.4.340.0070.06718.96
5.4.320.0030.08319.03
5.4.310.0100.07719.10
5.4.300.0100.04718.80
5.4.290.0030.08018.80
5.4.280.0100.07018.96
5.4.270.0000.08719.02
5.4.260.0070.06018.98
5.4.250.0070.06019.04
5.4.240.0030.04319.09
5.4.230.0070.04019.02
5.4.220.0200.07719.05
5.4.210.0070.06019.01
5.4.200.0100.06318.95
5.4.190.0030.04718.87
5.4.180.0070.04019.01
5.4.170.0100.05319.04
5.4.160.0070.04318.85
5.4.150.0070.07718.97
5.4.140.0070.07316.28
5.4.130.0030.06316.12
5.4.120.0070.06316.25
5.4.110.0030.07316.37
5.4.100.0030.08016.30
5.4.90.0000.05316.38
5.4.80.0100.07016.45
5.4.70.0170.06316.25
5.4.60.0130.06716.29
5.4.50.0070.07716.39
5.4.40.0100.06316.40
5.4.30.0130.06316.27
5.4.20.0070.03716.28
5.4.10.0170.03016.32
5.4.00.0030.05715.64
5.3.290.0130.06714.66
5.3.280.0000.05014.50
5.3.270.0100.06714.42
5.3.260.0030.07014.52
5.3.250.0100.04714.56
5.3.240.0100.03714.45
5.3.230.0000.04714.52
5.3.220.0000.04714.38
5.3.210.0070.04714.55
5.3.200.0130.07314.50
5.3.190.0030.08014.42
5.3.180.0200.07014.38
5.3.170.0070.07314.43
5.3.160.0030.04314.53
5.3.150.0100.07314.56
5.3.140.0100.06714.53
5.3.130.0070.07714.50
5.3.120.0030.05714.54
5.3.110.0030.07714.38
5.3.100.0200.06013.89
5.3.90.0100.05713.93
5.3.80.0070.06313.94
5.3.70.0170.06313.79
5.3.60.0100.06713.86
5.3.50.0130.06713.93
5.3.40.0100.05313.71
5.3.30.0100.06013.68
5.3.20.0100.05713.46
5.3.10.0030.03713.65
5.3.00.0030.07313.49
5.2.170.0130.05311.06
5.2.160.0030.05310.97
5.2.150.0030.06311.16
5.2.140.0070.04311.09
5.2.130.0000.06311.05
5.2.120.0000.04710.92
5.2.110.0070.04711.09
5.2.100.0100.05011.16
5.2.90.0070.03011.16
5.2.80.0000.03711.16
5.2.70.0030.05711.09
5.2.60.0030.07011.07
5.2.50.0070.05710.86
5.2.40.0030.06010.84
5.2.30.0070.06011.02
5.2.20.0030.04310.90
5.2.10.0030.06710.91
5.2.00.0030.06010.73
5.1.60.0030.05710.55
5.1.50.0100.04310.55
5.1.40.0030.03010.55
5.1.30.0130.03010.55
5.1.20.0000.06010.55
5.1.10.0000.03010.55
5.1.00.0070.05010.55
5.0.50.0000.03310.55
5.0.40.0000.03710.55
5.0.30.0030.03710.55
5.0.20.0000.02010.55
5.0.10.0070.03710.55
5.0.00.0000.06310.55
4.4.90.0030.02010.55
4.4.80.0030.03310.55
4.4.70.0000.03010.55
4.4.60.0030.03010.55
4.4.50.0000.04010.55
4.4.40.0000.03310.55
4.4.30.0030.02010.55
4.4.20.0000.02010.55
4.4.10.0030.01710.55
4.4.00.0000.02710.55
4.3.110.0000.02310.55
4.3.100.0030.02010.55
4.3.90.0000.01710.55
4.3.80.0000.04710.55
4.3.70.0030.03310.55
4.3.60.0070.02710.55
4.3.50.0000.03010.55
4.3.40.0070.04310.55
4.3.30.0030.03010.55
4.3.20.0030.01710.55
4.3.10.0030.02310.55
4.3.00.0030.02010.55