3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputString = "vlastimil.havranek-18052017-drest4drx35gxdrg54"; $method = "AES-256-CBC"; $decrptKey = "175f814klcb8b777a024eb68e07a91ed"; $iv = "d44678c59b972f37"; echo "\r\nOPENSSL_RAW_DATA value: ".OPENSSL_RAW_DATA; echo "\r\nOPENSSL_ZERO_PADDING value: ".OPENSSL_ZERO_PADDING; //echo "\r\ncombined value: ".OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING; $opt = OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING; $enS = openssl_encrypt ($inputString, $method, $decrptKey,$opt,$iv); echo "\r\nencrypted string: ".$enS; //result for opts flag 0 is udAXfqVMVCsvmtcGJLnrOb5DbMfr+dcYjdzvepdep0ZGJehqG/X1UE/mt7L5835K //$enS = //hex2bin("1f032967f6142d528d1c5d88b129bd502b6d96cd7775278f38861378f771bad95246eeab3dac2cba72453654b03cc04f"); //"udAXfqVMVCsvmtcGJLnrOb5DbMfr+dcYjdzvepdep0ZGJehqG/X1UE/mt7L5835K"; //"1f032967f6142d528d1c5d88b129bd502b6d96cd7775278f38861378f771bad95246eeab3dac2cba72453654b03cc04f"; $decrptKeyData=openssl_decrypt($enS,$method,$decrptKey,$opt,$iv); echo "\r\ndecrypted string: ".$decrptKeyData;
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "OPENSSL_RAW_DATA" in /in/PYPg5N:7 Stack trace: #0 {main} thrown in /in/PYPg5N on line 7
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
165.01 ms | 405 KiB | 5 Q