3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($tring, $string2){ return $tring . $string2; } $obj = new stdClass(); $obj->bean = array(); $das = array('function' => 'teste'); $obj->bean = $das; var_dump($obj); echo $obj->bean->das['function']("Lucas","Oliveira");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1icha
function name:  (null)
number of ops:  20
compiled vars:  !0 = $obj, !1 = $das
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    9     3        ASSIGN_OBJ                                               !0, 'bean'
          4        OP_DATA                                                  <array>
   11     5        ASSIGN                                                   !1, <array>
   13     6        ASSIGN_OBJ                                               !0, 'bean'
          7        OP_DATA                                                  !1
   15     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   17    11        FETCH_OBJ_R                                      ~9      !0, 'bean'
         12        FETCH_OBJ_R                                      ~10     ~9, 'das'
         13        FETCH_DIM_R                                      ~11     ~10, 'function'
         14        INIT_DYNAMIC_CALL                                        ~11
         15        SEND_VAL_EX                                              'Lucas'
         16        SEND_VAL_EX                                              'Oliveira'
         17        DO_FCALL                                      0  $12     
         18        ECHO                                                     $12
         19      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1icha
function name:  test
number of ops:  5
compiled vars:  !0 = $tring, !1 = $string2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        CONCAT                                           ~2      !0, !1
          3      > RETURN                                                   ~2
    5     4*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.29 ms | 1395 KiB | 15 Q