3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestOb { public function has() { $str = var_export($this); print_R($str); } } $d = new TestOb(); $d->derp = "Test"; $d->has();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M7fh8
function name:  (null)
number of ops:  8
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'TestOb'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        ASSIGN_OBJ                                               !0, 'derp'
          4        OP_DATA                                                  'Test'
   11     5        INIT_METHOD_CALL                                         !0, 'has'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class TestOb:
Function has:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M7fh8
function name:  has
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_export'
          1        FETCH_THIS                                       ~1      
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    5     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    6     8      > RETURN                                                   null

End of function has

End of class TestOb.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.92 ms | 1395 KiB | 17 Q