3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $a = [0, 1, '0', null, '', new \stdClass]; var_dump(array_filter($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CjD8A
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_ARRAY                                       ~1      0
          1        ADD_ARRAY_ELEMENT                                ~1      1
          2        ADD_ARRAY_ELEMENT                                ~1      '0'
          3        ADD_ARRAY_ELEMENT                                ~1      null
          4        ADD_ARRAY_ELEMENT                                ~1      ''
          5        NEW                                              $2      'stdClass'
          6        DO_FCALL                                      0          
          7        ADD_ARRAY_ELEMENT                                ~1      $2
          8        ASSIGN                                                   !0, ~1
    7     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'array_filter'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.11 ms | 1394 KiB | 17 Q