3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = []; foreach ([NULL, TRUE, FALSE, 0, 1, 'none'] as $v) { $eq = ($v == 'none'); $neq = ($v != 'none'); if ($eq && !$neq) { $result['== "none"'][] = $v; } elseif (!$eq && $neq) { $result['!= "none"'][] = $v; } else { // Hope this never occurs. $result['???'][] = $v; } } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 27
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 27
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 18
Branch analysis from position: 10
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/VBaCg
function name:  (null)
number of ops:  32
compiled vars:  !0 = $result, !1 = $v, !2 = $eq, !3 = $neq
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $5      <array>, ->27
          2    > > FE_FETCH_R                                               $5, !1, ->27
    5     3    >   IS_EQUAL                                         ~6      !1, 'none'
          4        ASSIGN                                                   !2, ~6
    6     5        IS_NOT_EQUAL                                     ~8      !1, 'none'
          6        ASSIGN                                                   !3, ~8
    7     7      > JMPZ_EX                                          ~10     !2, ->10
          8    >   BOOL_NOT                                         ~11     !3
          9        BOOL                                             ~10     ~11
         10    > > JMPZ                                                     ~10, ->15
    8    11    >   FETCH_DIM_W                                      $12     !0, '%3D%3D+%22none%22'
         12        ASSIGN_DIM                                               $12
         13        OP_DATA                                                  !1
    7    14      > JMP                                                      ->26
   10    15    >   BOOL_NOT                                         ~14     !2
         16      > JMPZ_EX                                          ~14     ~14, ->18
         17    >   BOOL                                             ~14     !3
         18    > > JMPZ                                                     ~14, ->23
   11    19    >   FETCH_DIM_W                                      $15     !0, '%21%3D+%22none%22'
         20        ASSIGN_DIM                                               $15
         21        OP_DATA                                                  !1
   10    22      > JMP                                                      ->26
   15    23    >   FETCH_DIM_W                                      $17     !0, '%3F%3F%3F'
         24        ASSIGN_DIM                                               $17
         25        OP_DATA                                                  !1
    4    26    > > JMP                                                      ->2
         27    >   FE_FREE                                                  $5
   19    28        INIT_FCALL                                               'var_export'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.43 ms | 1005 KiB | 14 Q