3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('crie','dont', 'stay', 'here', 'with', 'your', 'bomb'); var_dump(count($arr),$arr[0]); unset($arr[0]); var_dump(count($arr),$arr[0]);
based on VIPOr
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
int(7) string(4) "crie" Notice: Undefined offset: 0 in /in/P8f2D on line 7 int(6) NULL
Output for hhvm-3.10.0 - 3.12.0
int(7) string(4) "crie" Notice: Undefined index: 0 in /in/P8f2D on line 7 int(6) NULL
Output for 4.3.0 - 5.2.17
int(7) string(4) "crie" Notice: Undefined offset: 0 in /in/P8f2D on line 7 int(6) NULL