3v4l.org

run code in 500+ PHP versions simultaneously
<?php // http://php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.methods class Foo { public function __call($name, $arguments) { echo "Calling object method '$name' " . implode(', ', $arguments). "\n"; } public function bar(int $i) { echo "bar($i)\n"; } } $foo = new Foo(); $foo->bar(123); $foo->bar("abc");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MEqDv
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   NEW                                                  $1      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   16     3        INIT_METHOD_CALL                                             !0, 'bar'
          4        SEND_VAL_EX                                                  123
          5        DO_FCALL                                          0          
   17     6        INIT_METHOD_CALL                                             !0, 'bar'
          7        SEND_VAL_EX                                                  'abc'
          8        DO_FCALL                                          0          
          9      > RETURN                                                       1

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

End of function __call

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MEqDv
function name:  bar
number of ops:  6
compiled vars:  !0 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
   11     1        ROPE_INIT                                         3  ~2      'bar%28'
          2        ROPE_ADD                                          1  ~2      ~2, !0
          3        ROPE_END                                          2  ~1      ~2, '%29%0A'
          4        ECHO                                                         ~1
   12     5      > RETURN                                                       null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
148.35 ms | 2640 KiB | 13 Q