3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $temp_arr1 = explode(".","asddasaadsadsdas.asddasadsads.ads.jpg"); $ext = end($yourArray); echo $ext; ?>
Output for 5.3.0 - 7.1.0
Warning: end() expects parameter 1 to be array, null given in /in/4b7uS on line 4
Output for 4.3.2 - 5.2.17
Warning: end(): Passed variable is not an array or object in /in/4b7uS on line 4
Output for 4.3.0 - 4.3.1
Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/4b7uS on line 4