3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = microtime(true); $n = 1000000; $v = 12345; while($n--) { if (is_numeric($v) && $v > 0) { } } echo (microtime(true) - $t);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
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 = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 14
Branch analysis from position: 14
Branch analysis from position: 14
Branch analysis from position: 13
filename:       /in/SIU5j
function name:  (null)
number of ops:  22
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                                                      ->14
   10     7    >   INIT_FCALL                                               'is_numeric'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $7      
         10      > JMPZ_EX                                          ~8      $7, ->13
         11    >   IS_SMALLER                                       ~9      0, !2
         12        BOOL                                             ~8      ~9
         13    > > JMPZ                                                     ~8, ->14
    7    14    >   POST_DEC                                         ~10     !1
         15      > JMPNZ                                                    ~10, ->7
   17    16    >   INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $11     
         19        SUB                                              ~12     $11, !0
         20        ECHO                                                     ~12
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.44 ms | 1395 KiB | 17 Q