3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Whatever { private $__blah = "foo"; public function wat() { $something = new $this->__blah(); var_dump($something); } } $instance = new Whatever(); $instance->wat();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nOMrS
function name:  (null)
number of ops:  6
compiled vars:  !0 = $instance
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'Whatever'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_METHOD_CALL                                         !0, 'wat'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Whatever:
Function wat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nOMrS
function name:  wat
number of ops:  9
compiled vars:  !0 = $something
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_OBJ_R                                      ~1      '__blah'
          1        FETCH_CLASS                                   0  $2      ~1
          2        NEW                                              $3      $2
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
    9     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   10     8      > RETURN                                                   null

End of function wat

End of class Whatever.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.14 ms | 1394 KiB | 15 Q