3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (phpversion() != '5.5.5') { echo 'Wrong version.'; die; } 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 = 79) Position 1 = -2
filename:       /in/WHVTN
function name:  (null)
number of ops:  18
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                                                     
    7     6    > > EXIT                                                     
   10     7*       INIT_ARRAY                                       ~5      'sha512', 'digest_alg'
   11     8*       ADD_ARRAY_ELEMENT                                ~5      4096, 'private_key_bits'
   12     9*       FETCH_CONSTANT                                   ~6      'OPENSSL_KEYTYPE_RSA'
         10*       ADD_ARRAY_ELEMENT                                ~5      ~6, 'private_key_type'
    9    11*       ASSIGN                                                   !0, ~5
   16    12*       INIT_FCALL_BY_NAME                                       'openssl_pkey_new'
         13*       SEND_VAR_EX                                              !0
         14*       DO_FCALL                                      0  $8      
         15*       ASSIGN                                                   !1, $8
   19    16*       ASSIGN                                                   !2, 'this-is-data'
   23    17*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.03 ms | 1395 KiB | 15 Q