3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = microtime(true); var_dump(microtime(true)-$s); var_dump(microtime(true)-$s); var_dump(microtime(true)-$s); var_dump(microtime(true)-$s); var_dump(microtime(true)-$s); var_dump(microtime(true)-$s); function foo($s) { var_dump(microtime(true)-$s); } echo "----\n"; foo($s); foo($s); foo($s); foo($s); foo($s); foo($s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Z0Gf
function name:  (null)
number of ops:  66
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'microtime'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $3      
          8        SUB                                              ~4      $3, !0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
    4    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $6      
         15        SUB                                              ~7      $6, !0
         16        SEND_VAL                                                 ~7
         17        DO_ICALL                                                 
    5    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'microtime'
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $9      
         22        SUB                                              ~10     $9, !0
         23        SEND_VAL                                                 ~10
         24        DO_ICALL                                                 
    6    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'microtime'
         27        SEND_VAL                                                 <true>
         28        DO_ICALL                                         $12     
         29        SUB                                              ~13     $12, !0
         30        SEND_VAL                                                 ~13
         31        DO_ICALL                                                 
    7    32        INIT_FCALL                                               'var_dump'
         33        INIT_FCALL                                               'microtime'
         34        SEND_VAL                                                 <true>
         35        DO_ICALL                                         $15     
         36        SUB                                              ~16     $15, !0
         37        SEND_VAL                                                 ~16
         38        DO_ICALL                                                 
    8    39        INIT_FCALL                                               'var_dump'
         40        INIT_FCALL                                               'microtime'
         41        SEND_VAL                                                 <true>
         42        DO_ICALL                                         $18     
         43        SUB                                              ~19     $18, !0
         44        SEND_VAL                                                 ~19
         45        DO_ICALL                                                 
   15    46        ECHO                                                     '----%0A'
   17    47        INIT_FCALL                                               'foo'
         48        SEND_VAR                                                 !0
         49        DO_FCALL                                      0          
   18    50        INIT_FCALL                                               'foo'
         51        SEND_VAR                                                 !0
         52        DO_FCALL                                      0          
   19    53        INIT_FCALL                                               'foo'
         54        SEND_VAR                                                 !0
         55        DO_FCALL                                      0          
   20    56        INIT_FCALL                                               'foo'
         57        SEND_VAR                                                 !0
         58        DO_FCALL                                      0          
   21    59        INIT_FCALL                                               'foo'
         60        SEND_VAR                                                 !0
         61        DO_FCALL                                      0          
   22    62        INIT_FCALL                                               'foo'
         63        SEND_VAR                                                 !0
         64        DO_FCALL                                      0          
         65      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Z0Gf
function name:  foo
number of ops:  9
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'microtime'
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $1      
          5        SUB                                              ~2      $1, !0
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   13     8      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.61 ms | 1403 KiB | 23 Q