3v4l.org

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

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.35 ms | 1401 KiB | 14 Q