3v4l.org

run code in 500+ PHP versions simultaneously
<?php $m1 = str_repeat("\x80", 32); $m2 = str_repeat("\x80", 33554432); $end1 = $end2 = $start = microtime(true); $hash1 = hash('sha256', $m1); $end1 = microtime(true); $hash2 = hash('sha256', $m2); $end2 = microtime(true); var_dump( number_format($end1 - $start, 5), number_format($end2 - $start, 5) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8tjrs
function name:  (null)
number of ops:  49
compiled vars:  !0 = $m1, !1 = $m2, !2 = $end1, !3 = $end2, !4 = $start, !5 = $hash1, !6 = $hash2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'str_repeat'
          1        SEND_VAL                                                     '%80'
          2        SEND_VAL                                                     32
          3        DO_ICALL                                             $7      
          4        ASSIGN                                                       !0, $7
    4     5        INIT_FCALL                                                   'str_repeat'
          6        SEND_VAL                                                     '%80'
          7        SEND_VAL                                                     33554432
          8        DO_ICALL                                             $9      
          9        ASSIGN                                                       !1, $9
    6    10        INIT_FCALL                                                   'microtime'
         11        SEND_VAL                                                     <true>
         12        DO_ICALL                                             $11     
         13        ASSIGN                                               ~12     !4, $11
         14        ASSIGN                                               ~13     !3, ~12
         15        ASSIGN                                                       !2, ~13
    7    16        INIT_FCALL                                                   'hash'
         17        SEND_VAL                                                     'sha256'
         18        SEND_VAR                                                     !0
         19        DO_ICALL                                             $15     
         20        ASSIGN                                                       !5, $15
    8    21        INIT_FCALL                                                   'microtime'
         22        SEND_VAL                                                     <true>
         23        DO_ICALL                                             $17     
         24        ASSIGN                                                       !2, $17
    9    25        INIT_FCALL                                                   'hash'
         26        SEND_VAL                                                     'sha256'
         27        SEND_VAR                                                     !1
         28        DO_ICALL                                             $19     
         29        ASSIGN                                                       !6, $19
   10    30        INIT_FCALL                                                   'microtime'
         31        SEND_VAL                                                     <true>
         32        DO_ICALL                                             $21     
         33        ASSIGN                                                       !3, $21
   12    34        INIT_FCALL                                                   'var_dump'
   13    35        INIT_FCALL                                                   'number_format'
         36        SUB                                                  ~23     !2, !4
         37        SEND_VAL                                                     ~23
         38        SEND_VAL                                                     5
         39        DO_ICALL                                             $24     
         40        SEND_VAR                                                     $24
   14    41        INIT_FCALL                                                   'number_format'
         42        SUB                                                  ~25     !3, !4
         43        SEND_VAL                                                     ~25
         44        SEND_VAL                                                     5
         45        DO_ICALL                                             $26     
         46        SEND_VAR                                                     $26
   12    47        DO_ICALL                                                     
   15    48      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.97 ms | 2764 KiB | 18 Q