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'] = $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/EGZRf
function name:  (null)
number of ops:  25
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        ASSIGN_DIM                                               !0, 'payload'
         13        OP_DATA                                                  !2
    7    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'json_encode'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 256
         20        DO_ICALL                                         $11     
         21        CONCAT                                           ~12     'authCallback%28', $11
         22        CONCAT                                           ~13     ~12, '%29'
         23        ECHO                                                     ~13
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.81 ms | 1395 KiB | 17 Q