3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class a { function a() { echo "CONSTRUCTOR CALLED\r\n"; } function b($var) { return $var . 'x'; } function c() { echo self::b('aaa'); } } a::c();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1aYQ3
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   19     3        INIT_STATIC_METHOD_CALL                                  'a', 'c'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class a:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1aYQ3
function name:  a
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'CONSTRUCTOR+CALLED%0D%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/1aYQ3
function name:  b
number of ops:  4
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        CONCAT                                           ~1      !0, 'x'
          2      > RETURN                                                   ~1
   12     3*     > RETURN                                                   null

End of function b

Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1aYQ3
function name:  c
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'b'
          1        SEND_VAL                                                 'aaa'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   16     4      > RETURN                                                   null

End of function c

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.89 ms | 1395 KiB | 15 Q