3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = false; $b = false; $str = ($a || $b) ? "123" : "admin"; echo $str; $str = (!$a || !$b) ? "123" : "admin"; echo $str;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 7
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Branch analysis from position: 14
Branch analysis from position: 4
filename:       /in/2ieJl
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <false>
    4     1        ASSIGN                                                   !1, <false>
    5     2      > JMPNZ_EX                                         ~5      !0, ->4
          3    >   BOOL                                             ~5      !1
          4    > > JMPZ                                                     ~5, ->7
          5    >   QM_ASSIGN                                        ~6      '123'
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~6      'admin'
          8    >   ASSIGN                                                   !2, ~6
    6     9        ECHO                                                     !2
    7    10        BOOL_NOT                                         ~8      !0
         11      > JMPNZ_EX                                         ~8      ~8, ->14
         12    >   BOOL_NOT                                         ~9      !1
         13        BOOL                                             ~8      ~9
         14    > > JMPZ                                                     ~8, ->17
         15    >   QM_ASSIGN                                        ~10     '123'
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~10     'admin'
         18    >   ASSIGN                                                   !2, ~10
    8    19        ECHO                                                     !2
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
254.87 ms | 941 KiB | 13 Q