3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.29 ms | 1395 KiB | 17 Q