3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.38 ms | 1395 KiB | 17 Q