3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { list($run, $runStart, $runEnd) = explode(",",$period); echo "yes"; } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; }
Output for 7.0.0 - 7.2.6
Notice: Undefined variable: period in /in/fDnXm on line 3 Notice: Undefined offset: 1 in /in/fDnXm on line 3 Notice: Undefined offset: 2 in /in/fDnXm on line 3 yes
Output for 5.3.0 - 5.6.28
Notice: Undefined variable: period in /in/fDnXm on line 3 Notice: Undefined offset: 2 in /in/fDnXm on line 3 Notice: Undefined offset: 1 in /in/fDnXm on line 3 yes
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: period in /in/fDnXm on line 3 Notice: Undefined offset: 2 in /in/fDnXm on line 3 Notice: Undefined offset: 1 in /in/fDnXm on line 3 yes
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: period in /in/fDnXm on line 3 Notice: Undefined offset: 2 in /in/fDnXm on line 3 Notice: Undefined offset: 1 in /in/fDnXm on line 3 yes
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/fDnXm on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/fDnXm on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/fDnXm on line 2
Process exited with code 255.