3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.84 ms | 1394 KiB | 17 Q