3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tasks = array(); $tasks['hello'][] = 42; $tasks['hello'][] = 23; var_dump($tasks); $tasks2['hello'][] = 42; $tasks2['hello'][] = 23; var_dump($tasks2);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(1) { ["hello"]=> array(2) { [0]=> int(42) [1]=> int(23) } } array(1) { ["hello"]=> array(2) { [0]=> int(42) [1]=> int(23) } }