3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = base64_encode(md5('')); $start = microtime(true); for ($i = 0; $i < 100; ++$i) { $soFar = ''; $result = []; foreach (str_split($value) as $char) { $soFar .= $char; $result[] = $soFar; } } $end = microtime(true); echo $i/($end - $start), ' op/s'; var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 13
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 13
Branch analysis from position: 28
Branch analysis from position: 13
Branch analysis from position: 24
filename:       /in/IGsPA
function name:  (null)
number of ops:  40
compiled vars:  !0 = $value, !1 = $start, !2 = $i, !3 = $soFar, !4 = $result, !5 = $char, !6 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'base64_encode'
          1        INIT_FCALL                                               'md5'
          2        SEND_VAL                                                 ''
          3        DO_ICALL                                         $7      
          4        SEND_VAR                                                 $7
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !0, $8
    4     7        INIT_FCALL                                               'microtime'
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !1, $10
    5    11        ASSIGN                                                   !2, 0
         12      > JMP                                                      ->26
    6    13    >   ASSIGN                                                   !3, ''
    7    14        ASSIGN                                                   !4, <array>
    8    15        INIT_FCALL                                               'str_split'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $15     
         18      > FE_RESET_R                                       $16     $15, ->24
         19    > > FE_FETCH_R                                               $16, !5, ->24
    9    20    >   ASSIGN_OP                                     8          !3, !5
   10    21        ASSIGN_DIM                                               !4
         22        OP_DATA                                                  !3
    8    23      > JMP                                                      ->19
         24    >   FE_FREE                                                  $16
    5    25        PRE_INC                                                  !2
         26    >   IS_SMALLER                                               !2, 100
         27      > JMPNZ                                                    ~20, ->13
   14    28    >   INIT_FCALL                                               'microtime'
         29        SEND_VAL                                                 <true>
         30        DO_ICALL                                         $21     
         31        ASSIGN                                                   !6, $21
   15    32        SUB                                              ~23     !6, !1
         33        DIV                                              ~24     !2, ~23
         34        ECHO                                                     ~24
         35        ECHO                                                     '+op%2Fs'
   16    36        INIT_FCALL                                               'var_dump'
         37        SEND_VAR                                                 !4
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.36 ms | 1400 KiB | 23 Q