3v4l.org

run code in 300+ PHP versions simultaneously
<?php $w = 4000; $h = 3000; $width = 1500; echo ($w/$h)*$width;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IPH1X
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      !0, !1
          4        MUL                                              ~7      !2, ~6
          5        ECHO                                                     ~7
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.66 ms | 1392 KiB | 13 Q