3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0; $j=500000; while($i < 60000) { $i++; $j++; $data1[] = md5($i); $data2[] = md5($j); } $key = md5(1); $time = microtime(true); echo "Starting\n"; $test = in_array($key, $data1); $time = microtime(true) - $time; echo ' took ' . number_format($time, 3) . " seconds\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
Branch analysis from position: 3
filename:       /in/99k0i
function name:  (null)
number of ops:  44
compiled vars:  !0 = $i, !1 = $j, !2 = $data1, !3 = $data2, !4 = $key, !5 = $time, !6 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1        ASSIGN                                                   !1, 500000
    3     2      > JMP                                                      ->15
    4     3    >   PRE_INC                                                  !0
          4        PRE_INC                                                  !1
    5     5        INIT_FCALL                                               'md5'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $12     
          8        ASSIGN_DIM                                               !2
          9        OP_DATA                                                  $12
    6    10        INIT_FCALL                                               'md5'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $14     
         13        ASSIGN_DIM                                               !3
         14        OP_DATA                                                  $14
    3    15    >   IS_SMALLER                                               !0, 60000
         16      > JMPNZ                                                    ~15, ->3
    9    17    >   INIT_FCALL                                               'md5'
         18        SEND_VAL                                                 1
         19        DO_ICALL                                         $16     
         20        ASSIGN                                                   !4, $16
   10    21        INIT_FCALL                                               'microtime'
         22        SEND_VAL                                                 <true>
         23        DO_ICALL                                         $18     
         24        ASSIGN                                                   !5, $18
   12    25        ECHO                                                     'Starting%0A'
   13    26        INIT_FCALL                                               'in_array'
         27        SEND_VAR                                                 !4
         28        SEND_VAR                                                 !2
         29        DO_ICALL                                         $20     
         30        ASSIGN                                                   !6, $20
   15    31        INIT_FCALL                                               'microtime'
         32        SEND_VAL                                                 <true>
         33        DO_ICALL                                         $22     
         34        SUB                                              ~23     $22, !5
         35        ASSIGN                                                   !5, ~23
   17    36        INIT_FCALL                                               'number_format'
         37        SEND_VAR                                                 !5
         38        SEND_VAL                                                 3
         39        DO_ICALL                                         $25     
         40        CONCAT                                           ~26     '+took+', $25
         41        CONCAT                                           ~27     ~26, '+seconds%0A'
         42        ECHO                                                     ~27
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.06 ms | 1400 KiB | 21 Q