3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'Ślub|dekoracje ślubne, dekoracje kościoła'; $explode = explode('|', $str, 2); if ($explode.lenght <= 1) { print_r('dupa'); } else { print_r($explode); } ?>
based on phFuU
Output for 7.2.0
Warning: Use of undefined constant lenght - assumed 'lenght' (this will throw an Error in a future version of PHP) in /in/ZQ4ch on line 4 Notice: Array to string conversion in /in/ZQ4ch on line 4 dupa
Output for 5.4.9 - 7.1.10
Notice: Use of undefined constant lenght - assumed 'lenght' in /in/ZQ4ch on line 4 Notice: Array to string conversion in /in/ZQ4ch on line 4 dupa
Output for 5.3.19 - 5.3.29
Notice: Use of undefined constant lenght - assumed 'lenght' in /in/ZQ4ch on line 4 dupa