3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $block = '25*'; $pos = strpos($block, '*'); if ($pos !== false) { $num = substr($block, 0, $pos); } $fullnum = str_pad($block,'0',3); echo $fullnum
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/UmsUE on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/UmsUE on line 9
Process exited with code 255.