3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("", 0, array(), "1", "0"); foreach ($a as $b) { $c = (bool)$b; echo "value = 1" . var_dump($b) . "2\n"; echo " result = 3" . var_dump($c) . "4\n"; echo "5\n\n6"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 19
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/XKEGG
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $4      !0, ->19
          2    > > FE_FETCH_R                                               $4, !1, ->19
    4     3    >   BOOL                                             ~5      !1
          4        ASSIGN                                                   !2, ~5
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
          8        CONCAT                                           ~8      'value+%3D+1', $7
          9        CONCAT                                           ~9      ~8, '2%0A'
         10        ECHO                                                     ~9
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $10     
         14        CONCAT                                           ~11     '+result+%3D+3', $10
         15        CONCAT                                           ~12     ~11, '4%0A'
         16        ECHO                                                     ~12
    7    17        ECHO                                                     '5%0A%0A6'
    3    18      > JMP                                                      ->2
         19    >   FE_FREE                                                  $4
    8    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.6 ms | 1395 KiB | 15 Q