3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function aa() { print "ok\n"; } static function __callstatic($a, $b) { var_dump($a); } } foo::aa(); $b = 'AA'; foo::$b(); foo::__construct();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NlJCB
function name:  (null)
number of ops:  8
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'foo', 'aa'
          1        DO_FCALL                                      0          
   13     2        ASSIGN                                                   !0, 'AA'
   14     3        INIT_STATIC_METHOD_CALL                                  'foo', !0
          4        DO_FCALL                                      0          
   16     5        INIT_STATIC_METHOD_CALL                                  'foo'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class foo:
Function aa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NlJCB
function name:  aa
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'ok%0A'
    5     1      > RETURN                                                   null

End of function aa

Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NlJCB
function name:  __callstatic
number of ops:  6
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    8     5      > RETURN                                                   null

End of function __callstatic

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.36 ms | 1395 KiB | 15 Q