3v4l.org

run code in 300+ PHP versions simultaneously
<?php $admin = true; $moderator = true; echo ($admin ===true) ? 'You are an admin' . (($moderator ===true) ? 'You are also a moderator' : '') : 'You are not an admin';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mBXrX
function name:  (null)
number of ops:  15
compiled vars:  !0 = $admin, !1 = $moderator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1        ASSIGN                                                   !1, <true>
    5     2        TYPE_CHECK                                    8          !0
          3      > JMPZ                                                     ~4, ->12
          4    >   TYPE_CHECK                                    8          !1
          5      > JMPZ                                                     ~5, ->8
          6    >   QM_ASSIGN                                        ~6      'You+are+also+a+moderator'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~6      ''
          9    >   CONCAT                                           ~7      'You+are+an+admin', ~6
         10        QM_ASSIGN                                        ~8      ~7
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~8      'You+are+not+an+admin'
         13    >   ECHO                                                     ~8
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.6 ms | 1394 KiB | 13 Q