3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['subcat_id'] = 'a15,15,16'; $subcatArray = explode(',', $_GET['subcat_id']); $subcatArrayNumeric = array_filter($subcatArray, 'is_numeric'); print_r($subcatArrayNumeric);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hWSOj
function name:  (null)
number of ops:  19
compiled vars:  !0 = $subcatArray, !1 = $subcatArrayNumeric
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $2      '_GET'
          1        ASSIGN_DIM                                               $2, 'subcat_id'
          2        OP_DATA                                                  'a15%2C15%2C16'
    5     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%2C'
          5        FETCH_R                      global              ~4      '_GET'
          6        FETCH_DIM_R                                      ~5      ~4, 'subcat_id'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !0, $6
    6    10        INIT_FCALL                                               'array_filter'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 'is_numeric'
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !1, $8
    8    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.83 ms | 1011 KiB | 16 Q