3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pos_faktura = "26769891/" . date('Y') . "/000"; $nova_faktura = substr($pos_faktura, 0, 14).sprintf("03d%", $id++); echo "$nova_faktura";
based on DAOu1
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: id in /in/gnAhD on line 5 26769891/2015/03d
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: id in /in/gnAhD on line 5 26769891/2015/03d