3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tab = array(array(1, 2), array(1, -2), array(5, 3), array(5, -3)); var_dump(count($tab)); print_r($tab); $x = 0; unset($tab[$x]); print_r($tab);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(4) Array ( [0] => Array ( [0] => 1 [1] => 2 ) [1] => Array ( [0] => 1 [1] => -2 ) [2] => Array ( [0] => 5 [1] => 3 ) [3] => Array ( [0] => 5 [1] => -3 ) ) Array ( [1] => Array ( [0] => 1 [1] => -2 ) [2] => Array ( [0] => 5 [1] => 3 ) [3] => Array ( [0] => 5 [1] => -3 ) )