3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o1 = new stdclass($a=8); var_dump(stdclass/$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/SOIAL
function name:  (null)
number of ops:  27
compiled vars:  !0 = $o1, !1 = $a, !2 = $o2, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'stdclass'
          1        ASSIGN                                           ~5      !1, 8
          2        SEND_VAL_EX                                              ~5
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $4
    3     5        INIT_FCALL                                               'var_dump'
          6        FETCH_CONSTANT                                   ~8      'stdclass'
          7        DIV                                              ~9      ~8, !1
          8        SEND_VAL                                                 ~9
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    6    13        NEW                                              $12     'Datetime'
         14        ASSIGN                                           ~13     !3, 'now'
         15        SEND_VAL_EX                                              ~13
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !2, $12
    7    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
    8    21        INIT_FCALL                                               'var_dump'
         22        FETCH_R                      global              ~17     'GLOBALS'
         23        FETCH_DIM_R                                      ~18     ~17, 'b'
         24        SEND_VAL                                                 ~18
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.86 ms | 940 KiB | 16 Q