3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $person = array( 'name' => "Yolanda", 'age' => 31 ); echo "My name is {$person[name]} and I am {$person[age]}"; ?>
based on LOjDK
Output for 7.2.0
Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /in/L5Egd on line 6 Warning: Use of undefined constant age - assumed 'age' (this will throw an Error in a future version of PHP) in /in/L5Egd on line 6 My name is Yolanda and I am 31
Output for 5.3.18 - 7.1.10
Notice: Use of undefined constant name - assumed 'name' in /in/L5Egd on line 6 Notice: Use of undefined constant age - assumed 'age' in /in/L5Egd on line 6 My name is Yolanda and I am 31