3v4l.org

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


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NUDl0
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 257
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
          6*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
232.43 ms | 1004 KiB | 16 Q