3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_time = microtime(true); function time_log($message) { global $start_time; echo ($message.': '.(microtime(true) - $start_time)); } time_log('Page generation:');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qFNHb
function name:  (null)
number of ops:  8
compiled vars:  !0 = $start_time
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
    7     4        INIT_FCALL                                               'time_log'
          5        SEND_VAL                                                 'Page+generation%3A'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function time_log

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.51 ms | 1397 KiB | 16 Q