3v4l.org

run code in 500+ PHP versions simultaneously
<?php $GLOBALS["x"] = $GLOBALS["x"] ?? []; var_dump($GLOBALS["x"]); $GLOBALS["y"] ??= []; var_dump($GLOBALS["y"]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y4146
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FETCH_IS                                             ~1      'x'
          1        COALESCE                                             ~2      ~1
          2        QM_ASSIGN                                            ~2      <array>
          3        FETCH_W                          global              $0      'x'
          4        ASSIGN                                                       $0, ~2
    4     5        INIT_FCALL                                                   'var_dump'
          6        FETCH_R                          global              ~4      'x'
          7        SEND_VAL                                                     ~4
          8        DO_ICALL                                                     
    5     9        FETCH_IS                                             ~6      'y'
         10        COALESCE                                             ~7      ~6
         11        FETCH_W                          global              $8      'y'
         12        ASSIGN                                               ~9      $8, <array>
         13        QM_ASSIGN                                            ~7      ~9
         14        FREE                                                         ~7
    6    15        INIT_FCALL                                                   'var_dump'
         16        FETCH_R                          global              ~10     'y'
         17        SEND_VAL                                                     ~10
         18        DO_ICALL                                                     
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.68 ms | 3327 KiB | 14 Q