3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( array( array(1), array(), ), array(1), array(), array(2), ); $c = function($a) use (&$c) { if (is_array($a)) { $a = array_map($c, $a); $a = array_filter($a); } return $a; }; var_dump($c($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VlPCX
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FVlPCX%3A13%240'
          2        BIND_LEXICAL                                             ~3, !1
          3        ASSIGN                                                   !1, ~3
   21     4        INIT_FCALL                                               'var_dump'
          5        INIT_DYNAMIC_CALL                                        !1
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FVlPCX%3A13%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/VlPCX
function name:  {closure}
number of ops:  15
compiled vars:  !0 = $a, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
   14     2        TYPE_CHECK                                  128          !0
          3      > JMPZ                                                     ~2, ->13
   15     4    >   INIT_FCALL                                               'array_map'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
   16     9        INIT_FCALL                                               'array_filter'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !0, $5
   18    13    > > RETURN                                                   !0
   19    14*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FVlPCX%3A13%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1396 KiB | 19 Q