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);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/9iT9l
function name:  (null)
number of ops:  21
compiled vars:  !0 = $alldata, !1 = $testing, !2 = $all, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~4      'Waxing'
    4     1        INIT_ARRAY                                       ~5      <array>, ~4
   17     2        FETCH_CONSTANT                                   ~6      'Massage'
    4     3        ADD_ARRAY_ELEMENT                                ~5      <array>, ~6
    2     4        ASSIGN                                                   !0, ~5
   32     5        ASSIGN                                                   !1, <array>
   33     6      > FE_RESET_R                                       $9      !0, ->16
          7    > > FE_FETCH_R                                       ~10     $9, !2, ->16
          8    >   ASSIGN                                                   !3, ~10
   34     9        INIT_FCALL                                               'array_push'
         10        SEND_REF                                                 !1
         11        INIT_ARRAY                                       ~12     !3, 'categoryname'
         12        ADD_ARRAY_ELEMENT                                ~12     !2, 'services'
         13        SEND_VAL                                                 ~12
         14        DO_ICALL                                                 
   33    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $9
   36    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.32 ms | 1000 KiB | 15 Q