3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 5; $y = 10; function myTest() { $y = $x + $y; } myTest(); // run function echo $y; // output the new value for variable $y ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dSdVe
function name:  (null)
number of ops:  6
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
   10     2        INIT_FCALL                                               'mytest'
          3        DO_FCALL                                      0          
   11     4        ECHO                                                     !1
   12     5      > RETURN                                                   1

Function mytest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dSdVe
function name:  myTest
number of ops:  3
compiled vars:  !0 = $y, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ADD                                              ~2      !1, !0
          1        ASSIGN                                                   !0, ~2
    8     2      > RETURN                                                   null

End of function mytest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.67 ms | 1396 KiB | 14 Q