3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fn_simple_decode_str($str) { $decoded_str = ''; for ($i = 0; $i < fn_strlen($str); $i++) { $chr = ord($str[$i]); $decoded_str .= chr(--$chr); } return $decoded_str; } echo strrev(str_rot13('cuc.xfrqcyrU/utlG/ccn')), PHP_EOL; echo strrev(str_rot13('cuc.8sgh/ergeriabp_ynergvy/fnzrupf/ccn')), PHP_EOL; echo fn_simple_decode_str('npef`sfdifdl'), PHP_EOL;
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
app/Tygh/Helpdesk.php app/schemas/literal_converter/utf8.php Fatal error: Uncaught Error: Call to undefined function fn_strlen() in /in/DZnuJ:6 Stack trace: #0 /in/DZnuJ(16): fn_simple_decode_str('npef`sfdifdl') #1 {main} thrown in /in/DZnuJ on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
app/Tygh/Helpdesk.php app/schemas/literal_converter/utf8.php Fatal error: Call to undefined function fn_strlen() in /in/DZnuJ on line 6
Process exited with code 255.

preferences:
171.12 ms | 402 KiB | 197 Q