3v4l.org

run code in 300+ PHP versions simultaneously
<pre><?php class A { function __call($f, $a) { echo "Called $f\n"; } } $a = new A(); $a->if(); $a->exit(); $a->throw();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HTnWN
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cpre%3E'
    8     1        NEW                                              $1      'A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   10     4        INIT_METHOD_CALL                                         !0, 'if'
          5        DO_FCALL                                      0          
   11     6        INIT_METHOD_CALL                                         !0, 'exit'
          7        DO_FCALL                                      0          
   12     8        INIT_METHOD_CALL                                         !0, 'throw'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class A:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HTnWN
function name:  __call
number of ops:  7
compiled vars:  !0 = $f, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ROPE_INIT                                     3  ~3      'Called+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_END                                      2  ~2      ~3, '%0A'
          5        ECHO                                                     ~2
    5     6      > RETURN                                                   null

End of function __call

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.78 ms | 1394 KiB | 13 Q