3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = range(1,100000); $start_time = microtime(true); count($range) ? $range[0] : null; $end_time = microtime(true); echo ($end_time - $start_time);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XucJ3
function name:  (null)
number of ops:  23
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        COUNT                                            ~7      !0
         10      > JMPZ                                                     ~7, ->14
         11    >   FETCH_DIM_R                                      ~8      !0, 0
         12        QM_ASSIGN                                        ~9      ~8
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~9      null
         15    >   FREE                                                     ~9
    9    16        INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $10     
         19        ASSIGN                                                   !2, $10
   11    20        SUB                                              ~12     !2, !1
         21        ECHO                                                     ~12
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.89 ms | 1395 KiB | 17 Q