3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = range(1,1000000); $start_time = microtime(true); $x=array_shift($range); $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/o2hZf
function name:  (null)
number of ops:  20
compiled vars:  !0 = $range, !1 = $start_time, !2 = $x, !3 = $end_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 1000000
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    5     5        INIT_FCALL                                               'microtime'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    7     9        INIT_FCALL                                               'array_shift'
         10        SEND_REF                                                 !0
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    9    13        INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !3, $10
   11    17        SUB                                              ~12     !3, !1
         18        ECHO                                                     ~12
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.01 ms | 1395 KiB | 19 Q