3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $discount = 33; $sale_end = '2014-01-30 00:00:00'; $sale_end = substr($sale_end, 0, 10); echo $sale_end; $sale_end = date('F j', $sale_end); echo sprintf('%d%% OFF Ends %d', $discount, $sale_end);
Output for 5.1.0 - 7.1.7
2014-01-30 Notice: A non well formed numeric value encountered in /in/ZHdX7 on line 6 33% OFF Ends 0
Output for 4.3.0 - 5.0.5
2014-01-3033% OFF Ends 0