3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "php test - [2013.1 - some string variable]"; list($wanted,$junk) = explode(" - ",$thatString); echo $wanted."!!";
Output for 5.3.0 - 7.1.0
Notice: Undefined variable: thatString in /in/UF3Gr on line 4 Notice: Undefined offset: 1 in /in/UF3Gr on line 4 !!
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: thatString in /in/UF3Gr on line 4 Notice: Undefined offset: 1 in /in/UF3Gr on line 4 !!
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: thatString in /in/UF3Gr on line 4 Notice: Undefined offset: 1 in /in/UF3Gr on line 4 !!