3v4l.org

run code in 300+ PHP versions simultaneously
<?php $column1 = 0; $column2 = 42; echo $column1 == 0 ? '-' : $column1; echo "<br>\n"; echo $column2 == 0 ? '-' : $column2;
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 = 7
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
Branch analysis from position: 13
filename:       /in/rtnqZ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $column1, !1 = $column2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, 42
    6     2        IS_EQUAL                                                 !0, 0
          3      > JMPZ                                                     ~4, ->6
          4    >   QM_ASSIGN                                        ~5      '-'
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~5      !0
          7    >   ECHO                                                     ~5
    7     8        ECHO                                                     '%3Cbr%3E%0A'
    8     9        IS_EQUAL                                                 !1, 0
         10      > JMPZ                                                     ~6, ->13
         11    >   QM_ASSIGN                                        ~7      '-'
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~7      !1
         14    >   ECHO                                                     ~7
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.95 ms | 1394 KiB | 13 Q