3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = microtime(1); $i = 0; $cl = function(){}; while (true) { if ( ++$i>10000 ) break; $cl instanceof Closure; } var_dump(microtime(1) - $s);
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 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/Z155X
function name:  (null)
number of ops:  23
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        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FZ155X%3A6%240'
          6        ASSIGN                                                   !2, ~6
    7     7      > JMP                                                      ->14
    9     8    >   PRE_INC                                          ~8      !1
          9        IS_SMALLER                                               10000, ~8
         10      > JMPZ                                                     ~9, ->12
   10    11    > > JMP                                                      ->15
   12    12    >   INSTANCEOF                                       ~10     !2, 'Closure'
         13        FREE                                                     ~10
    7    14    > > JMPNZ                                                    <true>, ->8
   16    15    >   INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 1
         18        DO_ICALL                                         $11     
         19        SUB                                              ~12     $11, !0
         20        SEND_VAL                                                 ~12
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FZ155X%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z155X
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FZ155X%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168 ms | 1401 KiB | 17 Q