3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdclass(); $b = new class{}; $c = new ArrayObject(); $d = (object)[]; echo gettype($a); echo gettype($b); echo gettype($c); echo gettype($d); //=== $b=== $c === $d?"tôi là ai": "em là ai";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I13Cv
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'stdclass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    4     3        DECLARE_ANON_CLASS                               <unknown> 
          4        NEW                                              $8      $7
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $8
    5     7        NEW                                              $11     'ArrayObject'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !2, $11
    6    10        CAST                                          8  ~14     <array>
         11        ASSIGN                                                   !3, ~14
    8    12        GET_TYPE                                         ~16     !0
         13        ECHO                                                     ~16
    9    14        GET_TYPE                                         ~17     !1
         15        ECHO                                                     ~17
   10    16        GET_TYPE                                         ~18     !2
         17        ECHO                                                     ~18
   11    18        GET_TYPE                                         ~19     !3
         19        ECHO                                                     ~19
   13    20      > RETURN                                                   1

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.45 ms | 1393 KiB | 13 Q