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 : " . print_r($v, TRUE) . " IS NULL\n"; } else { echo "$i : " . print_r($v, TRUE) . " is not NULL\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 26
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 26
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/8rLDo
function name:  (null)
number of ops:  28
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, ->26
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->26
          3    >   ASSIGN                                                   !2, ~5
   14     4        IS_EQUAL                                                 !1, null
          5      > JMPZ                                                     ~7, ->16
   15     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~8      !2, '+%3A+'
          8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $9      
         12        CONCAT                                           ~10     ~8, $9
         13        CONCAT                                           ~11     ~10, '+IS+NULL%0A'
         14        ECHO                                                     ~11
         15      > JMP                                                      ->25
   18    16    >   NOP                                                      
         17        FAST_CONCAT                                      ~12     !2, '+%3A+'
         18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !1
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $13     
         22        CONCAT                                           ~14     ~12, $13
         23        CONCAT                                           ~15     ~14, '+is+not+NULL%0A'
         24        ECHO                                                     ~15
   12    25    > > JMP                                                      ->2
         26    >   FE_FREE                                                  $4
   21    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.84 ms | 1396 KiB | 15 Q