3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __call( $name, array $arguments = array() ) { echo 'Method: ' . $name . ' with arguments: ' . implode( ', ', $arguments ) . ' was called!'; } } $A = new A(); $A->setMainBranch();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zl9Ta
function name:  (null)
number of ops:  6
compiled vars:  !0 = $A
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'setMainBranch'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class A:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zl9Ta
function name:  __call
number of ops:  12
compiled vars:  !0 = $name, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
    8     2        CONCAT                                           ~2      'Method%3A+', !0
          3        CONCAT                                           ~3      ~2, '+with+arguments%3A+'
          4        INIT_FCALL                                               'implode'
          5        SEND_VAL                                                 '%2C+'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        CONCAT                                           ~5      ~3, $4
          9        CONCAT                                           ~6      ~5, '+was+called%21'
         10        ECHO                                                     ~6
    9    11      > RETURN                                                   null

End of function __call

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.66 ms | 1386 KiB | 15 Q