3v4l.org

run code in 300+ PHP versions simultaneously
Find the output for the following code. <?php $x = 1; $x++; echo $x . " "; $y = 5; $y *= $x; echo $y . " "; $z = 180; $z /= --$y; echo $z; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nu10T
function name:  (null)
number of ops:  14
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, 1
    4     2        PRE_INC                                                  !0
    5     3        CONCAT                                           ~5      !0, '+'
          4        ECHO                                                     ~5
    6     5        ASSIGN                                                   !1, 5
    7     6        ASSIGN_OP                                     3          !1, !0
    8     7        CONCAT                                           ~8      !1, '+'
          8        ECHO                                                     ~8
    9     9        ASSIGN                                                   !2, 180
   10    10        PRE_DEC                                          ~10     !1
         11        ASSIGN_OP                                     4          !2, ~10
   11    12        ECHO                                                     !2
   12    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.67 ms | 1393 KiB | 13 Q