3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = ['row' => ['1', '20', '4', '10', '12']]; $rows = array_filter($_POST['row'], function($val){ return is_numeric($val) && $val>10; }); print_r($rows);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3PDtR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $rows
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $1      '_POST'
          1        ASSIGN                                                   $1, <array>
    4     2        INIT_FCALL                                               'array_filter'
          3        FETCH_R                      global              ~3      '_POST'
          4        FETCH_DIM_R                                      ~4      ~3, 'row'
          5        SEND_VAL                                                 ~4
          6        DECLARE_LAMBDA_FUNCTION                          ~5      [0]
    6     7        SEND_VAL                                                 ~5
    4     8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !0, $6
    7    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/3PDtR
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'is_numeric'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > JMPZ_EX                                          ~2      $1, ->7
          5    >   IS_SMALLER                                       ~3      10, !0
          6        BOOL                                             ~2      ~3
          7    > > RETURN                                                   ~2
    6     8*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.63 ms | 1007 KiB | 16 Q