3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date('d/m/Y'); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W".date("W")."-1")); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W".date("W")."-5")); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W27-1")); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W27-5")); print "\n"; echo date('N', strtotime(date('Y')."-W27-".date('t'))); ?>

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.0030.00716.57
7.3.00.0060.00616.54
7.2.130.0030.01016.82
7.2.120.0030.00616.86
7.2.110.0080.00416.74
7.2.100.0030.00616.88
7.2.90.0110.00417.07
7.2.80.0060.00617.04
7.2.70.0030.01016.69
7.2.60.0060.00716.85
7.2.50.0120.00616.64
7.2.40.0110.00316.87
7.2.30.0060.00916.77
7.2.20.0070.00716.94
7.2.10.0100.00317.07
7.2.00.0070.00617.90
7.1.250.0070.00715.39
7.1.200.0040.00815.70
7.1.100.0000.00818.15
7.1.70.0000.00717.39
7.1.60.0070.01719.46
7.1.50.0060.00617.01
7.1.00.0030.07722.36
7.0.200.0000.00716.94
7.0.140.0070.06722.09
7.0.90.0030.05019.96
7.0.80.0000.05319.87
7.0.70.0200.04020.03
7.0.60.0230.04019.97
7.0.50.0170.07320.32
7.0.40.0070.04020.05
7.0.30.0070.04320.05
7.0.20.0030.05020.19
7.0.10.0070.04020.09
7.0.00.0000.07020.05
5.6.280.0070.07021.13
5.6.240.0000.04720.61
5.6.230.0100.04020.72
5.6.220.0030.04020.74
5.6.210.0070.06020.77
5.6.200.0100.05321.04
5.6.190.0100.03721.01
5.6.180.0070.04020.96
5.6.170.0100.04321.12
5.6.160.0070.07721.07
5.6.150.0100.05020.96
5.6.140.0070.04021.05
5.6.130.0100.07020.95
5.6.120.0200.07720.97
5.6.110.0070.08721.03
5.6.100.0130.08021.04
5.6.90.0100.05321.00
5.6.80.0070.04320.43
5.6.70.0170.07020.47
5.6.60.0100.04720.45
5.6.50.0130.07320.47
5.6.40.0170.07320.46
5.6.30.0070.07020.41
5.6.20.0070.08320.34
5.6.10.0070.07720.43
5.6.00.0070.05020.45
5.5.380.0030.04020.46
5.5.370.0000.04720.42
5.5.360.0200.04020.35
5.5.350.0030.04320.48
5.5.340.0000.04720.91
5.5.330.0000.05020.82
5.5.320.0030.04320.83
5.5.310.0030.04320.81
5.5.300.0030.05320.88
5.5.290.0070.03720.93
5.5.280.0100.08020.77
5.5.270.0030.07020.85
5.5.260.0170.06720.82
5.5.250.0100.04020.64
5.5.240.0100.07720.28
5.5.230.0030.05320.14
5.5.220.0100.07320.19
5.5.210.0000.09320.27
5.5.200.0130.07320.25
5.5.190.0070.08320.10
5.5.180.0200.06020.25
5.5.160.0100.07720.27
5.5.150.0070.07720.21
5.5.140.0100.04320.24
5.5.130.0070.08320.20
5.5.120.0070.04320.08
5.5.110.0100.07320.23
5.5.100.0200.06320.08
5.5.90.0130.05320.09
5.5.80.0070.07320.10
5.5.70.0000.04320.09
5.5.60.0130.07320.05
5.5.50.0130.04320.04
5.5.40.0070.04319.93
5.5.30.0130.07320.15
5.5.20.0170.07319.95
5.5.10.0100.08020.05
5.5.00.0100.07320.03
5.4.450.0030.08019.29
5.4.440.0170.07019.30
5.4.430.0130.04719.39
5.4.420.0030.07019.28
5.4.410.0100.07319.34
5.4.400.0030.06719.12
5.4.390.0100.07319.09
5.4.380.0070.03718.90
5.4.370.0100.03718.78
5.4.360.0070.08718.91
5.4.350.0070.07719.04
5.4.340.0070.05019.04
5.4.320.0100.05718.96
5.4.310.0070.07019.02
5.4.300.0030.07319.23
5.4.290.0030.08019.11
5.4.280.0100.07719.02
5.4.270.0100.06719.01
5.4.260.0130.06019.04
5.4.250.0070.05319.14
5.4.240.0100.05019.09
5.4.230.0100.06719.06
5.4.220.0200.06718.94
5.4.210.0100.06019.13
5.4.200.0100.04318.98
5.4.190.0000.07019.22
5.4.180.0030.05718.93
5.4.170.0070.07019.04
5.4.160.0130.05719.09
5.4.150.0030.04719.02
5.4.140.0070.03716.42
5.4.130.0130.05016.38
5.4.120.0030.03716.31
5.4.110.0030.05316.27
5.4.100.0070.07716.27
5.4.90.0130.06316.33
5.4.80.0070.07316.34
5.4.70.0100.06716.42
5.4.60.0130.06716.23
5.4.50.0070.07016.19
5.4.40.0000.05016.37
5.4.30.0100.06716.23
5.4.20.0100.03716.14
5.4.10.0030.03716.27
5.4.00.0070.04015.71
5.3.290.0070.07714.91
5.3.280.0170.07014.91
5.3.270.0200.07314.91
5.3.260.0000.08014.91
5.3.250.0070.04314.91
5.3.240.0100.07714.91
5.3.230.0100.07314.91
5.3.220.0000.05314.91
5.3.210.0130.07014.91
5.3.200.0070.07014.91
5.3.190.0030.07714.91
5.3.180.0000.07314.91
5.3.170.0070.07314.91
5.3.160.0100.06314.91
5.3.150.0030.06714.91
5.3.140.0070.04014.91
5.3.130.0100.07014.91
5.3.120.0070.07014.91
5.3.110.0100.07014.91
5.3.100.0070.06014.91
5.3.90.0100.06714.91
5.3.80.0070.06014.91
5.3.70.0130.05714.91
5.3.60.0070.06014.91
5.3.50.0130.06314.91
5.3.40.0070.07714.91
5.3.30.0100.06714.91
5.3.20.0030.07314.91
5.3.10.0000.07314.91
5.3.00.0100.03714.91
5.2.170.0030.05714.91
5.2.160.0030.04014.91
5.2.150.0070.06314.91
5.2.140.0070.04714.91
5.2.130.0030.05314.91
5.2.120.0030.06014.91
5.2.110.0100.06014.91
5.2.100.0030.06014.91
5.2.90.0070.04014.91
5.2.80.0100.06014.91
5.2.70.0030.06314.91
5.2.60.0070.06014.91
5.2.50.0030.05714.91
5.2.40.0130.05714.91
5.2.30.0070.05314.91
5.2.20.0200.02314.91
5.2.10.0000.03714.91
5.2.00.0030.05714.91
5.1.60.0070.02714.91
5.1.50.0030.03014.91
5.1.40.0070.04714.91
5.1.30.0070.03314.91
5.1.20.0100.05014.91
5.1.10.0000.05714.91
5.1.00.0000.06014.91
5.0.50.0070.04014.91
5.0.40.0000.04314.91
5.0.30.0000.05014.91
5.0.20.0070.04014.91
5.0.10.0030.04314.91
5.0.00.0000.05714.91
4.4.90.0030.02314.91
4.4.80.0000.02014.91
4.4.70.0000.03314.91
4.4.60.0030.03314.91
4.4.50.0000.02314.91
4.4.40.0030.04314.91
4.4.30.0030.03714.91
4.4.20.0070.02014.91
4.4.10.0070.02714.91
4.4.00.0070.05314.91
4.3.110.0000.03714.91
4.3.100.0000.03714.91
4.3.90.0100.02314.91
4.3.80.0030.04714.91
4.3.70.0030.02714.91
4.3.60.0000.02714.91
4.3.50.0030.01314.91
4.3.40.0030.02714.91
4.3.30.0000.03714.91
4.3.20.0000.03314.91
4.3.10.0030.02314.91
4.3.00.0000.02314.91