3v4l.org

run code in 300+ PHP versions simultaneously
Find the output for the following code <?php $x = 25; $y = 10; $z = $x + $y; echo $z; echo "<br />"; $z = $x / $y; echo $z; echo "<br />"; $z = $y * $y * $x; echo $z - 1250; echo "<br />"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oA1pn
function name:  (null)
number of ops:  18
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     'Find+the+output+for+the+following+code%0A'
    3     1        ASSIGN                                                   !0, 25
    4     2        ASSIGN                                                   !1, 10
    5     3        ADD                                              ~5      !0, !1
          4        ASSIGN                                                   !2, ~5
    6     5        ECHO                                                     !2
    7     6        ECHO                                                     '%3Cbr+%2F%3E'
    8     7        DIV                                              ~7      !0, !1
          8        ASSIGN                                                   !2, ~7
    9     9        ECHO                                                     !2
   10    10        ECHO                                                     '%3Cbr+%2F%3E'
   11    11        MUL                                              ~9      !1, !1
         12        MUL                                              ~10     !0, ~9
         13        ASSIGN                                                   !2, ~10
   12    14        SUB                                              ~12     !2, 1250
         15        ECHO                                                     ~12
   13    16        ECHO                                                     '%3Cbr+%2F%3E'
   14    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.15 ms | 1393 KiB | 13 Q