3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $titles = [ 10 => 'Mr', '20' => 'Mrs', ]; echo $titles[' 10'], "\n"; echo $titles[20], "\n";
based on k3Ct1
Output for 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.30 - 7.3.0alpha1
Notice: Undefined index: 10 in /in/OveYA on line 7 Mrs
Output for hhvm-3.22.0
Notice: Undefined index: 10 in /in/OveYA on line -1 Mrs