3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['a','b',0,'c',1,2,'ee',3,4,5,'t','x','w']; $numbers = array_filter($array, 'is_numeric'); var_export($numbers); var_export(array_diff_key($array, $numbers));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XjO6f
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $numbers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'is_numeric'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        INIT_FCALL                                               'var_export'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_export'
         10        INIT_FCALL                                               'array_diff_key'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.52 ms | 999 KiB | 16 Q