3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result_arr['logged_in'] = true; $key = 'SuperSecretKey'; $encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, 'I want to encrypt this', MCRYPT_MODE_ECB); $result_arr['payload'] = base64_encode($encrypted); print_r($result_arr); echo 'authCallback(' . json_encode( $result_arr, JSON_UNESCAPED_UNICODE ) . ')';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fXa3A
function name:  (null)
number of ops:  28
compiled vars:  !0 = $result_arr, !1 = $key, !2 = $encrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'logged_in'
          1        OP_DATA                                                  <true>
    4     2        ASSIGN                                                   !1, 'SuperSecretKey'
    5     3        INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
          4        FETCH_CONSTANT                                   ~5      'MCRYPT_RIJNDAEL_256'
          5        SEND_VAL_EX                                              ~5
          6        SEND_VAR_EX                                              !1
          7        SEND_VAL_EX                                              'I+want+to+encrypt+this'
          8        FETCH_CONSTANT                                   ~6      'MCRYPT_MODE_ECB'
          9        SEND_VAL_EX                                              ~6
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !2, $7
    6    12        INIT_FCALL                                               'base64_encode'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $10     
         15        ASSIGN_DIM                                               !0, 'payload'
         16        OP_DATA                                                  $10
    7    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
    8    20        INIT_FCALL                                               'json_encode'
         21        SEND_VAR                                                 !0
         22        SEND_VAL                                                 256
         23        DO_ICALL                                         $12     
         24        CONCAT                                           ~13     'authCallback%28', $12
         25        CONCAT                                           ~14     ~13, '%29'
         26        ECHO                                                     ~14
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.1 ms | 1395 KiB | 19 Q