3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userSeparator = ' '; $selfSeparator = '+'; $separator = (null !== $userSeparator) ? $userSeparator : ((null !== $selfSeparator) ? $selfSeparator : '-'); echo "Separator = '$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/ICob5
function name:  (null)
number of ops:  18
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        ROPE_INIT                                     3  ~11     'Separator+%3D+%27'
         14        ROPE_ADD                                      1  ~11     ~11, !2
         15        ROPE_END                                      2  ~10     ~11, '%27'
         16        ECHO                                                     ~10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.12 ms | 1393 KiB | 13 Q