3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (substr('Foo\\', -1) === '\\') { echo "Yes, really."; }

preferences:
23.83 ms | 404 KiB | 5 Q