3v4l.org

run code in 500+ PHP versions simultaneously
<?php $falseArr = [ '', '0', 0, false, [], null ]; $trueArr = [ ' ', 'false', '123', 'abc', 1, true, ['val'], new stdClass, function(){} ]; $print = function ($arr) { foreach ($arr as $v) { var_dump($v==false); } }; $print($falseArr); echo "\n"; $print($trueArr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/juiSe
function name:  (null)
number of ops:  24
compiled vars:  !0 = $falseArr, !1 = $trueArr, !2 = $print
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   14     1        INIT_ARRAY                                           ~4      '+'
   15     2        ADD_ARRAY_ELEMENT                                    ~4      'false'
   16     3        ADD_ARRAY_ELEMENT                                    ~4      '123'
   17     4        ADD_ARRAY_ELEMENT                                    ~4      'abc'
   18     5        ADD_ARRAY_ELEMENT                                    ~4      1
   14     6        ADD_ARRAY_ELEMENT                                    ~4      <true>
          7        ADD_ARRAY_ELEMENT                                    ~4      <array>
   21     8        NEW                                                  $5      'stdClass'
          9        DO_FCALL                                          0          
         10        ADD_ARRAY_ELEMENT                                    ~4      $5
   22    11        DECLARE_LAMBDA_FUNCTION                              ~7      [0]
         12        ADD_ARRAY_ELEMENT                                    ~4      ~7
   13    13        ASSIGN                                                       !1, ~4
   24    14        DECLARE_LAMBDA_FUNCTION                              ~9      [1]
         15        ASSIGN                                                       !2, ~9
   30    16        INIT_DYNAMIC_CALL                                            !2
         17        SEND_VAR_EX                                                  !0
         18        DO_FCALL                                          0          
   31    19        ECHO                                                         '%0A'
   32    20        INIT_DYNAMIC_CALL                                            !2
         21        SEND_VAR_EX                                                  !1
         22        DO_FCALL                                          0          
         23      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/juiSe
function name:  {closure:/in/juiSe:22}
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   22     0  E > > RETURN                                                       null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 8
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/juiSe
function name:  {closure:/in/juiSe:24}
number of ops:  10
compiled vars:  !0 = $arr, !1 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   24     0  E >   RECV                                                 !0      
   25     1      > FE_RESET_R                                           $2      !0, ->8
          2    > > FE_FETCH_R                                                   $2, !1, ->8
   26     3    >   INIT_FCALL                                                   'var_dump'
          4        IS_EQUAL                                             ~3      !1, <false>
          5        SEND_VAL                                                     ~3
          6        DO_ICALL                                                     
   25     7      > JMP                                                          ->2
          8    >   FE_FREE                                                      $2
   28     9      > RETURN                                                       null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.14 ms | 2164 KiB | 14 Q