3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = array( 0, '0', '', null, false, array(), ); foreach ($t as $i => $v) { if ($v == NULL) { echo "$i : $v IS NULL"; } else { echo "$i : $v is not NULL"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/A1ldD
function name:  (null)
number of ops:  20
compiled vars:  !0 = $t, !1 = $v, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1      > FE_RESET_R                                       $4      !0, ->18
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->18
          3    >   ASSIGN                                                   !2, ~5
   14     4        IS_EQUAL                                                 !1, null
          5      > JMPZ                                                     ~7, ->12
   15     6    >   ROPE_INIT                                     4  ~9      !2
          7        ROPE_ADD                                      1  ~9      ~9, '+%3A+'
          8        ROPE_ADD                                      2  ~9      ~9, !1
          9        ROPE_END                                      3  ~8      ~9, '+IS+NULL'
         10        ECHO                                                     ~8
         11      > JMP                                                      ->17
   18    12    >   ROPE_INIT                                     4  ~12     !2
         13        ROPE_ADD                                      1  ~12     ~12, '+%3A+'
         14        ROPE_ADD                                      2  ~12     ~12, !1
         15        ROPE_END                                      3  ~11     ~12, '+is+not+NULL'
         16        ECHO                                                     ~11
   12    17    > > JMP                                                      ->2
         18    >   FE_FREE                                                  $4
   21    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.53 ms | 1394 KiB | 13 Q