3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = array_combine(range(0, 1000), range(0, 1000)); $a = microtime(); isset($c[500]); $b = microtime(); echo $b - $a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ILnJn
function name:  (null)
number of ops:  24
compiled vars:  !0 = $c, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_combine'
          1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 1000
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 1000
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !0, $5
    5    13        INIT_FCALL                                               'microtime'
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !1, $7
    7    16        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !0, 500
         17        FREE                                                     ~9
    9    18        INIT_FCALL                                               'microtime'
         19        DO_ICALL                                         $10     
         20        ASSIGN                                                   !2, $10
   11    21        SUB                                              ~12     !2, !1
         22        ECHO                                                     ~12
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.74 ms | 1395 KiB | 19 Q