3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = [ 'wind_1' => 'hk', 'hamburger_66' => 'foo', 'wind_2' => 'pop', 'wind_25' => 'another', 'wind_13' => 'bar', 'pass_wind_99' => 'stank', ]; $n = null; foreach ($_POST as $k => $v) { if (sscanf($k, 'wind_%d', $windInt) && $windInt > $n) { $n = $windInt; } } var_export($n);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 18
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 18
Branch analysis from position: 6
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 17
Branch analysis from position: 15
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/TgoPe
function name:  (null)
number of ops:  23
compiled vars:  !0 = $n, !1 = $v, !2 = $k, !3 = $windInt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $4      '_POST'
          1        ASSIGN                                                   $4, <array>
   12     2        ASSIGN                                                   !0, null
   13     3        FETCH_R                      global              ~7      '_POST'
          4      > FE_RESET_R                                       $8      ~7, ->18
          5    > > FE_FETCH_R                                       ~9      $8, !1, ->18
          6    >   ASSIGN                                                   !2, ~9
   14     7        INIT_FCALL                                               'sscanf'
          8        SEND_VAR                                                 !2
          9        SEND_VAL                                                 'wind_%25d'
         10        SEND_REF                                                 !3
         11        DO_ICALL                                         $11     
         12      > JMPZ_EX                                          ~12     $11, ->15
         13    >   IS_SMALLER                                       ~13     !0, !3
         14        BOOL                                             ~12     ~13
         15    > > JMPZ                                                     ~12, ->17
   15    16    >   ASSIGN                                                   !0, !3
   13    17    > > JMP                                                      ->5
         18    >   FE_FREE                                                  $8
   18    19        INIT_FCALL                                               'var_export'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
232.38 ms | 1011 KiB | 15 Q