3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=5; 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/mr9IJ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x, !1 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 5
    3     1        INIT_FCALL                                               'round'
          2        DIV                                              ~3      !0, 2
          3        ADD                                              ~4      !1, ~3
          4        DIV                                              ~5      ~4, !0
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                         $6      
          7        MUL                                              ~7      !0, $6
          8        ECHO                                                     ~7
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.06 ms | 1398 KiB | 15 Q