3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (phpversion() != '5.5.5') { echo 'Wrong version.'; die; } $config = array( "digest_alg" => "sha512", "private_key_bits" => 4096, "private_key_type" => OPENSSL_KEYTYPE_RSA, ); // Create the private and public key $res = openssl_pkey_new($config); $data = 'this-is-data'; //$t = openssl_seal($data, $sealed, $keys, []);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VOkK3
function name:  (null)
number of ops:  17
compiled vars:  !0 = $config, !1 = $res, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $3      
          2        IS_NOT_EQUAL                                             $3, '5.5.5'
          3      > JMPZ                                                     ~4, ->6
    4     4    >   ECHO                                                     'Wrong+version.'
    5     5      > EXIT                                                     
    9     6    >   INIT_ARRAY                                       ~5      'sha512', 'digest_alg'
   10     7        ADD_ARRAY_ELEMENT                                ~5      4096, 'private_key_bits'
   11     8        FETCH_CONSTANT                                   ~6      'OPENSSL_KEYTYPE_RSA'
          9        ADD_ARRAY_ELEMENT                                ~5      ~6, 'private_key_type'
    8    10        ASSIGN                                                   !0, ~5
   15    11        INIT_FCALL_BY_NAME                                       'openssl_pkey_new'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0  $8      
         14        ASSIGN                                                   !1, $8
   18    15        ASSIGN                                                   !2, 'this-is-data'
   22    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.94 ms | 1395 KiB | 15 Q