3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.57 ms | 1385 KiB | 13 Q