3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(10); $startTime = microtime(true); $newTime = strtotime('+10 second'); while (true) { if($newTime >= $startTime) { break; } } echo 'Total execution time in seconds: ' . (microtime(true) - $startTime);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 12
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 15
filename:       /in/Qvehi
function name:  (null)
number of ops:  23
compiled vars:  !0 = $startTime, !1 = $newTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'set_time_limit'
          1        SEND_VAL                                                 10
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'microtime'
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    4     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 '%2B10+second'
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    5    11      > JMP                                                      ->15
    6    12    >   IS_SMALLER_OR_EQUAL                                      !0, !1
         13      > JMPZ                                                     ~7, ->15
    7    14    > > JMP                                                      ->16
    5    15    > > JMPNZ                                                    <true>, ->12
   10    16    >   INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $8      
         19        SUB                                              ~9      $8, !0
         20        CONCAT                                           ~10     'Total+execution+time+in+seconds%3A+', ~9
         21        ECHO                                                     ~10
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.71 ms | 1395 KiB | 19 Q