3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Myclass{ public function __call($name, $args){ echo "calling method '$name' ". implode(',', $args); } } $class = new Myclass; $class->hello("calling undefined method", "sasasa");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0PfQ4
function name:  (null)
number of ops:  8
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'Myclass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        INIT_METHOD_CALL                                         !0, 'hello'
          4        SEND_VAL_EX                                              'calling+undefined+method'
          5        SEND_VAL_EX                                              'sasasa'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Myclass:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0PfQ4
function name:  __call
number of ops:  12
compiled vars:  !0 = $name, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ROPE_INIT                                     3  ~3      'calling+method+%27'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_END                                      2  ~2      ~3, '%27+'
          5        INIT_FCALL                                               'implode'
          6        SEND_VAL                                                 '%2C'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      ~2, $5
         10        ECHO                                                     ~6
    5    11      > RETURN                                                   null

End of function __call

End of class Myclass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.27 ms | 1386 KiB | 15 Q