3v4l.org

run code in 300+ PHP versions simultaneously
<?php $alldata = Array( Waxing =>array( "id"=> "119", "provider_id"=> "54", "provider_service_id"=> "0", "category_id"=> "15", "date"=> "09-06-2018", "time"=> "08.00 AM,10.00 AM,11.00 AM,12.00 PM,01.00 PM,02.00 PM,03.00 PM,04.00 PM,05.00 PM,06.00 PM,07.00 PM", "repeat"=> "D", "deleted_at"=> null, "created_at"=> "2018-06-09 05=>22=>47", "updated_at"=> "2018-06-09 14=>22=>04", "setdate"=> "09 Jun", "name"=> "Waxing" ), Massage => array( "id"=> "145", "provider_id"=> "54", "provider_service_id"=> "0", "category_id"=> "4", "date"=> "14-06-2018", "time"=> "08.00 AM,09.00 AM,10.00 AM,11.00 AM,12.00 PM,01.00 PM,02.00 PM,03.00 PM,04.00 PM,05.00 PM,06.00 PM,07.00 PM", "repeat"=> "O", "deleted_at"=> null, "created_at"=> "2018-06-13 14=>24=>15", "updated_at"=> "2018-06-13 14=>24=>15", "setdate"=> "14 Jun", "name"=> "Massage" ) ); $testing = []; foreach ($alldata as $key=>$all){ array_push($testing,["categoryname"=>$key,"services"=>$all]); } print_r($testing);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "Waxing" in /in/9iT9l:3 Stack trace: #0 {main} thrown in /in/9iT9l on line 3
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
128 ms | 405 KiB | 5 Q