3v4l.org

run code in 300+ PHP versions simultaneously
<?php $new_width = 300; if(($cropX = $new_width / 2.5) + 300 > $new_width) { $new_width = $new_width / 2.5 + 300; $cropX = 0; } echo $new_width;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/jHUhP
function name:  (null)
number of ops:  12
compiled vars:  !0 = $new_width, !1 = $cropX
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 300
    3     1        DIV                                              ~3      !0, 2.5
          2        ASSIGN                                           ~4      !1, ~3
          3        ADD                                              ~5      ~4, 300
          4        IS_SMALLER                                               !0, ~5
          5      > JMPZ                                                     ~6, ->10
    4     6    >   DIV                                              ~7      !0, 2.5
          7        ADD                                              ~8      ~7, 300
          8        ASSIGN                                                   !0, ~8
    5     9        ASSIGN                                                   !1, 0
    7    10    >   ECHO                                                     !0
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.78 ms | 1393 KiB | 13 Q