3v4l.org

run code in 300+ PHP versions simultaneously
<?php $basePremium='Refer'; // update the end time of the discount period below when going live if (mktime() < 1453726799000 ) { // discount by 8.5% for the 2 months after going live, 1453726799000 = 25/01/2016 23:59:59 AEST $basePremium=round($basePremium * 0.915); echo $basePremium + "<br><br>"; echo $basePremium * 0.915 + "<br><br>"; } if ($basePremium == 'Refer') { echo "wtf"; } else { echo "..."; } ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught ArgumentCountError: mktime() expects at least 1 argument, 0 given in /in/6pRtI:4 Stack trace: #0 /in/6pRtI(4): mktime() #1 {main} thrown in /in/6pRtI on line 4
Process exited with code 255.
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Deprecated: mktime(): You should be using the time() function instead in /in/6pRtI on line 4 Warning: A non-numeric value encountered in /in/6pRtI on line 5 Warning: A non-numeric value encountered in /in/6pRtI on line 6 0 Warning: A non-numeric value encountered in /in/6pRtI on line 7 0wtf
Output for 7.3.32 - 7.3.33
Warning: A non-numeric value encountered in /in/6pRtI on line 5 Warning: A non-numeric value encountered in /in/6pRtI on line 6 0 Warning: A non-numeric value encountered in /in/6pRtI on line 7 0wtf
Output for 7.0.0 - 7.0.20
Deprecated: mktime(): You should be using the time() function instead in /in/6pRtI on line 4 00wtf
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Strict Standards: mktime(): You should be using the time() function instead in /in/6pRtI on line 4 00wtf

preferences:
142.01 ms | 401 KiB | 180 Q