3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyTest { public $value; } $arrTest = array( "Shane" ); echo "My name is $arrTest[0]"; $test = new MyTest(); $test->value = "Shane"; echo "My name is $test->value"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0MfUQ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arrTest, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <array>
    9     1        NOP                                                      
          2        FETCH_DIM_R                                      ~3      !0, 0
          3        FAST_CONCAT                                      ~4      'My+name+is+', ~3
          4        ECHO                                                     ~4
   11     5        NEW                                              $5      'MyTest'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   12     8        ASSIGN_OBJ                                               !1, 'value'
          9        OP_DATA                                                  'Shane'
   14    10        NOP                                                      
         11        FETCH_OBJ_R                                      ~9      !1, 'value'
         12        FAST_CONCAT                                      ~10     'My+name+is+', ~9
         13        ECHO                                                     ~10
   16    14      > RETURN                                                   1

Class MyTest: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.52 ms | 1393 KiB | 13 Q