3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { function f() { echo "k"; } } $a = new X(); $a->f(); echo "x"; print("y"); put("z"); cout("w");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sfeuV
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'X'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_METHOD_CALL                                         !0, 'f'
          4        DO_FCALL                                      0          
   12     5        ECHO                                                     'x'
   13     6        ECHO                                                     'y'
   14     7        INIT_FCALL_BY_NAME                                       'put'
          8        SEND_VAL_EX                                              'z'
          9        DO_FCALL                                      0          
   15    10        INIT_FCALL_BY_NAME                                       'cout'
         11        SEND_VAL_EX                                              'w'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

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

End of function f

End of class X.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.66 ms | 1394 KiB | 13 Q