3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ecdsaString = '302e3630393738313034363635303330384f4b33373230383232313030393230313530393237333939643362303232356639306232393762633862626632323739653236343262626131636138663635623262316461653666303336316232326266313661373939'; $ecdsa = '3046022100a69b73db0e5db719df70eabb347aeb4cf997f636b7fa51e20285a6d7c67618fa02210097ba101dc093a1783752498f3189cf874535f79e32c0caa9b8d41b71f24c28e2'; $pubkey = '2d2d2d2d2d424547494e205055424c4943204b45592d2d2d2d2d0a4d466b77457759484b6f5a497a6a3043415159494b6f5a497a6a30444151634451674145617136646a797a6b70486458376b743844735374364975536f586a700a57566c4c666e5a506f4c61474b632f3242536659517546494f32686667756551494e4a4e335a64756a595866554a3757686f2b586b634a7148513d3d0a2d2d2d2d2d454e44205055424c4943204b45592d2d2d2d2d0a'; echo openssl_verify(hex2bin($ecdsaString), hex2bin($this->ecdsa), hex2bin($key), OPENSSL_ALGO_SHA256);
based on DoGFt
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Using $this when not in object context in /in/WBbm2:9 Stack trace: #0 {main} thrown in /in/WBbm2 on line 9
Process exited with code 255.
Output for 5.4.15 - 5.4.19, 5.4.21 - 5.6.28
Fatal error: Using $this when not in object context in /in/WBbm2 on line 9
Process exited with code 255.
Output for 5.3.17 - 5.4.14, 5.4.20
Fatal error: Call to undefined function openssl_verify() in /in/WBbm2 on line 9
Process exited with code 255.