3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 7; $res = 1+ ($x - ($x % 8))/8; echo $res;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h1ghO
function name:  (null)
number of ops:  8
compiled vars:  !0 = $x, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 7
    3     1        MOD                                              ~3      !0, 8
          2        SUB                                              ~4      !0, ~3
          3        DIV                                              ~5      ~4, 8
          4        ADD                                              ~6      1, ~5
          5        ASSIGN                                                   !1, ~6
    4     6        ECHO                                                     !1
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.03 ms | 1392 KiB | 13 Q