3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = sscanf('1234-11-33', '%d-%d', $year, $month, $day); var_dump($year, $month, $count);
Output for 5.2.3 - 7.1.0
Warning: sscanf(): Variable is not assigned by any conversion specifiers in /in/Q27IJ on line 2 NULL NULL int(-1)
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: sscanf() [<a href='function.sscanf'>function.sscanf</a>]: Variable is not assigned by any conversion specifiers in <b>/in/Q27IJ</b> on line <b>2</b><br /> NULL NULL int(-1)
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: sscanf(): Variable is not assigned by any conversion specifiers in <b>/in/Q27IJ</b> on line <b>2</b><br /> NULL NULL int(-1)
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: sscanf() [<a href='http://www.php.net/function.sscanf'>function.sscanf</a>]: Variable is not assigned by any conversion specifiers in <b>/in/Q27IJ</b> on line <b>2</b><br /> NULL NULL int(-1)