3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function __callStatic($name, $args) { $name(); } public function test($t = "bleh") { echo $t; } } foo::test("hei");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QnCsJ
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  'foo', 'test'
          1        SEND_VAL                                                 'hei'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Class foo:
Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QnCsJ
function name:  __callStatic
number of ops:  5
compiled vars:  !0 = $name, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        INIT_DYNAMIC_CALL                                        !0
          3        DO_FCALL                                      0          
    7     4      > RETURN                                                   null

End of function __callstatic

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QnCsJ
function name:  test
number of ops:  3
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV_INIT                                        !0      'bleh'
   10     1        ECHO                                                     !0
   11     2      > RETURN                                                   null

End of function test

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.75 ms | 1394 KiB | 13 Q