3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo join("", array_reverse(str_split('', "i'm a lasagna hog")));
based on eerCp
Output for 7.0.0 - 7.2.0
Warning: str_split() expects parameter 2 to be integer, string given in /in/pMfnK on line 3 Warning: array_reverse() expects parameter 1 to be array, null given in /in/pMfnK on line 3 Warning: join(): Invalid arguments passed in /in/pMfnK on line 3
Output for 5.3.21 - 5.6.28
Warning: str_split() expects parameter 2 to be long, string given in /in/pMfnK on line 3 Warning: array_reverse() expects parameter 1 to be array, null given in /in/pMfnK on line 3 Warning: join(): Invalid arguments passed in /in/pMfnK on line 3