3v4l.org

run code in 300+ PHP versions simultaneously
<?php $w = 'wonderous'; $z = 'a thing of beauty is ' . strtoupper($w); $o = new stdClass; $o["p"] = $z; echo "{$o['p']}\n"; echo $o["p"],"\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bdHqf
function name:  (null)
number of ops:  19
compiled vars:  !0 = $w, !1 = $z, !2 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'wonderous'
    3     1        INIT_FCALL                                               'strtoupper'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        CONCAT                                           ~5      'a+thing+of+beauty+is+', $4
          5        ASSIGN                                                   !1, ~5
    4     6        NEW                                              $7      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $7
    5     9        ASSIGN_DIM                                               !2, 'p'
         10        OP_DATA                                                  !1
    6    11        FETCH_DIM_R                                      ~11     !2, 'p'
         12        NOP                                                      
         13        FAST_CONCAT                                      ~12     ~11, '%0A'
         14        ECHO                                                     ~12
    7    15        FETCH_DIM_R                                      ~13     !2, 'p'
         16        ECHO                                                     ~13
         17        ECHO                                                     '%0A'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.43 ms | 1394 KiB | 15 Q