3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $key = <<<'EOT' {\n "private_key_id": "779b858b0beed540f221189d241179dc32f6e8db",\n "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCfiWtt5JH0u2lr\nWi/1yVHf8n+C2ei6KSPudB3qBeI2bVxbHwg0Uhe/O905YqnNvepFIunDxwqUitee\n/wMi+S886FBkNIF1W7Ol46D/qqVPwbASy4SVV2A4pung4kxYuM+u4QZPooBfLz+1\nacNI+ZjD6rlemxeBsdlNsrSUD1Zr1c7mbS6c1HgvNXeI11WIT650elN6muY3Mqvc\n4tVNEow/NqiDlXtLBZPhbbwolOWcy9V1iGRprz0zpB3svO4IU9pLkqWedxReF4HP\nAqbZAw6REsiZObVzYW34gkBh4pggfO4kERS754oWnwSkEomKOLm8yX+8IdsJeJKl\n/B1L4wp/AgMBAAECggEAaDcBiXDlc2Q1kh4A9GMFa/BiIV0trOYRBcSugeBEDF/W\nE+QqnNr/jjmR4tmzqKWl8nHDGNPd8njcL43QQ7lZhUUQttShuMMlkHkpA7o6cOZK\nmYx+2HuSbI+EehX5338ik8+FKuIxT3xy9pPXMMVzaI/ddZKEgYFnPV0+nvWB88BY\nWXNbAYTu9RwYl16XTh+TJlWNFl6AwqwPxlrJLQ5xuTUfSkKUB9pClW3H8jDfU4lX\n/VvxcxPzAofcedn+vs13AyN3Xvm/Ku3E2MdIWyukRu7GA2S5DgF+ekwzGil0icKh\nMq/0y5noLuWvhhk2FGcLUa6jugZ1MVv1mMt/URejwQKBgQDQHOouIj7dSaBozQpu\nSxlRuQkr5fM3Q+zZIJS3frN7lsJ7W86izk4OJ6KuEitDSiKAUgup2m7GFMHvT7V9\nKe/LH3HA2dxRvi+lHLrUK45svwuL9hST3nSF/6u1hLsC1+BPIofX5kGzxbWVPCbY\ntKrU4ewgxPb/TWI8FuFV5xzyYQKBgQDEPxTveqaJdBwbQ7CLDPlopoI01pu9s4qZ\nj3vAOUGM3CZdWBUGAKu3N1kn9MoaRlCw9zzAl9GFp5NtrwsVwZK1ZPs2SBZIld21\ntHx/enEycZkhtBHCkJY4cWwNYdeoyEp3HPDBrYZ7BKDyJJobkD97nlsNJXMicM0P\n8HqIRITo3wKBgBwp3ZMytTkzLo8gOGompZ2GofQb4Wc4PQRBQX73mYh/JYCWMweb\nTbriqERQVyR7EuI0uDlbQyRxSLF/Ivt2QmpFrhpAIW26hC4fDjWKU3LqA8EEI1LD\nhxdfOziMZtaCqmtrK+EO2xNeDS3N/x/Si0/V5yOkJBz2tvWUzxfV9/fhAoGANtxv\nrNb70Xc9GD4fD3BMFP5fbggEt86GU5FyBfW7pnYw321tSyVK28hES1A6Y4f+rMoh\nGLIYZ6XGKCaEEcvwiHc3ZyBV4mrK9S4Ek9qV5IUvSuW9BUhIRnUmwML2d/+uGYhk\nobAx5RgRKkAjOMtlg9hsGcu7WQhxux/+ETQed78CgYBMcjaxrEwU5OzL5O86ro+j\n8sNmIV64DvPBgPlzJ2HlJnVRhgfqOT2NxdxNAGwKraDMgbnNHkUSyO6hpYu2Zz+v\n0bTw/uILZT3ALvqdMNq3CQmmYlbgnp2s0/HN6xJqZO2aHLbcasqYzIBHa/4IqjvR\nvcOTEj/p4bwcop9kRhq9Zg\u003d\u003d\n-----END PRIVATE KEY-----\n",\n "client_email": "1044278050784-n9lfcmjqbcqkjnd4b02g6e1q9825kpff@developer.gserviceaccount.com",\n "client_id": "1044278050784-n9lfcmjqbcqkjnd4b02g6e1q9825kpff.apps.googleusercontent.com",\n "type": "service_account"\n } EOT; $res = openssl_pkey_get_private($key); echo($res);
based on HusQK
Output for 7.1.20, 7.2.6
Fatal error: Uncaught Error: Call to undefined function openssl_pkey_get_private() in /in/NYu3s:13 Stack trace: #0 {main} thrown in /in/NYu3s on line 13
Process exited with code 255.
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.10, 7.2.0