3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = new \DateTime(null); $soon = $now->add(new DateInterval('P1D')); echo ($soon->diff($now))->format('%a');
based on bZ5LA

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.0160.00416.87
7.2.00.0040.00719.41
7.1.200.0060.00915.67
7.1.100.0060.00617.95
7.1.70.0030.00717.37
7.1.60.0140.01019.14
7.1.50.0070.00316.97
7.1.00.0070.07022.36
7.0.200.0000.01016.80
7.0.140.0000.07321.92
7.0.110.0130.07019.98
7.0.100.0000.08320.06
7.0.90.0030.05720.05
7.0.80.0030.09320.02
7.0.70.0230.07019.82
7.0.60.0070.07319.64
7.0.50.0100.07319.98
7.0.40.0070.08019.66
7.0.30.0070.07719.76
7.0.20.0030.04019.68
7.0.10.0070.08019.70
7.0.00.0100.07319.88
5.6.280.0070.06720.91
5.6.260.0070.08020.73
5.6.250.0030.05320.64
5.6.240.0000.10020.70
5.6.230.0070.05020.71
5.6.220.0130.04720.56
5.6.210.0100.08020.59
5.6.200.0270.05720.62
5.6.190.0030.04320.65
5.6.180.0070.06020.70
5.6.170.0030.05020.61
5.6.160.0030.08320.70
5.6.150.0130.08020.62
5.6.140.0070.05320.57
5.6.130.0070.08020.63
5.6.120.0100.04320.55
5.6.110.0030.08720.55
5.6.100.0130.07720.61
5.6.90.0000.08720.63
5.6.80.0030.05020.04
5.6.70.0030.05019.91
5.6.60.0100.06020.03
5.6.50.0070.07320.00
5.6.40.0030.03720.05
5.6.30.0070.03319.90
5.6.20.0030.08319.99
5.6.10.0030.03719.97
5.6.00.0100.05720.01
5.5.380.0070.07717.70
5.5.370.0070.07317.57
5.5.360.0170.06717.58
5.5.350.0100.08017.50
5.5.340.0070.07718.22
5.5.330.0100.07318.14
5.5.320.0030.07718.07
5.5.310.0030.08717.91
5.5.300.0130.07018.13
5.5.290.0070.08017.96
5.5.280.0000.05717.93
5.5.270.0030.05018.11
5.5.260.0030.07718.04
5.5.250.0100.04317.91
5.5.240.0100.07317.32
5.5.230.0070.04317.46
5.5.220.0000.08017.29
5.5.210.0070.07317.63
5.5.200.0030.05017.27
5.5.190.0030.03717.45
5.5.180.0030.07717.28
5.5.160.0030.04017.26
5.5.150.0070.07017.30
5.5.140.0130.08017.27
5.5.130.0130.05317.28
5.5.120.0000.03717.47
5.5.110.0070.05317.30
5.5.100.0030.03717.18
5.5.90.0030.06717.30
5.5.80.0030.07017.16
5.5.70.0030.07717.07
5.5.60.0070.05717.36
5.5.50.0000.03717.15
5.5.40.0030.03317.36
5.5.30.0070.03717.36
5.5.20.0030.03717.07
5.5.10.0100.07317.31
5.5.00.0070.07317.33
5.4.450.0070.04319.70
5.4.440.0070.07719.32
5.4.430.0000.08019.34
5.4.420.0130.07319.57
5.4.410.0000.04719.22
5.4.400.0170.06319.19
5.4.390.0000.04319.34
5.4.380.0130.05719.18
5.4.370.0070.06718.95
5.4.360.0030.03718.98
5.4.350.0100.04319.16
5.4.340.0100.05319.14
5.4.320.0000.04019.00
5.4.310.0000.06019.01
5.4.300.0030.03718.99
5.4.290.0070.03018.97
5.4.280.0070.07019.09
5.4.270.0100.07319.00
5.4.260.0100.07319.18
5.4.250.0070.03019.17
5.4.240.0100.07019.18
5.4.230.0130.02719.03
5.4.220.0100.07719.00
5.4.210.0170.05719.14
5.4.200.0030.07319.06
5.4.190.0030.04719.00
5.4.180.0030.03318.96
5.4.170.0000.04019.18
5.4.160.0030.08019.12
5.4.150.0130.06719.16
5.4.140.0030.03316.47
5.4.130.0030.07016.54
5.4.120.0070.07316.63
5.4.110.0070.03016.53
5.4.100.0070.06016.55
5.4.90.0070.07016.43
5.4.80.0030.06016.46
5.4.70.0100.06716.54
5.4.60.0030.06716.34
5.4.50.0070.06316.47
5.4.40.0000.04316.39
5.4.30.0030.03716.33
5.4.20.0030.06716.28
5.4.10.0070.07716.38
5.4.00.0130.06316.04
5.3.290.0030.03314.79
5.3.280.0070.07714.43
5.3.270.0070.07714.55
5.3.260.0070.06314.68
5.3.250.0070.08014.45
5.3.240.0100.06314.70
5.3.230.0130.05714.52
5.3.220.0070.03314.64
5.3.210.0130.07314.58
5.3.200.0030.08014.41
5.3.190.0000.07014.51
5.3.180.0130.06714.58
5.3.170.0000.06314.58
5.3.160.0100.05014.41
5.3.150.0030.08014.56
5.3.140.0030.06314.42
5.3.130.0000.04014.61
5.3.120.0070.03314.43
5.3.110.0000.04014.34
5.3.100.0000.07714.14
5.3.90.0000.03714.10
5.3.80.0030.03713.81
5.3.70.0100.06013.96
5.3.60.0030.03314.08
5.3.50.0130.06313.73
5.3.40.0070.07713.88
5.3.30.0070.06313.77
5.3.20.0070.06313.61
5.3.10.0070.06713.76
5.3.00.0070.05013.57
5.2.170.0170.05012.33
5.2.160.0070.02312.33
5.2.150.0030.06012.33
5.2.140.0030.06712.33
5.2.130.0070.06012.33
5.2.120.0030.03012.33
5.2.110.0070.06012.33
5.2.100.0000.03012.33
5.2.90.0100.04712.33
5.2.80.0130.05712.33
5.2.70.0030.05312.33
5.2.60.0000.05712.33
5.2.50.0030.05712.33
5.2.40.0030.02712.33
5.2.30.0030.03012.33
5.2.20.0070.05712.33
5.2.10.0100.05312.33
5.2.00.0100.05712.33
5.1.60.0030.03712.33
5.1.50.0070.05312.33
5.1.40.0000.02712.33
5.1.30.0070.04012.33
5.1.20.0030.03712.33
5.1.10.0000.04712.33
5.1.00.0070.05012.33
5.0.50.0030.03312.33
5.0.40.0000.03712.33
5.0.30.0030.04312.33
5.0.20.0100.03712.33
5.0.10.0030.04312.33
5.0.00.0030.07012.33
4.4.90.0000.02012.33
4.4.80.0000.03012.33
4.4.70.0000.02312.33
4.4.60.0000.02712.33
4.4.50.0000.02712.33
4.4.40.0030.04712.33
4.4.30.0000.03312.33
4.4.20.0070.03312.33
4.4.10.0000.03712.33
4.4.00.0000.03312.33
4.3.110.0030.03012.33
4.3.100.0000.03312.33
4.3.90.0030.03312.33
4.3.80.0030.04312.33
4.3.70.0000.02012.33
4.3.60.0030.03312.33
4.3.50.0070.02712.33
4.3.40.0030.04012.33
4.3.30.0070.02712.33
4.3.20.0000.04012.33
4.3.10.0070.02012.33
4.3.00.0000.01712.33