3v4l.org

run code in 300+ PHP versions simultaneously
<?php function chrono() { $temps = explode(' ', microtime()); return $temps[0]+$temps[1]; } $debut = chrono(); echo md5('toto'); echo round(chrono()-$debut,10);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6U29J
function name:  (null)
number of ops:  16
compiled vars:  !0 = $debut
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'chrono'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   11     3        INIT_FCALL                                               'md5'
          4        SEND_VAL                                                 'toto'
          5        DO_ICALL                                         $3      
          6        ECHO                                                     $3
   14     7        INIT_FCALL                                               'round'
          8        INIT_FCALL                                               'chrono'
          9        DO_FCALL                                      0  $4      
         10        SUB                                              ~5      $4, !0
         11        SEND_VAL                                                 ~5
         12        SEND_VAL                                                 10
         13        DO_ICALL                                         $6      
         14        ECHO                                                     $6
         15      > RETURN                                                   1

Function chrono:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6U29J
function name:  chrono
number of ops:  12
compiled vars:  !0 = $temps
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                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    6     7        FETCH_DIM_R                                      ~4      !0, 0
          8        FETCH_DIM_R                                      ~5      !0, 1
          9        ADD                                              ~6      ~4, ~5
         10      > RETURN                                                   ~6
    7    11*     > RETURN                                                   null

End of function chrono

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.46 ms | 1389 KiB | 23 Q