3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.98 ms | 1394 KiB | 15 Q