3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.18 ms | 1394 KiB | 17 Q