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/Je4ht
function name:  (null)
number of ops:  19
compiled vars:  !0 = $w, !1 = $z, !2 = $o, !3 = $p
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                                         $5      
          4        CONCAT                                           ~6      'a+thing+of+beauty+is+', $5
          5        ASSIGN                                                   !1, ~6
    4     6        NEW                                              $8      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $8
    5     9        ASSIGN_OBJ                                               !2, !3
         10        OP_DATA                                                  !1
    6    11        FETCH_OBJ_R                                      ~12     !2, !3
         12        NOP                                                      
         13        FAST_CONCAT                                      ~13     ~12, '%0A'
         14        ECHO                                                     ~13
    7    15        FETCH_OBJ_R                                      ~14     !2, !3
         16        ECHO                                                     ~14
         17        ECHO                                                     '%0A'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.58 ms | 1394 KiB | 15 Q