3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hkey = "1234"; $shash = sha1($hkey.$date->format('Y-m-d H:i')); echo json_encode(array($shash));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jSaAe
function name:  (null)
number of ops:  15
compiled vars:  !0 = $hkey, !1 = $shash, !2 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1234'
    3     1        INIT_FCALL                                               'sha1'
          2        INIT_METHOD_CALL                                         !2, 'format'
          3        SEND_VAL_EX                                              'Y-m-d+H%3Ai'
          4        DO_FCALL                                      0  $4      
          5        CONCAT                                           ~5      !0, $4
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    4     9        INIT_FCALL                                               'json_encode'
         10        INIT_ARRAY                                       ~8      !1
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                         $9      
         13        ECHO                                                     $9
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
307.37 ms | 1394 KiB | 18 Q