3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "https://www.facebook.com/OutfitFashionUK/photos/a.257299044407630.1073741836.245894895548045/715611908576339/?type=3&theater"; print explode($string, "/")[count(explode($string, "/")-1)];
based on 9ahFr
Output for 7.0.0 - 7.3.0rc4
Fatal error: Uncaught Error: Unsupported operand types in /in/mHCBS:5 Stack trace: #0 {main} thrown in /in/mHCBS on line 5
Process exited with code 255.
Output for 5.4.10 - 5.6.28
Fatal error: Unsupported operand types in /in/mHCBS on line 5
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/mHCBS on line 5
Process exited with code 255.