3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o1 = new stdclass($_GLOBALS['a']=8); var_dump($GLOBALS['a']); // Notice: Undefined variable: a var_dump($o1); $o2 = new Datetime($b='now'); var_dump($b); // string "now" var_dump($GLOBALS['b']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oNOOO
function name:  (null)
number of ops:  28
compiled vars:  !0 = $o1, !1 = $_GLOBALS, !2 = $o2, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'stdclass'
          1        ASSIGN_DIM                                       ~5      !1, 'a'
          2        OP_DATA                                                  8
          3        SEND_VAL_EX                                              ~5
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $4
    3     6        INIT_FCALL                                               'var_dump'
          7        FETCH_R                      global              ~8      'GLOBALS'
          8        FETCH_DIM_R                                      ~9      ~8, 'a'
          9        SEND_VAL                                                 ~9
         10        DO_ICALL                                                 
    4    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    6    14        NEW                                              $12     'Datetime'
         15        ASSIGN                                           ~13     !3, 'now'
         16        SEND_VAL_EX                                              ~13
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !2, $12
    7    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
    8    22        INIT_FCALL                                               'var_dump'
         23        FETCH_R                      global              ~17     'GLOBALS'
         24        FETCH_DIM_R                                      ~18     ~17, 'b'
         25        SEND_VAL                                                 ~18
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.92 ms | 1395 KiB | 15 Q