3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.92 ms | 1392 KiB | 13 Q