3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( microtime()); $array = array(); $i = 0; for($i=0;$i<10000;$i++){ $array['good'] = 2; } var_dump( microtime()); ?>
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 = 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
Branch analysis from position: 9
filename:       /in/SBqAn
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'microtime'
          2        DO_ICALL                                         $2      
          3        SEND_VAR                                                 $2
          4        DO_ICALL                                                 
    3     5        ASSIGN                                                   !0, <array>
    4     6        ASSIGN                                                   !1, 0
    5     7        ASSIGN                                                   !1, 0
          8      > JMP                                                      ->12
    6     9    >   ASSIGN_DIM                                               !0, 'good'
         10        OP_DATA                                                  2
    5    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 10000
         13      > JMPNZ                                                    ~9, ->9
    8    14    >   INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'microtime'
         16        DO_ICALL                                         $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                                 
    9    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159 ms | 1395 KiB | 17 Q