3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.36 ms | 1392 KiB | 13 Q