3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $a = 0; while(true) { $a++; if($a > 100) { break; } } $mid = microtime(true); $a = 0; start: $a++; if($a > 100) { goto end; } else { goto start; } end: $end = microtime(true); echo "retry " . ($mid-$start) . " retry2 " . ($end-$mid) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 10
filename:       /in/43mHd
function name:  (null)
number of ops:  34
compiled vars:  !0 = $start, !1 = $a, !2 = $mid, !3 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    5     4        ASSIGN                                                   !1, 0
    6     5      > JMP                                                      ->10
    7     6    >   PRE_INC                                                  !1
    8     7        IS_SMALLER                                               100, !1
          8      > JMPZ                                                     ~8, ->10
    9     9    > > JMP                                                      ->11
    6    10    > > JMPNZ                                                    <true>, ->6
   13    11    >   INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
   15    15        ASSIGN                                                   !1, 0
   17    16    >   PRE_INC                                                  !1
   18    17        IS_SMALLER                                               100, !1
         18      > JMPZ                                                     ~13, ->21
   19    19    > > JMP                                                      ->22
         20*       JMP                                                      ->22
   21    21    > > JMP                                                      ->16
   25    22    >   INIT_FCALL                                               'microtime'
         23        SEND_VAL                                                 <true>
         24        DO_ICALL                                         $14     
         25        ASSIGN                                                   !3, $14
   27    26        SUB                                              ~16     !2, !0
         27        CONCAT                                           ~17     'retry+', ~16
         28        CONCAT                                           ~18     ~17, '+retry2+'
         29        SUB                                              ~19     !3, !2
         30        CONCAT                                           ~20     ~18, ~19
         31        CONCAT                                           ~21     ~20, '%0A'
         32        ECHO                                                     ~21
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.32 ms | 1396 KiB | 15 Q