3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pizza = "кусок1"; $pieces = explode(";", $pizza); echo $pieces[0]; // кусок1 echo $pieces[1]; // кусок2
based on 5QOg1
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
кусок1 Notice: Undefined offset: 1 in /in/ESn9V on line 5
Output for hhvm-3.15.4
кусок1 Notice: Undefined index: 1 in /in/ESn9V on line 5