3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $signature = 'RkSUjBUXTUbJHQMfaAcyvtn7XHckLC95e5nAssCpEo0L3HMEr1zO55Rqw5mVjOSgPT47UY7WIsU8FTYjX8gDvj6/y9Rk/XY3eLgFi5uB4WxOxxRAkWjsVKGrsHpxeC/5LWRVvdVMqE6BPOk1tkQPsx8XKoGv6lJ85TDqYVNzIdI='; $base_string = 'POST&http%3A%2F%2Flocalhost%2Fapi%2FC04_0124_MyPage&oauth_consumer_key%3Ddmm%26oauth_nonce%3D78fc6f932a884deab41a5ccce699e969%26oauth_signature_method%3DRSA-SHA1%26oauth_timestamp%3D1407993356%26oauth_token%3D%26oauth_version%3D1.0%26opensocial_app_id%3D757957%26opensocial_app_url%3Dhttp%253A%252F%252F203.189.106.179%252Fgadget%252Fgadget.xml%26opensocial_owner_id%3D9498293%26opensocial_viewer_id%3D9498293%26params%3D%257B%2522userId%2522%253A10000000%252C%2522callback%2522%253A%2522C04_0124_MyPage%2522%252C%2522screenId%2522%253A201%252C%2522authNumber%2522%253A350%252C%2522dmmId%2522%253A%25229498293%2522%252C%2522ajax%2522%253A1%257D%26xoauth_public_key%3Dhttp%253A%252F%252Fsbx-osapi.dmm.com%252Fsbx_public_0609.crt%26xoauth_signature_publickey%3Dhttp%253A%252F%252Fsbx-osapi.dmm.com%252Fsbx_public_0609.crt'; $decoded_sig = base64_decode($signature); $cert = <<< KEY -----BEGIN CERTIFICATE----- MIICSDCCAbGgAwIBAgIJAKg+AYPRh+PwMA0GCSqGSIb3DQEBBQUAMBwxGjAYBgNV BAMTEXNieC1vc2FwaS5kbW0uY29tMB4XDTE0MDUyNjA2MDMzNVoXDTE2MDUyNTA2 MDMzNVowHDEaMBgGA1UEAxMRc2J4LW9zYXBpLmRtbS5jb20wgZ8wDQYJKoZIhvcN AQEBBQADgY0AMIGJAoGBALsyakVQNLlxDwBjVceptWV9w5Wr1O6xRAULup5DYPYH tUsI0JSHfwdf2tntytQD6+aCyrIzmuWu+3HWKg1xUhrVo3CZPrbE0xbD+LE98iU6 1UodhfybLA6lE9U1V6d56RdzKbvLDZVLXuOFapvR23dIZCyitn2wVxz/GrTPnZmX AgMBAAGjgZEwgY4wHQYDVR0OBBYEFKyetHp/t0xTh8a3pkec+d1LhQvDMEwGA1Ud IwRFMEOAFKyetHp/t0xTh8a3pkec+d1LhQvDoSCkHjAcMRowGAYDVQQDExFzYngt b3NhcGkuZG1tLmNvbYIJAKg+AYPRh+PwMAwGA1UdEwQFMAMBAf8wEQYJYIZIAYb4 QgEBBAQDAgEGMA0GCSqGSIb3DQEBBQUAA4GBAHrutDRA07fAWChR7w0vFV+AANhX jMWSTc0u6Gq4EQ780UUCtghOUa4LuhOnw5M5+oJnOfYBX8PMn72eUB7PgjcNbaU4 UGl7yAzVOFvWk01RbnIDtBkKLb0dsd50eDv+aeS9RDUjn/VMfIARQhEIp8cyx+eU gqVvdmhdjW/fFlzZ -----END CERTIFICATE----- KEY; $publickeyid = openssl_get_publickey($cert); $ok = openssl_verify($base_string, $decoded_sig, $publickeyid); openssl_free_key($publickeyid); print_r($ok);
based on glTji
Output for 5.4.34 - 7.1.0
0
Output for 5.0.0 - 5.1.1, 5.1.3 - 5.4.32
Fatal error: Call to undefined function openssl_get_publickey() in /in/hNDmQ on line 27
Process exited with code 255.
Output for 5.1.2
Fatal error: Call to undefined function openssl_get_publickey() in /in/hNDmQ on line 28
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: openssl_get_publickey() in /in/hNDmQ on line 27
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: openssl_get_publickey() in /in/hNDmQ on line 27
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: openssl_get_publickey() in /in/hNDmQ on line 28
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: openssl_get_publickey() in /in/hNDmQ on line 27