3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $factura_anterior = 201600001; $prefijo_factura = date("Y"); $pos = strpos($factura_anterior, 6); echo $pos." "; $factura = substr($factura_anterior, $pos); echo $factura;
based on 3lYH2
Output for 7.3.0beta1 - 7.3.0rc4
Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /in/U3qpc on line 5 201600001
Output for 5.6.0 - 7.3.0alpha1
201600001