3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function a() { echo __METHOD__ . "\n"; } public static function b() { var_dump($this); echo __METHOD__ . "\n"; } } $a = new C(); $a::b();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r5KeI
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        FETCH_CLASS                                   0  $4      !0
          4        INIT_STATIC_METHOD_CALL                                  $4, 'b'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function a

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r5KeI
function name:  b
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_THIS                                       ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   13     4        ECHO                                                     'C%3A%3Ab%0A'
   14     5      > RETURN                                                   null

End of function b

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.19 ms | 1395 KiB | 15 Q