3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = '.1'; $range='0'; $arr = [ '0', '20' => '0-20', '50' => '20-50', '100' => '50-100', '200' => '100-200', '500' => '200-500' ]; foreach($arr as $k=>$v){ if($k >= $search){ $range=$v; goto end; } }end: echo $range; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/CcIt2
function name:  (null)
number of ops:  15
compiled vars:  !0 = $search, !1 = $range, !2 = $arr, !3 = $v, !4 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '.1'
    4     1        ASSIGN                                                   !1, '0'
    6     2        ASSIGN                                                   !2, <array>
   15     3      > FE_RESET_R                                       $8      !2, ->12
          4    > > FE_FETCH_R                                       ~9      $8, !3, ->12
          5    >   ASSIGN                                                   !4, ~9
   16     6        IS_SMALLER_OR_EQUAL                                      !0, !4
          7      > JMPZ                                                     ~11, ->11
   17     8    >   ASSIGN                                                   !1, !3
   18     9        FE_FREE                                                  $8
         10      > JMP                                                      ->13
   15    11    > > JMP                                                      ->4
         12    >   FE_FREE                                                  $8
   22    13    >   ECHO                                                     !1
   24    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.38 ms | 1394 KiB | 13 Q