3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.24 ms | 1385 KiB | 15 Q