3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array("owner_name"=>array("Andrew Alletson","Barry John Harkins"), "owner_email"=>array("andrew.alletson@openreach.co.uk","barry.harkins@openreach.co.uk")); echo("Sending email to ".array1['owner_name']." on ".array1['owner_email']."\n"); ?>
Output for 7.2.6 - 7.3.0beta1
Warning: Use of undefined constant array1 - assumed 'array1' (this will throw an Error in a future version of PHP) in /in/VEDjA on line 4 Warning: Illegal string offset 'owner_name' in /in/VEDjA on line 4 Warning: Use of undefined constant array1 - assumed 'array1' (this will throw an Error in a future version of PHP) in /in/VEDjA on line 4 Warning: Illegal string offset 'owner_email' in /in/VEDjA on line 4 Sending email to a on a
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.20
Notice: Use of undefined constant array1 - assumed 'array1' in /in/VEDjA on line 4 Warning: Illegal string offset 'owner_name' in /in/VEDjA on line 4 Notice: Use of undefined constant array1 - assumed 'array1' in /in/VEDjA on line 4 Warning: Illegal string offset 'owner_email' in /in/VEDjA on line 4 Sending email to a on a
Output for hhvm-3.15.4
Notice: Use of undefined constant array1 - assumed 'array1' in /in/VEDjA on line 4 Notice: Use of undefined constant array1 - assumed 'array1' in /in/VEDjA on line 4 Sending email to a on a