3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "Example-001"; echo substr($str1, -3)++;
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
Fatal error: Can't use function return value in write context in /in/uNIFV on line 5
Process exited with code 255.

preferences:
180.44 ms | 1395 KiB | 61 Q