3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(md5(NULL)); var_dump(md5(TRUE)); var_dump(md5(1)); var_dump(md5(0)); var_dump(md5("")); var_dump(md5(array())); function gen_secured_random() { // cause random is the way $a = rand(1337,2600)*42; $b = rand(1879,1955)*42; $a < $b ? $a ^= $b ^= $a ^= $b : $a = $b; return $a+$b; } var_dump(gen_secured_random()); var_dump(gen_secured_random()); var_dump(gen_secured_random()); var_dump(gen_secured_random()); var_dump(gen_secured_random());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v1MLT
function name:  (null)
number of ops:  62
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'md5'
          2        SEND_VAL                                                 null
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'md5'
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'md5'
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
    6    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'md5'
         20        SEND_VAL                                                 0
         21        DO_ICALL                                         $6      
         22        SEND_VAR                                                 $6
         23        DO_ICALL                                                 
    7    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'md5'
         26        SEND_VAL                                                 ''
         27        DO_ICALL                                         $8      
         28        SEND_VAR                                                 $8
         29        DO_ICALL                                                 
    8    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'md5'
         32        SEND_VAL                                                 <array>
         33        DO_ICALL                                         $10     
         34        SEND_VAR                                                 $10
         35        DO_ICALL                                                 
   18    36        INIT_FCALL                                               'var_dump'
         37        INIT_FCALL                                               'gen_secured_random'
         38        DO_FCALL                                      0  $12     
         39        SEND_VAR                                                 $12
         40        DO_ICALL                                                 
   19    41        INIT_FCALL                                               'var_dump'
         42        INIT_FCALL                                               'gen_secured_random'
         43        DO_FCALL                                      0  $14     
         44        SEND_VAR                                                 $14
         45        DO_ICALL                                                 
   20    46        INIT_FCALL                                               'var_dump'
         47        INIT_FCALL                                               'gen_secured_random'
         48        DO_FCALL                                      0  $16     
         49        SEND_VAR                                                 $16
         50        DO_ICALL                                                 
   21    51        INIT_FCALL                                               'var_dump'
         52        INIT_FCALL                                               'gen_secured_random'
         53        DO_FCALL                                      0  $18     
         54        SEND_VAR                                                 $18
         55        DO_ICALL                                                 
   22    56        INIT_FCALL                                               'var_dump'
         57        INIT_FCALL                                               'gen_secured_random'
         58        DO_FCALL                                      0  $20     
         59        SEND_VAR                                                 $20
         60        DO_ICALL                                                 
         61      > RETURN                                                   1

Function gen_secured_random:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v1MLT
function name:  gen_secured_random
number of ops:  25
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'rand'
          1        SEND_VAL                                                 1337
          2        SEND_VAL                                                 2600
          3        DO_ICALL                                         $2      
          4        MUL                                              ~3      $2, 42
          5        ASSIGN                                                   !0, ~3
   12     6        INIT_FCALL                                               'rand'
          7        SEND_VAL                                                 1879
          8        SEND_VAL                                                 1955
          9        DO_ICALL                                         $5      
         10        MUL                                              ~6      $5, 42
         11        ASSIGN                                                   !1, ~6
   14    12        IS_SMALLER                                               !0, !1
         13      > JMPZ                                                     ~8, ->19
         14    >   ASSIGN_OP                                    11  ~9      !0, !1
         15        ASSIGN_OP                                    11  ~10     !1, ~9
         16        ASSIGN_OP                                    11  ~11     !0, ~10
         17        QM_ASSIGN                                        ~12     ~11
         18      > JMP                                                      ->21
         19    >   ASSIGN                                           ~13     !0, !1
         20        QM_ASSIGN                                        ~12     ~13
         21    >   FREE                                                     ~12
   16    22        ADD                                              ~14     !0, !1
         23      > RETURN                                                   ~14
   17    24*     > RETURN                                                   null

End of function gen_secured_random

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.78 ms | 1403 KiB | 24 Q