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 ) ); var_dump($shop); $shops = array( array("rose", 1.25 , 15), array("daisy", 0.75 , 25), array("orchid", 1.15 , 7) ); var_dump($shops);
based on K0Npl
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/2HQIT on line 2 Notice: Use of undefined constant Price - assumed 'Price' in /in/2HQIT on line 3 Notice: Use of undefined constant Number - assumed 'Number' in /in/2HQIT on line 4 Notice: Use of undefined constant Title - assumed 'Title' in /in/2HQIT on line 6 Notice: Use of undefined constant Price - assumed 'Price' in /in/2HQIT on line 7 Notice: Use of undefined constant Number - assumed 'Number' in /in/2HQIT on line 8 Notice: Use of undefined constant Title - assumed 'Title' in /in/2HQIT on line 10 Notice: Use of undefined constant Price - assumed 'Price' in /in/2HQIT on line 11 Notice: Use of undefined constant Number - assumed 'Number' in /in/2HQIT on line 12 array(3) { [0]=> array(3) { ["Title"]=> string(4) "rose" ["Price"]=> float(1.25) ["Number"]=> int(15) } [1]=> array(3) { ["Title"]=> string(5) "daisy" ["Price"]=> float(0.75) ["Number"]=> int(25) } [2]=> array(3) { ["Title"]=> string(6) "orchid" ["Price"]=> float(1.15) ["Number"]=> int(7) } } array(3) { [0]=> array(3) { [0]=> string(4) "rose" [1]=> float(1.25) [2]=> int(15) } [1]=> array(3) { [0]=> string(5) "daisy" [1]=> float(0.75) [2]=> int(25) } [2]=> array(3) { [0]=> string(6) "orchid" [1]=> float(1.15) [2]=> int(7) } }
Output for hhvm-3.10.0

Process exited with code 153.