3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = (object) [ 'data' => array( "temp_service_id" => "3", "name"=> "health checkup", "price"=>"10000", "service_id"=> "41",) ]; $ar = array((object)[ "fees"=> "2000", "service_name"=> "Anaesthesiologist" ], (object)[ "fees"=> "300", "service_name"=> "Andrologist" ]); $obj->data['data2'] = $ar; print_r($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPVWA
function name:  (null)
number of ops:  14
compiled vars:  !0 = $obj, !1 = $ar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   CAST                                          8  ~2      <array>
    4     1        ASSIGN                                                   !0, ~2
   13     2        CAST                                          8  ~4      <array>
          3        INIT_ARRAY                                       ~5      ~4
   17     4        CAST                                          8  ~6      <array>
          5        ADD_ARRAY_ELEMENT                                ~5      ~6
   12     6        ASSIGN                                                   !1, ~5
   21     7        FETCH_OBJ_W                                      $8      !0, 'data'
          8        ASSIGN_DIM                                               $8, 'data2'
          9        OP_DATA                                                  !1
   23    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.58 ms | 1431 KiB | 14 Q