3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = time(); for($i=0;$i<2000000;$i++) echo ""; $end = time(); echo date("H:i:s:u",$now); echo "\n"; echo date("H:i:s:u",$end); echo "\n"; echo $end-$now;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 5
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 5
Branch analysis from position: 9
Branch analysis from position: 5
filename:       /in/PjR2A
function name:  (null)
number of ops:  27
compiled vars:  !0 = $now, !1 = $i, !2 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->7
    4     5    >   ECHO                                                     ''
    3     6        PRE_INC                                                  !1
          7    >   IS_SMALLER                                               !1, 2000000
          8      > JMPNZ                                                    ~7, ->5
    5     9    >   INIT_FCALL                                               'time'
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
    7    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'H%3Ai%3As%3Au'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $10     
         16        ECHO                                                     $10
         17        ECHO                                                     '%0A'
    8    18        INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'H%3Ai%3As%3Au'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $11     
         22        ECHO                                                     $11
         23        ECHO                                                     '%0A'
    9    24        SUB                                              ~12     !2, !0
         25        ECHO                                                     ~12
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.92 ms | 1395 KiB | 17 Q