3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.3 ms | 1393 KiB | 13 Q