3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 "..."; } ?>
based on 1FvRl
Output for 7.1.0 - 7.2.0
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.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.3.19 - 5.6.28
Strict Standards: mktime(): You should be using the time() function instead in /in/6pRtI on line 4 00wtf