3v4l.org

run code in 300+ PHP versions simultaneously
<?php $index = "stuff string"; $data = 'foo'; $cache_id = 'bar'; $tmparr = new stdClass; $tmparr->name = $cache_id; $tmparr->size = strlen($data); $index[] = $tmparr; var_dump($index);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HLGlZ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $index, !1 = $data, !2 = $cache_id, !3 = $tmparr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'stuff+string'
    4     1        ASSIGN                                                   !1, 'foo'
    5     2        ASSIGN                                                   !2, 'bar'
    7     3        NEW                                              $7      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !3, $7
    8     6        ASSIGN_OBJ                                               !3, 'name'
          7        OP_DATA                                                  !2
    9     8        STRLEN                                           ~12     !1
          9        ASSIGN_OBJ                                               !3, 'size'
         10        OP_DATA                                                  ~12
   10    11        ASSIGN_DIM                                               !0
         12        OP_DATA                                                  !3
   12    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.92 ms | 1444 KiB | 14 Q