3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.64 ms | 1396 KiB | 13 Q