3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_key = <<< TEXT -----BEGIN RSA PUBLIC KEY----- MIIBCgKCAQEAp11fZi2kaPCCdOYQPHkHItqGcXaF0Uu9qfBBrcaDXo/Vaqy/niZt 34mO+l+7t/LQjsZl4P/Vjr4wQHZ2rd7PS1rL4XC08vn40szoCpfwyQcnirLkSzx0 wEu8a+bTCNP0i/XLoAaPsWKyZuF9oT6pmPtvvlHxqunaTrqNtFIQNWXrPksZEXh+ zx/2Z5dQ88QIWH6uRMbT+oq9IBE9VGBawzFPwpER2b4sX1ig+vgZhMhSGmHY0/qO VmW7m09T5UnnqSdG1nyICIJ17HBXaDToeqRrwiq7SamkBYpu4KP7ZGFo41/MHsnD NQ7kr7xwDQr+H8FmnSO1f9nB33WvboHJcwIDAQAB -----END RSA PUBLIC KEY----- TEXT; $start_key = str_replace('-----BEGIN RSA PUBLIC KEY-----', '', $start_key); $start_key = trim(str_replace('-----END RSA PUBLIC KEY-----', '', $start_key)); $key = 'MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A' . str_replace("\n", '', $start_key); $key = "-----BEGIN PUBLIC KEY-----\n" . wordwrap($key, 64, "\n", true) . "\n-----END PUBLIC KEY-----"; echo openssl_pkey_get_public($key);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dcTSJ
function name:  (null)
number of ops:  37
compiled vars:  !0 = $start_key, !1 = $key
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   QM_ASSIGN                                                !0
  12     1        INIT_FCALL                                               'str_replace'
         2        SEND_VAL                                                 '-----BEGIN+RSA+PUBLIC+KEY-----'
         3        SEND_VAL                                                 ''
         4        SEND_VAR                                                 !0
         5        DO_ICALL                                         $3      
         6        QM_ASSIGN                                                !0
  13     7        INIT_FCALL                                               'trim'
         8        INIT_FCALL                                               'str_replace'
         9        SEND_VAL                                                 '-----END+RSA+PUBLIC+KEY-----'
        10        SEND_VAL                                                 ''
        11        SEND_VAR                                                 !0
        12        DO_ICALL                                         $5      
        13        SEND_VAR                                                 $5
        14        DO_ICALL                                         $6      
        15        QM_ASSIGN                                                !0
  14    16        INIT_FCALL                                               'str_replace'
        17        SEND_VAL                                                 '%0A'
        18        SEND_VAL                                                 ''
        19        SEND_VAR                                                 !0
        20        DO_ICALL                                         $8      
        21        CONCAT                                           ~9      'MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A', $8
        22        QM_ASSIGN                                                !1
  15    23        INIT_FCALL                                               'wordwrap'
        24        SEND_VAR                                                 !1
        25        SEND_VAL                                                 64
        26        SEND_VAL                                                 '%0A'
        27        SEND_VAL                                                 <true>
        28        DO_ICALL                                         $11     
        29        CONCAT                                           ~12     '-----BEGIN+PUBLIC+KEY-----%0A', $11
        30        CONCAT                                           ~13     ~12, '%0A-----END+PUBLIC+KEY-----'
        31        QM_ASSIGN                                                !1
  16    32        INIT_FCALL_BY_NAME                                       'openssl_pkey_get_public'
        33        SEND_VAR_EX                                              !1
        34        DO_FCALL                                      0  $15     
        35        ASSIGN_OBJ                                               $15
        36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
13.2 ms | 412 KiB | 7 Q