3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.6 ms | 1384 KiB | 13 Q