3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('UTC'); $time=-62167046400; // 0000-01-03 0-01-1 var_dump(date('Y-m-d o-W-N', $time - 86400)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 2)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 3)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 4)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 5));

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.00.0270.00914.41
7.2.130.0200.00715.56
7.2.120.0930.00815.00
7.2.110.0830.00614.95
7.2.100.1580.01015.05
7.2.90.1780.00814.88
7.2.80.1470.00914.97
7.2.70.2130.00915.27
7.2.60.2590.00714.91
7.2.50.2600.01015.19
7.2.40.2830.00715.13
7.2.30.1350.00815.28
7.2.20.2490.00514.88
7.2.10.1770.00715.21
7.2.00.2360.00715.21
7.1.250.0170.00714.71
7.1.240.0780.01213.88
7.1.230.0830.00613.82
7.1.220.0360.00913.83
7.1.210.0540.00414.01
7.1.200.0820.00513.87
7.1.190.0610.01313.68
7.1.180.0800.01013.85
7.1.170.0560.01313.84
7.1.160.0980.00613.76
7.1.150.0940.00513.96
7.1.140.1060.00313.92
7.1.130.1250.01413.90
7.1.120.0820.01013.68
7.1.110.0700.00513.88
7.1.100.0760.00713.85
7.1.90.0590.00813.76
7.1.80.0560.01113.93
7.1.70.0510.00913.98
7.1.60.0380.00913.94
7.1.50.0460.00613.74
7.1.40.0560.01113.95
7.1.30.0480.01013.82
7.1.20.0450.01013.89
7.1.10.0580.01513.88
7.1.00.0500.00613.86
7.0.330.0200.00414.51
7.0.320.1500.00613.41
7.0.310.0910.00313.48
7.0.300.0950.00813.50
7.0.290.0820.00813.67
7.0.280.0530.01213.49
7.0.270.0910.01013.34
7.0.260.0720.01113.56
7.0.250.0740.00813.32
7.0.240.0720.00813.42
7.0.230.0530.01113.56
7.0.220.0620.00713.49
7.0.210.0470.01213.41
7.0.200.0480.00813.40
7.0.190.0480.00713.54
7.0.180.0560.00213.69
7.0.170.0580.00613.54
7.0.160.0530.00813.66
7.0.150.0490.00813.65
7.0.140.0430.00713.44
7.0.130.0490.00613.58
7.0.120.1830.00713.77
7.0.110.0380.00613.44
7.0.100.0390.01113.63
7.0.90.0420.00613.54
7.0.80.0430.00313.51
7.0.70.0350.00613.46
7.0.60.0450.00913.34
7.0.50.0410.00513.50
7.0.40.0360.00713.60
7.0.30.0460.00613.58
7.0.20.0410.00813.56
7.0.10.0490.00613.62
7.0.00.0360.01013.39
hhvm-3.22.00.1350.19090.56
hhvm-3.21.30.1050.20889.69
hhvm-3.21.00.1210.17489.85
hhvm-3.20.20.1020.20990.42
hhvm-3.19.20.1150.19989.71
hhvm-3.18.50.0990.18488.42
hhvm-3.18.40.1100.19188.28
hhvm-3.17.30.1050.16887.07
hhvm-3.15.40.1070.14585.03
hhvm-3.13.20.1090.18596.68
hhvm-3.12.140.1190.17895.54
hhvm-3.11.10.1080.18787.35
hhvm-3.10.10.1070.16384.23
5.6.380.0080.01014.06
5.6.370.0150.00714.39
5.6.360.0130.00714.40
5.6.350.0130.00614.35
5.6.340.0150.01014.41
5.6.330.0180.00314.13
5.6.320.0110.00714.19
5.6.310.0150.00514.24
5.6.300.0150.00514.09
5.6.290.0090.00914.19
5.6.280.0150.00514.18
5.6.270.0140.00714.14
5.6.260.0170.00214.27
5.6.250.0130.00514.12
5.6.240.0090.01014.12
5.6.230.0070.00914.01
5.6.220.0130.00714.23
5.6.210.0110.00814.14
5.6.200.0100.00914.17
5.6.190.0150.00514.26
5.6.180.0080.01114.34
5.6.170.0140.00814.25
5.6.160.0130.00714.16
5.6.150.0170.00514.21
5.6.140.0150.00614.15
5.6.130.0150.00414.11
5.6.120.0160.00314.31
5.6.110.0120.00914.12
5.6.100.0120.01014.25
5.6.90.0170.00414.34
5.6.80.0130.00814.10
5.6.70.0100.01214.10
5.6.60.0160.00714.02
5.6.50.0100.01114.06
5.6.40.0090.01214.10
5.6.30.0140.00714.12
5.6.20.0160.00514.13
5.6.10.0090.00913.88
5.6.00.0140.00514.19
5.5.380.0090.00510.97
5.5.370.0050.00910.95
5.5.360.0060.00810.89
5.5.350.0100.00410.97
5.5.340.0050.01110.96
5.5.330.0080.00710.91
5.5.320.0090.00610.96
5.5.310.0090.00610.93
5.5.300.0070.00711.14
5.5.290.0120.00611.04
5.5.280.0110.00510.86
5.5.270.0080.00610.89
5.5.260.0090.00810.97
5.5.250.0090.00810.94
5.5.240.0090.00711.00
5.5.230.0090.00710.93
5.5.220.0070.00710.97
5.5.210.0130.00310.92
5.5.200.0130.00310.70
5.5.190.0090.00610.97
5.5.180.0090.00511.00
5.5.170.0120.00914.00
5.5.160.0130.00210.99
5.5.150.0130.00311.01
5.5.140.0070.00810.83
5.5.130.0120.00211.01
5.5.120.0120.00310.96
5.5.110.0080.00710.94
5.5.100.0100.00811.11
5.5.90.0120.00511.02
5.5.80.0100.00311.04
5.5.70.0060.01010.98
5.5.60.0090.00710.93
5.5.50.0040.00910.92
5.5.40.0080.00611.02
5.5.30.0140.00010.88
5.5.20.0080.00510.91
5.5.10.0100.00510.75
5.5.00.0090.00410.93
5.4.450.0080.00610.96
5.4.440.0110.00410.99
5.4.430.0090.00411.02
5.4.420.0100.00610.99
5.4.410.0120.00311.07
5.4.400.0040.00810.86
5.4.390.0120.00310.90
5.4.380.0050.00810.82
5.4.370.0070.00710.90
5.4.360.0090.00610.91
5.4.350.0070.00710.96
5.4.340.0100.00610.87
5.4.330.0100.00410.88
5.4.320.0110.00511.02
5.4.310.0080.00810.71
5.4.300.0110.00310.93
5.4.290.0050.01011.11
5.4.280.0070.00710.87
5.4.270.0110.00411.03
5.4.260.0070.00710.79
5.4.250.0130.00410.88
5.4.240.0100.00510.71
5.4.230.0130.00110.84
5.4.220.0130.00310.81
5.4.210.0080.00610.90
5.4.200.0050.00810.79
5.4.190.0080.00610.79
5.4.180.0050.00810.82
5.4.170.0070.00611.06
5.4.160.0110.00110.78
5.4.150.0090.00210.85
5.4.140.0050.00910.87
5.4.130.0090.00310.98
5.4.120.0090.00310.71
5.4.110.0090.00310.91
5.4.100.0080.00510.95
5.4.90.0090.00310.90
5.4.80.0100.00410.85
5.4.70.0100.00310.88
5.4.60.0080.00311.03
5.4.50.0060.00510.80
5.4.40.0020.01010.97
5.4.30.0070.00510.93
5.4.20.0100.00210.97
5.4.10.0100.00210.99
5.4.00.0080.00410.94
5.3.290.0090.00610.67
5.3.280.0090.00510.63
5.3.270.0060.00510.63
5.3.260.0050.00710.63
5.3.250.0070.00210.63
5.3.240.0060.00610.63
5.3.230.0080.00310.63
5.3.220.0090.00410.63
5.3.210.0100.00110.63
5.3.200.0080.00310.63
5.3.190.0060.00410.63
5.3.180.0090.00210.63
5.3.170.0060.00710.63
5.3.160.0060.00610.63
5.3.150.0070.00410.63
5.3.140.0070.00310.63
5.3.130.0060.00510.63
5.3.120.0120.00010.63
5.3.110.0040.00710.63
5.3.100.0020.00910.63
5.3.90.0060.00410.63
5.3.80.0050.00710.63
5.3.70.0080.00310.63
5.3.60.0040.00610.63
5.3.50.0050.00710.63
5.3.40.0020.01110.63
5.3.30.0030.00710.63
5.3.20.0100.00310.63
5.3.10.0070.00510.63
5.3.00.0030.00710.63
5.2.170.0080.00410.63
5.2.160.0100.00210.63
5.2.150.0050.00810.63
5.2.140.0090.00410.63
5.2.130.0060.00510.63
5.2.120.0050.00710.63
5.2.110.0040.00810.63
5.2.100.0020.00910.63
5.2.90.0070.00510.63
5.2.80.0090.00210.63
5.2.70.0090.00210.63
5.2.60.0080.00410.63
5.2.50.0040.00710.63
5.2.40.0090.00310.63
5.2.30.0050.00710.63
5.2.20.0070.00310.63
5.2.10.0060.00510.63
5.2.00.0030.00610.63
5.1.60.0090.00210.63
5.1.50.0060.00310.63
5.1.40.0060.00410.63
5.1.30.0080.00210.63
5.1.20.0030.00710.63
5.1.10.0080.00210.63
5.1.00.0060.00610.63
5.0.50.0050.00310.63
5.0.40.0050.00410.63
5.0.30.0070.00110.63
5.0.20.0070.00110.63
5.0.10.0070.00110.63
5.0.00.0050.00310.63
4.4.90.0030.00510.63
4.4.80.0020.00610.63
4.4.70.0040.00410.63
4.4.60.0030.00410.63
4.4.50.0060.00210.63
4.4.40.0040.00310.63
4.4.30.0010.00510.63
4.4.20.0050.00210.63
4.4.10.0020.00510.63
4.4.00.0000.00610.63
4.3.110.0040.00410.63
4.3.100.0050.00110.63
4.3.90.0050.00310.63
4.3.80.0010.00510.63
4.3.70.0030.00310.63
4.3.60.0020.00510.63
4.3.50.0040.00410.63
4.3.40.0000.00710.63
4.3.30.0020.00410.63
4.3.20.0030.00210.63
4.3.10.0020.00310.63
4.3.00.0050.00110.63