3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getstaticorders(){ $orders=array( array('id'=>1, 'Order_Status'=>'Complete', 'Amount'=>560), array('id'=>2, 'Order_Status'=>'Open', 'Amount'=>300), array('id'=>3, 'Order_Status'=>'Cancelled', 'Amount'=>175) ); return($orders); } $test_orders=getstaticorders(); print_r (test_orders); ?>
based on 8M0N0
Output for 7.2.0
Warning: Use of undefined constant test_orders - assumed 'test_orders' (this will throw an Error in a future version of PHP) in /in/0H0eU on line 19 test_orders
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant test_orders - assumed 'test_orders' in /in/0H0eU on line 19 test_orders