3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = microtime(true); $n = 1000000; $v = 12345; while($n--) { if ($v === (int) $v && $v > 0) { } } echo (microtime(true) - $t);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 13
Branch analysis from position: 13
Branch analysis from position: 13
Branch analysis from position: 12
filename:       /in/fGXQj
function name:  (null)
number of ops:  21
compiled vars:  !0 = $t, !1 = $n, !2 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        ASSIGN                                                   !1, 1000000
    5     5        ASSIGN                                                   !2, 12345
    7     6      > JMP                                                      ->13
   10     7    >   CAST                                          4  ~7      !2
          8        IS_IDENTICAL                                     ~8      !2, ~7
          9      > JMPZ_EX                                          ~8      ~8, ->12
         10    >   IS_SMALLER                                       ~9      0, !2
         11        BOOL                                             ~8      ~9
         12    > > JMPZ                                                     ~8, ->13
    7    13    >   POST_DEC                                         ~10     !1
         14      > JMPNZ                                                    ~10, ->7
   17    15    >   INIT_FCALL                                               'microtime'
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $11     
         18        SUB                                              ~12     $11, !0
         19        ECHO                                                     ~12
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.28 ms | 1395 KiB | 15 Q