3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $age = array(); $age[$id]="35"; $age[$id]="37"; $age[$id]="43"; echo $age[$id];
based on eACGN
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: id in /in/1mIFN on line 4 Notice: Undefined variable: id in /in/1mIFN on line 5 Notice: Undefined variable: id in /in/1mIFN on line 6 Notice: Undefined variable: id in /in/1mIFN on line 8 43
Output for hhvm-3.10.0 - 3.12.0
43
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: id in /in/1mIFN on line 4 Notice: Undefined variable: id in /in/1mIFN on line 5 Notice: Undefined variable: id in /in/1mIFN on line 6 Notice: Undefined variable: id in /in/1mIFN on line 8 43