3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = []; foreach ([0, '', null, false, ' ', '0', .0] as $v) { $k = match(true) { $v != null => '!= null', $v == null => '== null', // This should never occur. default => '?', }; $result[$k][] = $v; } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 21
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 21
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
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 = 16
Branch analysis from position: 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/fL8Dp
function name:  (null)
number of ops:  26
compiled vars:  !0 = $result, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $4      <array>, ->21
          2    > > FE_FETCH_R                                               $4, !1, ->21
    5     3    >   IS_NOT_EQUAL                                     ~6      !1, null
          4        IS_IDENTICAL                                             ~6, <true>
          5      > JMPNZ                                                    ~5, ->10
    7     6    >   IS_EQUAL                                         ~7      !1, null
          7        IS_IDENTICAL                                             ~7, <true>
          8      > JMPNZ                                                    ~5, ->12
          9    > > JMP                                                      ->14
    6    10    >   QM_ASSIGN                                        ~8      '%21%3D+null'
         11      > JMP                                                      ->16
    7    12    >   QM_ASSIGN                                        ~8      '%3D%3D+null'
         13      > JMP                                                      ->16
    9    14    >   QM_ASSIGN                                        ~8      '%3F'
         15      > JMP                                                      ->16
    5    16    >   ASSIGN                                                   !2, ~8
   11    17        FETCH_DIM_W                                      $10     !0, !2
         18        ASSIGN_DIM                                               $10
         19        OP_DATA                                                  !1
    4    20      > JMP                                                      ->2
         21    >   FE_FREE                                                  $4
   14    22        INIT_FCALL                                               'var_export'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.17 ms | 1437 KiB | 14 Q