3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = microtime(1); $i = 0; $cl = true; while (true) { if ( ++$i>10000 ) break; $cl === true || $cl === false; } var_dump(microtime(1) - $s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 11
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
Branch analysis from position: 7
Branch analysis from position: 15
filename:       /in/v78Sf
function name:  (null)
number of ops:  24
compiled vars:  !0 = $s, !1 = $i, !2 = $cl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        ASSIGN                                                   !1, 0
    6     5        ASSIGN                                                   !2, <true>
    7     6      > JMP                                                      ->15
    9     7    >   PRE_INC                                          ~7      !1
          8        IS_SMALLER                                               10000, ~7
          9      > JMPZ                                                     ~8, ->11
   10    10    > > JMP                                                      ->16
   11    11    >   TYPE_CHECK                                    8  ~9      !2
         12      > JMPNZ_EX                                         ~9      ~9, ->15
         13    >   TYPE_CHECK                                    4  ~10     !2
         14        BOOL                                             ~9      ~10
    7    15    > > JMPNZ                                                    <true>, ->7
   15    16    >   INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'microtime'
         18        SEND_VAL                                                 1
         19        DO_ICALL                                         $11     
         20        SUB                                              ~12     $11, !0
         21        SEND_VAL                                                 ~12
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.15 ms | 1395 KiB | 17 Q