3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bla { static $baz = "\nThe baz of it"; } $foo['bar'] = "bla"; echo $foo['bar']::$baz; $foo['bar'] = new bla; echo $foo['bar']::$baz;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DqQhM
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN_DIM                                               !0, 'bar'
          1        OP_DATA                                                  'bla'
    7     2        FETCH_DIM_R                                      ~2      !0, 'bar'
          3        FETCH_CLASS                                   0  $3      ~2
          4        FETCH_STATIC_PROP_R          unknown             ~4      'baz'
          5        ECHO                                                     ~4
    9     6        NEW                                              $6      'bla'
          7        DO_FCALL                                      0          
          8        ASSIGN_DIM                                               !0, 'bar'
          9        OP_DATA                                                  $6
   10    10        FETCH_DIM_R                                      ~8      !0, 'bar'
         11        FETCH_CLASS                                   0  $9      ~8
         12        FETCH_STATIC_PROP_R          unknown             ~10     'baz'
         13        ECHO                                                     ~10
         14      > RETURN                                                   1

Class bla: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.51 ms | 1393 KiB | 13 Q