3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.81 ms | 1395 KiB | 17 Q