3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newNumber = preg_replace("/^0/", "+", 07512345678); echo $newNumber; ?>
Output for 7.0.0 - 7.0.2
Parse error: Invalid numeric literal in /in/sn51c on line 2
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
128268663

preferences:
173.37 ms | 1395 KiB | 37 Q