3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = empty($_GET['t2']) ? $_GET['t2'] : 'test'; $t = empty($_GET['t2']) ? 'test' : $_GET['t2']; echo '<pre>'.print_r($t, true).'</pre>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Branch analysis from position: 14
filename:       /in/nVBb0
function name:  (null)
number of ops:  26
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_IS                                         ~1      '_GET'
          1        ISSET_ISEMPTY_DIM_OBJ                         1          ~1, 't2'
          2      > JMPZ                                                     ~2, ->7
          3    >   FETCH_R                      global              ~3      '_GET'
          4        FETCH_DIM_R                                      ~4      ~3, 't2'
          5        QM_ASSIGN                                        ~5      ~4
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~5      'test'
          8    >   ASSIGN                                                   !0, ~5
    4     9        FETCH_IS                                         ~7      '_GET'
         10        ISSET_ISEMPTY_DIM_OBJ                         1          ~7, 't2'
         11      > JMPZ                                                     ~8, ->14
         12    >   QM_ASSIGN                                        ~9      'test'
         13      > JMP                                                      ->17
         14    >   FETCH_R                      global              ~10     '_GET'
         15        FETCH_DIM_R                                      ~11     ~10, 't2'
         16        QM_ASSIGN                                        ~9      ~11
         17    >   ASSIGN                                                   !0, ~9
    6    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !0
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $13     
         22        CONCAT                                           ~14     '%3Cpre%3E', $13
         23        CONCAT                                           ~15     ~14, '%3C%2Fpre%3E'
         24        ECHO                                                     ~15
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.76 ms | 1396 KiB | 15 Q