3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mission_type = 0; $start_dttm = ($mission_type == 0) ? strtotime("last Monday") : strtotime("last Friday"); // 리그 시작 일자 $end_dttm = ($mission_type == 0) ? strtotime("next Tuesday") : strtotime("next Thursday"); // 리그 종료 일자 // echo strtotime("last Monday"); // echo time(); // echo date('ymd', strtotime("this Tuesday")); // echo '<br>'; // echo date('ymd', strtotime("next Tuesday")); // echo '<br>'; // echo date('ymd', $start_dttm); // echo strtotime("this Tuesday"); // echo strtotime("next Tuesday"); $nextTuesday = strtotime('next tuesday'); $weekNo = date('W'); $weekNoNextTuesday = date('W', $nextTuesday); if ($weekNoNextTuesday != $weekNo) { //past tuesday echo 0; } else { echo 1; }
based on hohfh

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.0070.00716.86
7.3.00.0100.00716.82
7.2.130.0030.01116.98
7.2.120.0000.01416.79
7.2.110.0200.00916.76
7.2.100.0060.00916.78
7.2.90.0030.01317.21
7.2.80.0040.00717.25
7.2.70.0070.01017.20
7.2.60.0080.00717.22
7.2.50.0070.00417.03
7.2.40.0100.00316.96
7.2.30.0080.00817.27
7.2.20.0090.00917.20
7.2.10.0070.01017.14
7.2.00.0100.00518.12
7.1.250.0040.01215.84
7.1.200.0090.00015.97
7.1.100.0060.00618.36
7.1.70.0000.00717.38
7.1.60.0530.01033.22
7.1.50.1130.01033.11
7.1.40.0330.01332.79
7.1.30.0400.01032.93
7.1.20.0430.01033.02
7.1.10.0230.01015.18
7.1.00.0300.00315.07
7.0.200.0270.00715.14
7.0.190.0230.00714.70
7.0.180.0230.00714.57
7.0.170.0230.01014.39
7.0.160.0370.01014.54
7.0.150.0300.00714.77
7.0.140.0270.00714.63
7.0.130.0330.00714.84
7.0.120.0300.00314.77
7.0.110.0300.00314.70
7.0.100.0430.00714.72
7.0.90.0270.00714.70
7.0.80.0230.01014.75
7.0.70.0270.01014.59
7.0.60.0270.00714.27
7.0.50.0300.00314.40
7.0.40.0230.01014.70
7.0.30.0270.01314.71
7.0.20.0230.01014.92
7.0.10.0270.00714.88
7.0.00.0300.00314.73
hhvm-3.15.40.0570.15785.04
5.6.300.0100.07720.76
5.6.290.0130.05320.71
5.6.280.0100.06020.98
5.6.270.0030.06320.85
5.6.260.0100.05720.85
5.6.250.0170.05321.02
5.6.240.0170.05320.76
5.6.230.0270.04320.72
5.6.220.0170.05320.69
5.6.210.0070.06020.57
5.6.200.0200.05320.82
5.6.190.0230.04720.71
5.6.180.0130.05720.82
5.6.170.0100.05720.86
5.6.160.0100.05720.90
5.6.150.0130.05320.79
5.6.140.0170.05020.86
5.6.130.0070.05720.70
5.6.120.0070.06020.90
5.6.110.0200.04720.74
5.6.100.0100.06020.88
5.6.90.0170.05020.73
5.6.80.0130.05320.10
5.6.70.0100.05320.04
5.6.60.0070.05720.13
5.6.50.0100.05320.18
5.6.40.0130.05320.05
5.6.30.0230.04720.07
5.6.20.0170.05320.07
5.6.10.0030.05720.07
5.6.00.0030.06020.24