3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[1][2][3] = text; $a[1][2][4] = text; print_r($a);
Output for 7.2.0
Warning: Use of undefined constant text - assumed 'text' (this will throw an Error in a future version of PHP) in /in/NCmGs on line 3 Warning: Use of undefined constant text - assumed 'text' (this will throw an Error in a future version of PHP) in /in/NCmGs on line 4 Array ( [1] => Array ( [2] => Array ( [3] => text [4] => text ) ) )
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant text - assumed 'text' in /in/NCmGs on line 3 Notice: Use of undefined constant text - assumed 'text' in /in/NCmGs on line 4 Array ( [1] => Array ( [2] => Array ( [3] => text [4] => text ) ) )