3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create the keypair $res=openssl_pkey_new(); // Get private key openssl_pkey_export($res, $privkey); // Get public key $pubkey=openssl_pkey_get_details($res); $pubkey=$pubkey["key"];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oZO15
function name:  (null)
number of ops:  14
compiled vars:  !0 = $res, !1 = $privkey, !2 = $pubkey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'openssl_pkey_new'
          1        DO_FCALL                                      0  $3      
          2        ASSIGN                                                   !0, $3
    6     3        INIT_FCALL_BY_NAME                                       'openssl_pkey_export'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0          
    9     7        INIT_FCALL_BY_NAME                                       'openssl_pkey_get_details'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $6      
         10        ASSIGN                                                   !2, $6
   10    11        FETCH_DIM_R                                      ~8      !2, 'key'
         12        ASSIGN                                                   !2, ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.29 ms | 1384 KiB | 13 Q