3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * the deref function */ function ​($mixed) { return $mixed; } class foo { function bar($subj) { var_dump($subj); } } ​($foo = new foo())->bar($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9qNVC
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               '%E2%80%8B'
          1        NEW                                              $1      'foo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                           ~3      !0, $1
          4        SEND_VAL                                                 ~3
          5        DO_FCALL                                      0  $4      
          6        INIT_METHOD_CALL                                         $4, 'bar'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function %E2%80%8B:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9qNVC
function name:  ​
number of ops:  3
compiled vars:  !0 = $mixed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1      > RETURN                                                   !0
    7     2*     > RETURN                                                   null

End of function %E2%80%8B

Class foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9qNVC
function name:  bar
number of ops:  5
compiled vars:  !0 = $subj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   12     4      > RETURN                                                   null

End of function bar

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.58 ms | 1398 KiB | 16 Q