3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Lazy{ public function __call($method, $arguments){ $arguments = implode(', ', $arguments); echo 'Call to method '.$method.'() with arguments '.$arguments.' failed'; } } $lazy = new Lazy(); $lazy->a('foo', 'bar'); // Call to a() with arguments foo, bar failed
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/niYpZ
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/niYpZ
function name:  __call
number of ops:  13
compiled vars:  !0 = $method, !1 = $arguments
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                                         $2      
          6        ASSIGN                                                   !1, $2
    8     7        CONCAT                                           ~4      'Call+to+method+', !0
          8        CONCAT                                           ~5      ~4, '%28%29+with+arguments+'
          9        CONCAT                                           ~6      ~5, !1
         10        CONCAT                                           ~7      ~6, '+failed'
         11        ECHO                                                     ~7
    9    12      > RETURN                                                   null

End of function __call

End of class Lazy.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.32 ms | 1395 KiB | 15 Q