3v4l.org

run code in 500+ PHP versions simultaneously
<?php class C { public function __clone() { echo "Cloning C\n"; } } $c = new C(); $m = "__clone"; $c->$m();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vi0mO
function name:  (null)
number of ops:  7
compiled vars:  !0 = $c, !1 = $m
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   NEW                                                  $2      'C'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    9     3        ASSIGN                                                       !1, '__clone'
   10     4        INIT_METHOD_CALL                                             !0, !1
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Class C:
Function __clone:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vi0mO
function name:  __clone
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                         'Cloning+C%0A'
    5     1      > RETURN                                                       null

End of function __clone

End of class C.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.57 ms | 2744 KiB | 13 Q