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( phpversion(), $time, $randomString1, $randomString2 ); // md5(time() . browser-details-string . "some-salt-string")
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/fe9OF
function name:  (null)
number of ops:  31
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        INIT_FCALL                                               'phpversion'
         24        DO_ICALL                                         $13     
         25        SEND_VAR                                                 $13
   12    26        SEND_VAR                                                 !0
   13    27        SEND_VAR                                                 !1
   14    28        SEND_VAR                                                 !2
         29        DO_ICALL                                                 
   17    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.39 ms | 1396 KiB | 23 Q