3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=5;/* this multiline comment */ $y=10; //this is global echo $y; echo '<br>'; function add(){ static $z=20; echo $z; $z++; } add(); add(); add();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9rtqS
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 5
    3     1        ASSIGN                                                   !1, 10
    4     2        ECHO                                                     !1
    5     3        ECHO                                                     '%3Cbr%3E'
   11     4        INIT_FCALL                                               'add'
          5        DO_FCALL                                      0          
   12     6        INIT_FCALL                                               'add'
          7        DO_FCALL                                      0          
   13     8        INIT_FCALL                                               'add'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function add:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9rtqS
function name:  add
number of ops:  4
compiled vars:  !0 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   BIND_STATIC                                              !0
    8     1        ECHO                                                     !0
    9     2        PRE_INC                                                  !0
   10     3      > RETURN                                                   null

End of function add

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.49 ms | 1397 KiB | 16 Q