3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x="10"; function mytest(){ $t="20"; } mytest; echo$x=""; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3RSfP
function name:  (null)
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '10'
    6     1        FETCH_CONSTANT                                   ~2      'mytest'
          2        FREE                                                     ~2
    7     3        ASSIGN                                           ~3      !0, ''
          4        ECHO                                                     ~3
    8     5      > RETURN                                                   1

Function mytest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3RSfP
function name:  mytest
number of ops:  2
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '20'
    5     1      > RETURN                                                   null

End of function mytest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.06 ms | 1393 KiB | 13 Q