3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.59 ms | 1393 KiB | 13 Q