3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max_time = 10; $scriptstart = microtime(true); $used_time = microtime(true) - $scriptstart; sleep($max_time); if ($used_time > $max_time) { var_dump("time is running out... $usedtime"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/dFfV6
function name:  (null)
number of ops:  21
compiled vars:  !0 = $max_time, !1 = $scriptstart, !2 = $used_time, !3 = $usedtime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    4     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        INIT_FCALL                                               'microtime'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $7      
          8        SUB                                              ~8      $7, !1
          9        ASSIGN                                                   !2, ~8
    7    10        INIT_FCALL                                               'sleep'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    8    13        IS_SMALLER                                               !0, !2
         14      > JMPZ                                                     ~11, ->20
    9    15    >   INIT_FCALL                                               'var_dump'
         16        NOP                                                      
         17        FAST_CONCAT                                      ~12     'time+is+running+out...+', !3
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                                 
   10    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.16 ms | 1395 KiB | 19 Q