3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(~(E_STRICT|E_DEPRECATED)); class A { public function hi(self $a) { var_dump($a); } } $a = new A; $b = new stdClass; $a->hi($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YPYsM
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -10241
          2        DO_ICALL                                                 
   12     3        NEW                                              $3      'A'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
   13     6        NEW                                              $6      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $6
   15     9        INIT_METHOD_CALL                                         !0, 'hi'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Class A:
Function hi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YPYsM
function name:  hi
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    8     4      > RETURN                                                   null

End of function hi

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.48 ms | 1395 KiB | 17 Q