3v4l.org

run code in 500+ PHP versions simultaneously
<?php $closure = function(){}; $ts1=microtime(true); for ($i=0; $i<100000; $i++){ $closure(); } $ts2=microtime(true); echo ($ts2-$ts1)."\t".($ts2-$ts1)/100000; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 8
Branch analysis from position: 13
Branch analysis from position: 8
filename:       /in/2RuH4
function name:  (null)
number of ops:  24
compiled vars:  !0 = $closure, !1 = $ts1, !2 = $i, !3 = $ts2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          1        ASSIGN                                                       !0, ~4
    4     2        INIT_FCALL                                                   'microtime'
          3        SEND_VAL                                                     <true>
          4        DO_ICALL                                             $6      
          5        ASSIGN                                                       !1, $6
    5     6        ASSIGN                                                       !2, 0
          7      > JMP                                                          ->11
    6     8    >   INIT_DYNAMIC_CALL                                            !0
          9        DO_FCALL                                          0          
    5    10        PRE_INC                                                      !2
         11    >   IS_SMALLER                                                   !2, 100000
         12      > JMPNZ                                                        ~11, ->8
    8    13    >   INIT_FCALL                                                   'microtime'
         14        SEND_VAL                                                     <true>
         15        DO_ICALL                                             $12     
         16        ASSIGN                                                       !3, $12
   10    17        SUB                                                  ~14     !3, !1
         18        CONCAT                                               ~15     ~14, '%09'
         19        SUB                                                  ~16     !3, !1
         20        DIV                                                  ~17     ~16, 100000
         21        CONCAT                                               ~18     ~15, ~17
         22        ECHO                                                         ~18
   11    23      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2RuH4
function name:  {closure:/in/2RuH4:2}
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.85 ms | 2448 KiB | 14 Q