3v4l.org

run code in 300+ PHP versions simultaneously
<?php function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = microtime_float(); $i = 1920 * 1080; $a = 1; while ($i--) { $a << 1; } $time_end = microtime_float(); $time = $time_end - $time_start; echo "Done in $time seconds\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 6
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 6
Branch analysis from position: 10
Branch analysis from position: 6
filename:       /in/kDYv3
function name:  (null)
number of ops:  20
compiled vars:  !0 = $time_start, !1 = $i, !2 = $a, !3 = $time_end, !4 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'microtime_float'
          1        DO_FCALL                                      0  $5      
          2        ASSIGN                                                   !0, $5
   12     3        ASSIGN                                                   !1, 2073600
   13     4        ASSIGN                                                   !2, 1
   14     5      > JMP                                                      ->8
   15     6    >   SL                                               ~9      !2, 1
          7        FREE                                                     ~9
   14     8    >   POST_DEC                                         ~10     !1
          9      > JMPNZ                                                    ~10, ->6
   18    10    >   INIT_FCALL                                               'microtime_float'
         11        DO_FCALL                                      0  $11     
         12        ASSIGN                                                   !3, $11
   19    13        SUB                                              ~13     !3, !0
         14        ASSIGN                                                   !4, ~13
   21    15        ROPE_INIT                                     3  ~16     'Done+in+'
         16        ROPE_ADD                                      1  ~16     ~16, !4
         17        ROPE_END                                      2  ~15     ~16, '+seconds%0A'
         18        ECHO                                                     ~15
         19      > RETURN                                                   1

Function microtime_float:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kDYv3
function name:  microtime_float
number of ops:  16
compiled vars:  !0 = $usec, !1 = $sec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '+'
          2        INIT_FCALL                                               'microtime'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $3      
          6        FETCH_LIST_R                                     $4      $3, 0
          7        ASSIGN                                                   !0, $4
          8        FETCH_LIST_R                                     $6      $3, 1
          9        ASSIGN                                                   !1, $6
         10        FREE                                                     $3
    6    11        CAST                                          5  ~8      !0
         12        CAST                                          5  ~9      !1
         13        ADD                                              ~10     ~8, ~9
         14      > RETURN                                                   ~10
    7    15*     > RETURN                                                   null

End of function microtime_float

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.89 ms | 1403 KiB | 19 Q