3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $shop = array( array( Title => "rose", Price => 1.25, Number => 15 ), array( Title => "daisy", Price => 0.75, Number => 25, ), array( Title => "orchid", Price => 1.15, Number => 7 ) ); print_r($shop); $shops = array( array("rose", 1.25 , 15), array("daisy", 0.75 , 25), array("orchid", 1.15 , 7) ); print_r($shops);
based on qnE75
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant Title - assumed 'Title' in /in/K0Npl on line 2 Notice: Use of undefined constant Price - assumed 'Price' in /in/K0Npl on line 3 Notice: Use of undefined constant Number - assumed 'Number' in /in/K0Npl on line 4 Notice: Use of undefined constant Title - assumed 'Title' in /in/K0Npl on line 6 Notice: Use of undefined constant Price - assumed 'Price' in /in/K0Npl on line 7 Notice: Use of undefined constant Number - assumed 'Number' in /in/K0Npl on line 8 Notice: Use of undefined constant Title - assumed 'Title' in /in/K0Npl on line 10 Notice: Use of undefined constant Price - assumed 'Price' in /in/K0Npl on line 11 Notice: Use of undefined constant Number - assumed 'Number' in /in/K0Npl on line 12 Array ( [0] => Array ( [Title] => rose [Price] => 1.25 [Number] => 15 ) [1] => Array ( [Title] => daisy [Price] => 0.75 [Number] => 25 ) [2] => Array ( [Title] => orchid [Price] => 1.15 [Number] => 7 ) ) Array ( [0] => Array ( [0] => rose [1] => 1.25 [2] => 15 ) [1] => Array ( [0] => daisy [1] => 0.75 [2] => 25 ) [2] => Array ( [0] => orchid [1] => 1.15 [2] => 7 ) )
Output for hhvm-3.10.0

Process exited with code 153.