3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('FOO', 'bar'); class baz { public $x = FOO; } $b = new baz; var_export($b->x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F0kNU
function name:  (null)
number of ops:  12
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'FOO'
          2        SEND_VAL                                                 'bar'
          3        DO_ICALL                                                 
    9     4        NEW                                              $2      'baz'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   11     7        INIT_FCALL                                               'var_export'
          8        FETCH_OBJ_R                                      ~5      !0, 'x'
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class baz: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.41 ms | 1398 KiB | 17 Q