3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_key=''; $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/TWiFP
function name:  (null)
number of ops:  34
compiled vars:  !0 = $start_key, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '-----BEGIN+RSA+PUBLIC+KEY-----'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    4     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        ASSIGN                                                   !0, $6
    5    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        ASSIGN                                                   !1, ~9
    6    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        ASSIGN                                                   !1, ~13
    7    32        ECHO                                                     !1
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.3 ms | 1396 KiB | 19 Q