3v4l.org

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

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

End of function __call

End of class Lazy.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.91 ms | 1395 KiB | 15 Q