3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.6 ms | 1400 KiB | 21 Q