3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo explode(-1, "-").len;
based on HJVHa
Output for 7.2.0
Warning: Use of undefined constant len - assumed 'len' (this will throw an Error in a future version of PHP) in /in/P49l0 on line 3 Notice: Array to string conversion in /in/P49l0 on line 3 Arraylen
Output for 5.4.11 - 7.1.10
Notice: Use of undefined constant len - assumed 'len' in /in/P49l0 on line 3 Notice: Array to string conversion in /in/P49l0 on line 3 Arraylen
Output for 5.3.21 - 5.3.29
Notice: Use of undefined constant len - assumed 'len' in /in/P49l0 on line 3 Arraylen