3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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 $key;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LrFaX
function name:  (null)
number of ops:  33
compiled vars:  !0 = $start_key, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_replace'
          1        SEND_VAL                                                 '-----BEGIN+RSA+PUBLIC+KEY-----'
          2        SEND_VAL                                                 ''
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    3     6        INIT_FCALL                                               'trim'
          7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '-----END+RSA+PUBLIC+KEY-----'
          9        SEND_VAL                                                 ''
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        ASSIGN                                                   !0, $5
    4    15        INIT_FCALL                                               'str_replace'
         16        SEND_VAL                                                 '%0A'
         17        SEND_VAL                                                 ''
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $7      
         20        CONCAT                                           ~8      'MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A', $7
         21        ASSIGN                                                   !1, ~8
    5    22        INIT_FCALL                                               'wordwrap'
         23        SEND_VAR                                                 !1
         24        SEND_VAL                                                 64
         25        SEND_VAL                                                 '%0A'
         26        SEND_VAL                                                 <true>
         27        DO_ICALL                                         $10     
         28        CONCAT                                           ~11     '-----BEGIN+PUBLIC+KEY-----%0A', $10
         29        CONCAT                                           ~12     ~11, '%0A-----END+PUBLIC+KEY-----'
         30        ASSIGN                                                   !1, ~12
    6    31        ECHO                                                     !1
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.41 ms | 1396 KiB | 19 Q