3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total_width = 1500; $resolutions = [100, 50, 10, 1000]; rsort($resolutions); if ($total_width > $resolutions[0]){ //true foreach($resolutions as $break_point){ if ($total_width <= $break_point){ echo "this will never happen"; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 13
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 15
filename:       /in/RkCGr
function name:  (null)
number of ops:  16
compiled vars:  !0 = $total_width, !1 = $resolutions, !2 = $break_point
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1500
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'rsort'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
    6     5        FETCH_DIM_R                                      ~6      !1, 0
          6        IS_SMALLER                                               ~6, !0
          7      > JMPZ                                                     ~7, ->15
    8     8    > > FE_RESET_R                                       $8      !1, ->14
          9    > > FE_FETCH_R                                               $8, !2, ->14
   10    10    >   IS_SMALLER_OR_EQUAL                                      !0, !2
         11      > JMPZ                                                     ~9, ->13
   11    12    >   ECHO                                                     'this+will+never+happen'
    8    13    > > JMP                                                      ->9
         14    >   FE_FREE                                                  $8
   14    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.47 ms | 1395 KiB | 15 Q