3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj1 = new \stdClass; $obj2 = new class{}; $obj3 = (object)[]; var_dump($obj1); var_dump($obj2); var_dump($obj3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S2TYb
function name:  (null)
number of ops:  19
compiled vars:  !0 = $obj1, !1 = $obj2, !2 = $obj3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        DECLARE_ANON_CLASS                               3.95253e-323    
          4        NEW                                              $7      $6
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $7
    5     7        CAST                                          8  ~10     <array>
          8        ASSIGN                                                   !2, ~10
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.95 ms | 1394 KiB | 15 Q