3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $time = microtime(true); for ($i = 0; $i <= 100000; $i++) { $j = @$arr['foo']; } printf("%f seconds", microtime(true) - $time);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/36AiH
function name:  (null)
number of ops:  23
compiled vars:  !0 = $arr, !1 = $time, !2 = $i, !3 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    6     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->12
    7     7    >   BEGIN_SILENCE                                    ~8      
          8        FETCH_DIM_R                                      ~9      !0, 'foo'
          9        END_SILENCE                                              ~8
         10        ASSIGN                                                   !3, ~9
    6    11        PRE_INC                                                  !2
         12    >   IS_SMALLER_OR_EQUAL                                      !2, 100000
         13      > JMPNZ                                                    ~12, ->7
   10    14    >   INIT_FCALL                                               'printf'
         15        SEND_VAL                                                 '%25f+seconds'
         16        INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $13     
         19        SUB                                              ~14     $13, !1
         20        SEND_VAL                                                 ~14
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.26 ms | 1395 KiB | 17 Q