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] = asc(((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 asc() in /in/mlKJE:6 Stack trace: #0 /in/mlKJE(9): rot13('z') #1 {main} thrown in /in/mlKJE on line 6
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.12.0
122 Fatal error: Call to undefined function asc() in /in/mlKJE on line 6
Process exited with code 255.
Output for hhvm-3.10.0
122 Fatal error: Call to undefined function asc() in /in/mlKJE on line -1
Process exited with code 255.
Output for 4.4.5 - 4.4.9
122 Fatal error: Call to undefined function: asc() in /in/mlKJE on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
122 Fatal error: Call to undefined function: asc() in /in/mlKJE on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
122 Fatal error: Call to undefined function: asc() in /in/mlKJE on line 6