3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = []; $var = ["",0,null,1,2,3,$foo,$o['myIndex']]; array_walk($var, function($v) { echo (!isset($v) || $v == false) ? 'true ' : 'false'; echo ' ' . (@empty($v) ? 'true' : 'false'); echo "\n"; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pFaPN
function name:  (null)
number of ops:  17
compiled vars:  !0 = $o, !1 = $var, !2 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_ARRAY                                       ~4      ''
          2        ADD_ARRAY_ELEMENT                                ~4      0
          3        ADD_ARRAY_ELEMENT                                ~4      null
          4        ADD_ARRAY_ELEMENT                                ~4      1
          5        ADD_ARRAY_ELEMENT                                ~4      2
          6        ADD_ARRAY_ELEMENT                                ~4      3
          7        ADD_ARRAY_ELEMENT                                ~4      !2
          8        FETCH_DIM_R                                      ~5      !0, 'myIndex'
          9        ADD_ARRAY_ELEMENT                                ~4      ~5
         10        ASSIGN                                                   !1, ~4
    5    11        INIT_FCALL                                               'array_walk'
         12        SEND_REF                                                 !1
         13        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FpFaPN%3A5%240'
    9    14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FpFaPN%3A5%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
Branch analysis from position: 17
Branch analysis from position: 6
filename:       /in/pFaPN
function name:  {closure}
number of ops:  22
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ISSET_ISEMPTY_CV                                 ~1      !0
          2        BOOL_NOT                                         ~2      ~1
          3      > JMPNZ_EX                                         ~2      ~2, ->6
          4    >   BOOL_NOT                                         ~3      !0
          5        BOOL                                             ~2      ~3
          6    > > JMPZ                                                     ~2, ->9
          7    >   QM_ASSIGN                                        ~4      'true+'
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~4      'false'
         10    >   ECHO                                                     ~4
    7    11        BEGIN_SILENCE                                    ~5      
         12        ISSET_ISEMPTY_CV                                 ~6      !0
         13        END_SILENCE                                              ~5
         14      > JMPZ                                                     ~6, ->17
         15    >   QM_ASSIGN                                        ~7      'true'
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~7      'false'
         18    >   CONCAT                                           ~8      '+', ~7
         19        ECHO                                                     ~8
    8    20        ECHO                                                     '%0A'
    9    21      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FpFaPN%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.7 ms | 1400 KiB | 15 Q