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"
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NdHEX
function name:  (null)
number of ops:  22
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_DIM_R                                      ~8      !1, 'a'
          8        SEND_VAL                                                 ~8
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    6    13        NEW                                              $11     'Datetime'
         14        ASSIGN                                           ~12     !3, 'now'
         15        SEND_VAL_EX                                              ~12
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !2, $11
    7    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.04 ms | 1386 KiB | 15 Q