3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ecdsaString = '302e3630393738313034363635303330384f4b33373230383232313030393230313530393237333939643362303232356639306232393762633862626632323739653236343262626131636138663635623262316461653666303336316232326266313661373939'; $ecdsa = '3046022100a69b73db0e5db719df70eabb347aeb4cf997f636b7fa51e20285a6d7c67618fa02210097ba101dc093a1783752498f3189cf874535f79e32c0caa9b8d41b71f24c28e2'; $pubkey = '2d2d2d2d2d424547494e205055424c4943204b45592d2d2d2d2d0a4d466b77457759484b6f5a497a6a3043415159494b6f5a497a6a30444151634451674145617136646a797a6b70486458376b743844735374364975536f586a700a57566c4c666e5a506f4c61474b632f3242536659517546494f32686667756551494e4a4e335a64756a595866554a3757686f2b586b634a7148513d3d0a2d2d2d2d2d454e44205055424c4943204b45592d2d2d2d2d0a'; echo openssl_verify(hex2bin($ecdsaString), hex2bin($this->ecdsa), hex2bin($key), OPENSSL_ALGO_SHA256);
Output for 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Call to undefined function openssl_verify() in /in/WBbm2:9 Stack trace: #0 {main} thrown in /in/WBbm2 on line 9
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 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.4.45, 5.5.24 - 5.5.35, 5.6.8 - 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.4.2 - 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.

preferences:
164.1 ms | 401 KiB | 222 Q