3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (phpversion() != '7.0.0') { die; } $time = time(); $randomString1 = bin2hex(random_bytes(20)); $randomString2 = bin2hex(random_bytes(10)); var_dump( $time, $randomString1, $randomString2, md5($time.$randomString1.$randomString2) );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y2Pcf
function name:  (null)
number of ops:  34
compiled vars:  !0 = $time, !1 = $randomString1, !2 = $randomString2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $3      
          2        IS_NOT_EQUAL                                             $3, '7.0.0'
          3      > JMPZ                                                     ~4, ->5
          4    > > EXIT                                                     
    5     5    >   INIT_FCALL                                               'time'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !0, $5
    6     8        INIT_FCALL                                               'bin2hex'
          9        INIT_FCALL                                               'random_bytes'
         10        SEND_VAL                                                 20
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !1, $8
    7    15        INIT_FCALL                                               'bin2hex'
         16        INIT_FCALL                                               'random_bytes'
         17        SEND_VAL                                                 10
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                         $11     
         21        ASSIGN                                                   !2, $11
   10    22        INIT_FCALL                                               'var_dump'
   11    23        SEND_VAR                                                 !0
   12    24        SEND_VAR                                                 !1
   13    25        SEND_VAR                                                 !2
   14    26        INIT_FCALL                                               'md5'
         27        CONCAT                                           ~13     !0, !1
         28        CONCAT                                           ~14     ~13, !2
         29        SEND_VAL                                                 ~14
         30        DO_ICALL                                         $15     
         31        SEND_VAR                                                 $15
         32        DO_ICALL                                                 
   15    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.92 ms | 1396 KiB | 25 Q