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); $fromDate = date('F d', strtotime($sale_end)); echo sprintf('%d%% OFF Ends %d', $discount, $fromDate);
Output for 4.3.0 - 7.2.0
33% OFF Ends 0