3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.19 ms | 2044 KiB | 14 Q