3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { public function __call($method, array $args) { echo "Called {$method} with args ", json_encode($args), "\n"; } } // postfix-increment-expression $i = 0; eval('(new Example)->$i++();');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/53akJ
function name:  (null)
number of ops:  3
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 0
   11     1        INCLUDE_OR_EVAL                                          '%28new+Example%29-%3E%24i%2B%2B%28%29%3B', EVAL
          2      > RETURN                                                   1

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

End of function __call

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.56 ms | 1395 KiB | 15 Q