3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj="a"; /* Accepting NULL value */ function test(stdClass $obj) { echo $this->obj; } ; test(new stdclass); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mpZBc
function name:  (null)
number of ops:  7
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a'
    9     1        INIT_FCALL                                               'test'
          2        NEW                                              $2      'stdclass'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $2
          5        DO_FCALL                                      0          
   13     6      > RETURN                                                   1

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.62 ms | 1396 KiB | 14 Q