3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $x=5; $z=15; $y=10; function practiceTest() { global $x,$y,$z; $y=$x*$y*$z; } practiceTest(); // run function echo $y; // output the new value for variable $y ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O2l40
function name:  (null)
number of ops:  9
compiled vars:  !0 = $x, !1 = $z, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Cbody%3E%0A%0A'
    6     1        ASSIGN                                                   !0, 5
    7     2        ASSIGN                                                   !1, 15
    8     3        ASSIGN                                                   !2, 10
   15     4        INIT_FCALL                                               'practicetest'
          5        DO_FCALL                                      0          
   16     6        ECHO                                                     !2
   18     7        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   20     8      > RETURN                                                   1

Function practicetest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O2l40
function name:  practiceTest
number of ops:  7
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   BIND_GLOBAL                                              !0, 'x'
          1        BIND_GLOBAL                                              !1, 'y'
          2        BIND_GLOBAL                                              !2, 'z'
   12     3        MUL                                              ~3      !0, !1
          4        MUL                                              ~4      !2, ~3
          5        ASSIGN                                                   !1, ~4
   13     6      > RETURN                                                   null

End of function practicetest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.56 ms | 1397 KiB | 14 Q