3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a' => 1, 'b' => 2, 'c' => 3]; $b = new stdClass(); $b->a = 1; $b->b = 2; $b->c = 3; echo microtime(true); for ($i = 0; $i < 100; $i++) { $a['a']; } echo microtime(true); for ($i = 0; $i < 100; $i++) { $b->a; } echo microtime(true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 16
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 27
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 27
Branch analysis from position: 32
Branch analysis from position: 27
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 16
Branch analysis from position: 21
Branch analysis from position: 16
filename:       /in/lIVTb
function name:  (null)
number of ops:  37
compiled vars:  !0 = $a, !1 = $b, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $4      'stdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    5     4        ASSIGN_OBJ                                               !1, 'a'
          5        OP_DATA                                                  1
    6     6        ASSIGN_OBJ                                               !1, 'b'
          7        OP_DATA                                                  2
    7     8        ASSIGN_OBJ                                               !1, 'c'
          9        OP_DATA                                                  3
   10    10        INIT_FCALL                                               'microtime'
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $10     
         13        ECHO                                                     $10
   11    14        ASSIGN                                                   !2, 0
         15      > JMP                                                      ->19
   12    16    >   FETCH_DIM_R                                      ~12     !0, 'a'
         17        FREE                                                     ~12
   11    18        PRE_INC                                                  !2
         19    >   IS_SMALLER                                               !2, 100
         20      > JMPNZ                                                    ~14, ->16
   14    21    >   INIT_FCALL                                               'microtime'
         22        SEND_VAL                                                 <true>
         23        DO_ICALL                                         $15     
         24        ECHO                                                     $15
   15    25        ASSIGN                                                   !2, 0
         26      > JMP                                                      ->30
   16    27    >   FETCH_OBJ_R                                      ~17     !1, 'a'
         28        FREE                                                     ~17
   15    29        PRE_INC                                                  !2
         30    >   IS_SMALLER                                               !2, 100
         31      > JMPNZ                                                    ~19, ->27
   18    32    >   INIT_FCALL                                               'microtime'
         33        SEND_VAL                                                 <true>
         34        DO_ICALL                                         $20     
         35        ECHO                                                     $20
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.68 ms | 1400 KiB | 15 Q