3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 0 => array() ); var_dump( count( array_filter( $a ) ) ); var_dump( count( array_filter( array_map( 'array_filter', $a ) ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cjWsf
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_filter'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        COUNT                                            ~3      $2
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'array_filter'
         10        INIT_FCALL                                               'array_map'
         11        SEND_VAL                                                 'array_filter'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                         $6      
         16        COUNT                                            ~7      $6
         17        SEND_VAL                                                 ~7
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.43 ms | 1394 KiB | 19 Q