3v4l.org

run code in 300+ PHP versions simultaneously
<?php #[AllowDynamicProperties] class withDynamic { } class noDynamic { } $withDyn = new withDynamic(); $withDyn->foo = 'bar'; var_Dump($withDyn); $noDyn = new noDynamic(); $noDyn->foo = 'bar'; var_Dump($noDyn);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vj7Zu
function name:  (null)
number of ops:  17
compiled vars:  !0 = $withDyn, !1 = $noDyn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'withDynamic'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   12     3        ASSIGN_OBJ                                               !0, 'foo'
          4        OP_DATA                                                  'bar'
   13     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   15     8        NEW                                              $7      'noDynamic'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $7
   16    11        ASSIGN_OBJ                                               !1, 'foo'
         12        OP_DATA                                                  'bar'
   17    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Class withDynamic: [no user functions]
Class noDynamic: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.12 ms | 999 KiB | 14 Q