3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $my_thing = "thisismy.image.jpg"; $last_dot = strrpos($my_thing, "."); $ext = substr($my_thing, $last_dot); echo split(".", $my_thing);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function split() in /in/80IvK:5 Stack trace: #0 {main} thrown in /in/80IvK on line 5
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Notice: Array to string conversion in /in/80IvK on line 5 Array
Output for 5.5.0 - 5.6.28
Deprecated: Function split() is deprecated in /in/80IvK on line 5 Notice: Array to string conversion in /in/80IvK on line 5 Array
Output for 4.3.0 - 5.4.45
Array