3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'jsdfldfcdfädädsa3e4fkdfd.dsfm jkdfdfdsafa-sad dkskdjsajdksafjflkfasd642fd#43rcdklanjrkesajsad'; $time0 = microtime(true); for ($i = 0; $i < 10000; $i++) { $sha512 = hash('sha512', $string); } $time1 = microtime(true); for ($i = 0; $i < 10000; $i++) { $md5 = hash('md5', $string); } $time2 = microtime(true); echo 'sha512 mit ' . strlen($sha512) . ' braucht ' . $time1-$time0 . PHP_EOL; echo 'md5 mit ' . strlen($md5) . ' braucht ' . $time2-$time1 . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 21
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 21
Branch analysis from position: 29
Branch analysis from position: 21
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
Branch analysis from position: 7
filename:       /in/jQYMP
function name:  (null)
number of ops:  48
compiled vars:  !0 = $string, !1 = $time0, !2 = $i, !3 = $sha512, !4 = $time1, !5 = $md5, !6 = $time2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'jsdfldfcdf%C3%A4d%C3%A4dsa3e4fkdfd.dsfm+jkdfdfdsafa-sad+dkskdjsajdksafjflkfasd642fd%2343rcdklanjrkesajsad'
    5     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $8      
          4        ASSIGN                                                   !1, $8
    6     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->13
    7     7    >   INIT_FCALL                                               'hash'
          8        SEND_VAL                                                 'sha512'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !3, $11
    6    12        PRE_INC                                                  !2
         13    >   IS_SMALLER                                               !2, 10000
         14      > JMPNZ                                                    ~14, ->7
   10    15    >   INIT_FCALL                                               'microtime'
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $15     
         18        ASSIGN                                                   !4, $15
   12    19        ASSIGN                                                   !2, 0
         20      > JMP                                                      ->27
   13    21    >   INIT_FCALL                                               'hash'
         22        SEND_VAL                                                 'md5'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $18     
         25        ASSIGN                                                   !5, $18
   12    26        PRE_INC                                                  !2
         27    >   IS_SMALLER                                               !2, 10000
         28      > JMPNZ                                                    ~21, ->21
   16    29    >   INIT_FCALL                                               'microtime'
         30        SEND_VAL                                                 <true>
         31        DO_ICALL                                         $22     
         32        ASSIGN                                                   !6, $22
   19    33        STRLEN                                           ~24     !3
         34        CONCAT                                           ~25     'sha512+mit+', ~24
         35        CONCAT                                           ~26     ~25, '+braucht+'
         36        SUB                                              ~27     !4, !1
         37        CONCAT                                           ~28     ~26, ~27
         38        CONCAT                                           ~29     ~28, '%0A'
         39        ECHO                                                     ~29
   20    40        STRLEN                                           ~30     !5
         41        CONCAT                                           ~31     'md5+mit+', ~30
         42        CONCAT                                           ~32     ~31, '+braucht+'
         43        SUB                                              ~33     !6, !4
         44        CONCAT                                           ~34     ~32, ~33
         45        CONCAT                                           ~35     ~34, '%0A'
         46        ECHO                                                     ~35
         47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.82 ms | 1400 KiB | 17 Q