3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(){ echo 'Bar called'; } public static function __callStatic($a, $b) { echo 'CS: '.$a; } } Foo::bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f4Qgq
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  'Foo', 'bar'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f4Qgq
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'Bar+called'
    7     1      > RETURN                                                   null

End of function bar

Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f4Qgq
function name:  __callStatic
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        CONCAT                                           ~2      'CS%3A+', !0
          3        ECHO                                                     ~2
   11     4      > RETURN                                                   null

End of function __callstatic

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
315.97 ms | 1393 KiB | 14 Q