3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "someString"; echo ord('z'); function rot13($str) { for ($i = 0,$l = strlen($str);$i<$l;$i++) { $str[$i] = chr(((ord($str[$i])-84)%26)+97); } } echo rot13('z').php_rot13('z');
Output for 7.0.0 - 7.1.0
122 Fatal error: Uncaught Error: Call to undefined function php_rot13() in /in/Xs4mn:9 Stack trace: #0 {main} thrown in /in/Xs4mn on line 9
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
122 Fatal error: Call to undefined function php_rot13() in /in/Xs4mn on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
122 Fatal error: Call to undefined function: php_rot13() in /in/Xs4mn on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
122 Fatal error: Call to undefined function: php_rot13() in /in/Xs4mn on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
122 Fatal error: Call to undefined function: php_rot13() in /in/Xs4mn on line 9