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', ]; var_export( (int) max( preg_filter( '/^wind_(\d+)$/', '$1', array_keys($_POST) ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T1hgM
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $0      '_POST'
          1        ASSIGN                                                   $0, <array>
   12     2        INIT_FCALL                                               'var_export'
   13     3        INIT_FCALL                                               'max'
   14     4        INIT_FCALL                                               'preg_filter'
   15     5        SEND_VAL                                                 '%2F%5Ewind_%28%5Cd%2B%29%24%2F'
   16     6        SEND_VAL                                                 '%241'
   17     7        INIT_FCALL                                               'array_keys'
          8        FETCH_R                      global              ~2      '_POST'
          9        SEND_VAL                                                 ~2
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
   14    12        DO_ICALL                                         $4      
   17    13        SEND_VAR                                                 $4
   13    14        DO_ICALL                                         $5      
   17    15        CAST                                          4  ~6      $5
         16        SEND_VAL                                                 ~6
   12    17        DO_ICALL                                                 
   20    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.25 ms | 1007 KiB | 17 Q