3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = microtime(true); for ($i = 0; $i < 1000; $i++) { $str = ''; for ($k = 0; $k < 280; $k++) { $str .= chr(mt_rand(0, 255)); } } $e = microtime(true); echo ($e - $s) . " Seconds\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 6
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 9
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 6
Branch analysis from position: 23
Branch analysis from position: 6
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 9
Branch analysis from position: 20
Branch analysis from position: 9
filename:       /in/fMUuQ
function name:  (null)
number of ops:  31
compiled vars:  !0 = $s, !1 = $i, !2 = $str, !3 = $k, !4 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    5     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->21
    6     6    >   ASSIGN                                                   !2, ''
    7     7        ASSIGN                                                   !3, 0
          8      > JMP                                                      ->18
    8     9    >   INIT_FCALL                                               'chr'
         10        INIT_FCALL                                               'mt_rand'
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 255
         13        DO_ICALL                                         $10     
         14        SEND_VAR                                                 $10
         15        DO_ICALL                                         $11     
         16        ASSIGN_OP                                     8          !2, $11
    7    17        PRE_INC                                                  !3
         18    >   IS_SMALLER                                               !3, 280
         19      > JMPNZ                                                    ~14, ->9
    5    20    >   PRE_INC                                                  !1
         21    >   IS_SMALLER                                               !1, 1000
         22      > JMPNZ                                                    ~16, ->6
   11    23    >   INIT_FCALL                                               'microtime'
         24        SEND_VAL                                                 <true>
         25        DO_ICALL                                         $17     
         26        ASSIGN                                                   !4, $17
   13    27        SUB                                              ~19     !4, !0
         28        CONCAT                                           ~20     ~19, '+Seconds%0A'
         29        ECHO                                                     ~20
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.82 ms | 1396 KiB | 19 Q