3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timeNextMonth = strtotime('next month',strtotime(date('m/01/y'))); $nbDaysToNextMonth = (($timeNextMonth - strtotime(date('Y-m-d'))) / 86400);, echo $timeNextMonth->format('d/m/Y');
Output for 5.3.0 - 5.3.22, 5.4.0 - 5.4.12
Parse error: syntax error, unexpected ',' in /in/o0USj on line 3
Process exited with code 255.

preferences:
167.68 ms | 1395 KiB | 43 Q