3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($index=0){ if($index<10000) f(++$index); } $time=microtime(true); f(); echo microtime(true)-$time; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gTZBZ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    7     4        INIT_FCALL                                               'f'
          5        DO_FCALL                                      0          
    8     6        INIT_FCALL                                               'microtime'
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $4      
          9        SUB                                              ~5      $4, !0
         10        ECHO                                                     ~5
   10    11      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/gTZBZ
function name:  f
number of ops:  8
compiled vars:  !0 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      0
    3     1        IS_SMALLER                                               !0, 10000
          2      > JMPZ                                                     ~1, ->7
          3    >   INIT_FCALL_BY_NAME                                       'f'
          4        PRE_INC                                          ~2      !0
          5        SEND_VAL_EX                                              ~2
          6        DO_FCALL                                      0          
    4     7    > > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.69 ms | 1397 KiB | 16 Q