3v4l.org

run code in 200+ PHP versions simultaneously
<?php define('FOO', bin2hex(random_bytes(32))); class Bar { const BAZ = FOO; } var_dump(Bar::BAZ);
Output for 7.4.2
string(64) "b7c9499a074d2fd3658cd0842a7f35778d90ebbc43afa339674fa822aa2caa2a"
Output for 7.4.1
string(64) "246b3bd48ed30dbb4534c3523de355556b08c9de933bf2e5bf45268dc8842704"
Output for 7.4.0
string(64) "61080d8e890c9f7807ce21ef58c742f5bed9e4d5bc02b36dca79a99137d72363"
Output for 7.3.14
string(64) "67f5e48d2dbbd6eae67b25144a02da09160b1dbe49823b9d1b2b22c678655409"
Output for 7.3.13
string(64) "dcbb6d3124c235dbb4bbbd0b7a38bc70fb7cc3d8446bfbad72e37cf81015e4b4"
Output for 7.3.12
string(64) "53d785b16ab74f08ba988a3753f2285894ad08d196c9ae89806782fe27179e0e"
Output for 7.3.11
string(64) "c121fae8884c9206bbcbcec741fd45bc611e9ed2e6c2ed1d4629ef7a236753f9"
Output for 7.3.10
string(64) "5a4d7e2a7cbc4bb2660363344ffda95623592ca51f74ad50cab8465aa6f63683"
Output for 7.3.9
string(64) "09d28a52962f1e7b35fb9cc7f4526603446930f36f988499395d08b0517c7bbf"
Output for 7.3.8
string(64) "b185f95411ca13b35d6ad0a48af7a444ab5335d8f6ba29c041065f48362751d0"
Output for 7.3.7
string(64) "5cd1c60f9464e46424e61274a3c219675510bf56fd04a96921b1cddde8ff3a59"
Output for 7.3.6
string(64) "bcb6df3672001260b351ec6f9d443f500a419aab9bda9bd02f150631bc91a935"
Output for 7.3.5
string(64) "9e092542a319db08429c32d5f29e7bc3b0520af97d817a958019ca02e446a774"
Output for 7.3.4
string(64) "71cc0614da0ec6cd710de1950e15f6dcb2eeee91e2a0a2d3c41326661a38a53d"
Output for 7.3.3
string(64) "c0bfcbaaf925ea585f8d276101d47615ec9bd325ab51ae07aa9d9038d55bd1c1"
Output for 7.3.2
string(64) "f089d8d7b5158e130942c28237834e400839961340d5bdeeff2cbf45a134df04"
Output for 7.3.1
string(64) "584759d9e0b2aefa6efd27472d1fc8c4d83f1a76b00f26c61bf2a7005a4c5de1"
Output for 7.3.0
string(64) "5d4aed6f85ce16ec6d6401ab6fcae4e01472f7942c4b1c0ab4bc9e91d19e0c9a"
Output for 7.2.27
string(64) "91a105bf89b92cb5b3fcc219acb2391992fb433ae7a83b2a2198957f9b9d3ec0"
Output for 7.2.26
string(64) "a08362b6942668b36a9f6ea03090a192c6e92418789e6a607cee70ebbc016516"
Output for 7.2.25
string(64) "20bdcb7b462eecf976ac095d22fbc66374a7df6305b117931d3b133d8fec106e"
Output for 7.2.24
string(64) "4269b447157c30dd351dcd7065ff5435b6b3fdb20e94b986b57e56cc64c6bf8e"
Output for 7.2.23
string(64) "92dfac470ff8fe6f48fcf5b23ab132b00348be38d15e54bf0d1f9b0ece96f975"
Output for 7.2.22
string(64) "057c1a4a03b7b520f2dd9819f2ec4b19ecb0dad1f73d128900580d6561797e20"
Output for 7.2.21
string(64) "72e3c335e99e4c9d117f039bcd64283d1f49e277cb7c871eef3b4a0394ae5cc3"
Output for 7.2.20
string(64) "50b686eb45cbf7a7e3932fa9ad0c1d28723e233f6a7c1dd422d2ad616a784de8"
Output for 7.2.19
string(64) "cdfceb7fa311af0cdc047d7eca995bda3e0dacd40b1dcf0c30e466ae738db459"
Output for 7.2.18
string(64) "2e534ce6edf49e063e30a2d9521404864ed88131d2df691470ce1a6be93daaa3"
Output for 7.2.17
string(64) "afeb05d8fa2a9aaa2252d884cc0b7d8fe7e53e2862a1aa04eadb993537155d5b"
Output for 7.2.16
string(64) "6bd03128a375d1960b774f912cd04c98a9d536e9ab2234477a5c1b46329f5763"
Output for 7.2.15
string(64) "afb12bff67a29eb84ad43631a43d5723f2107e550b13edd8e7c408f99892540b"
Output for 7.2.14
string(64) "a181a7365354f3ba1bf924b33986fe1e85f828afb53736d5594e27185dece831"
Output for 7.2.13
string(64) "9076a9ee1fdccbd3586686b46f38de5e6bf9cb40fcc8d8cc911650d2498a47d3"
Output for 7.2.12
string(64) "13d1d47524ff1459ea38b07df827c453e5b0333c1467c770acd5b082b18c1bc4"
Output for 7.2.11
string(64) "3bd6aa13dbfcf783e1bafbe75e3a21bb1c59f3142b1be51870b1d40350534542"
Output for 7.2.10
string(64) "ff535243238c8468e39f7f738d3a4f671145dc1b6832bf1679a5b41452001f79"
Output for 7.2.9
string(64) "e9c9690dd6a83f602698cabd502a97909b4e59021fb0a7a989b3f98ba9fc438f"
Output for 7.2.8
string(64) "4f08b762b8c9040c355be7a9179295dae1e1298294035e52235353869452aea5"
Output for 7.2.7
string(64) "44a2be0b8c57803da72e3e15a98834f4dda36378d87bfad20ce8947d126d76a1"
Output for 7.2.6
string(64) "ae3a420c5d98409d4ed95ba3eb4bb421ca2ce00e9a37b69e1cc0d4cec0e39815"
Output for 7.2.5
string(64) "6dcc3b9aa62009be77fcc4923d6aac01b5acb8fce01d3664a4ce28e8998ff437"
Output for 7.2.4
string(64) "9295a819d19215dca5567abd71b426e9e2fc12e64f8dc2304bde785ceebb83fa"
Output for 7.2.3
string(64) "f586e7edfc59887e8d87b802cca293d7bdfaaf9220ff7217aee7457dc4b0ffcd"
Output for 7.2.2
string(64) "b6751556cdf4fe0094fa86c8907b2fef10053e9c6ed0d4af004df00de265373e"
Output for 7.2.1
string(64) "69a6fd14f5d7f8e074bcaf3f9e6b4a622fc4dda6e2485920f02c060741cc86fb"
Output for 7.2.0
string(64) "a55dc90a0be6a81310f2997eaed24173f615edb0aeb1b512f2984f027a46f964"
Output for 7.1.33
string(64) "4f105bf2471fbc91b1fb6407cab0513680a2e04ac37990159d26fbe3a687c066"
Output for 7.1.32
string(64) "f321b20c084f6d39e05b5b6596bfb680c84f3002999552b6b2cae14c2700f39a"
Output for 7.1.31
string(64) "fde7a10796f3ca24f55b6061dfa5c8aa7f0a56dc1565563420008df6474423c8"
Output for 7.1.30
string(64) "61108570f49dcabc3d7b8f0f9689bb22f545812f50d6def3893fafeeb9c9c432"
Output for 7.1.29
string(64) "26f1090af2ed060ecc8ad4ac014c9ab5a7e5abcbc7a73420afcb3035656d6120"
Output for 7.1.28
string(64) "7629eef0d2d79543dcfbaa24b0743f70411ea408090d01685445f0066ccf740a"
Output for 7.1.27
string(64) "d24995516e9e4e805d82c385cdd87714a608b9dd9c2afef655604d65d3f09f23"
Output for 7.1.26
string(64) "235a8fddf0f1bd75078d18db656b3356278e2a9cbfcebcee9308209d3caa77f4"
Output for 7.1.25
string(64) "872c9906749dc6f63e1f9c8e2c65ef1b28637117ab78199ff29cc1ea0ce2af82"
Output for 7.1.24
string(64) "ecd1f3fa75747d7b812daaf8d55f552cee8dff617a8c81b1d2caa702e4a797c5"
Output for 7.1.23
string(64) "c159a4127982337f9c093d7abb3e8d122c3340631841f785dc969e0749754285"
Output for 7.1.22
string(64) "db57b5f15f4302c36ad851e105c63d0938b5e6e3c77b67c9735c4bfd54d81ae5"
Output for 7.1.21
string(64) "c9068bb2143db407d710b1b77f23129efd398f92997390b8529779e628467003"
Output for 7.1.20
string(64) "536baa00846b6ab6eafcd8c0fff9a35abd31ba8bab8640bf1de9554d1580648a"
Output for 7.1.19
string(64) "ffd56ca06789b48ff62fb1bff8f373c67f60458180a5eb3709588c875f04562a"
Output for 7.1.18
string(64) "49083770fa62749f7f29ddda23c0a4bb44865506640ba93ac04317eb9e6d8c8e"
Output for 7.1.17
string(64) "284391f49ee4b73378c3cc5c509df8b79a23f3e96b17c980d6c3ea7c76ea5fea"
Output for 7.1.16
string(64) "acd3b0c2fa1272e28b2a134b5cd2e6138e2634f328ee2620991b421c2eba4304"
Output for 7.1.15
string(64) "72d923a12070b2825b5c9946457ad9dcdca370170132b09a318b4ca157dde686"
Output for 7.1.14
string(64) "c56fa96ddf1b98ac20bd0aa4e57d82b8fff46bb6c06793cec2635ca2082910bb"
Output for 7.1.13
string(64) "89ea3f9c7b3da7047b55124b1e24f10c6cb1c8a60e075b86ff40e09dc12273ed"
Output for 7.1.12
string(64) "045c2183eb6a50d12e69355fc8e935ee60d97fb1026e03be64111911a9606aa3"
Output for 7.1.11
string(64) "7d90aec117a079e94cbb1fd09b0d49904f75f121439c96d9bbe44f51d008c989"
Output for 7.1.10
string(64) "62d99f701034e8e1fef3847cb352bd6df501e8678bc8b0373eca2ce79dab3fa8"
Output for 7.1.9
string(64) "ee41bf66d858f1c7305b994cc9cba7a4816650bbd83b668f60deee3359ed5f2b"
Output for 7.1.8
string(64) "a3aaa144b634aa7ba3d7931f1a83bf25b3660e1c7c2181afcca561ef47669525"
Output for 7.1.7
string(64) "f49be7973ae78b53a1aee7b4291c3a69b4bf4bf64bb2c9ea9e0015ce860bf34c"
Output for 7.1.6
string(64) "081dc55013501f99a765a263d40705e54e41a2be944fc9747152c883b0ed7db2"
Output for 7.1.5
string(64) "d1dbd0f172ed09a4777d08c0bfed178bbfbcf66bcc3a5f3d8cd2666b3d348e94"
Output for 7.1.4
string(64) "e8e935b454764d8e2b5972e25a45e60cf797acb15d114bfd313953de8e6f96be"
Output for 7.1.3
string(64) "ea8a71a7a4e47408f052bd79b5330b608dd04bca56061c0cf3bcb4e75917d806"
Output for 7.1.2
string(64) "55fe935f55735c0884b19971ee2611180e8bb36e5314c0604931055f75d1d839"
Output for 7.1.1
string(64) "79668d058ae1edab1092d2e71af9b65f0545f7c12e39aeb5e86db9b21fb43d3d"
Output for 7.1.0
string(64) "efb863671174b85fd8e9feee71b71f2bf88fd9bef7f2129d872318a4880d7381"
Output for 7.0.33
string(64) "28c5146aa32059cfb9ce955317736de11abc81cde97d267bf02dcfadb78dfdaf"
Output for 7.0.32
string(64) "f22cd126c54bc21f0bade57a678b4a9a5582eb6a9c13a8b011e2c69ac829a2a3"
Output for 7.0.31
string(64) "c3597aee08b83ef6f659b2bc2b26becbcfacded568bba854ae05fb008f7097a4"
Output for 7.0.30
string(64) "e598796c80a46edd2a9455d68a99fe652ac81712c920e4eea9bedda476702e4d"
Output for 7.0.29
string(64) "47f247cfd47cb01400acbcb4b6c83793d364c3e4ef06ec0243955a50f506561f"
Output for 7.0.28
string(64) "4b22286c0e0c0b8ebac50752193167dd95afda6da827ad47499fe0c843a20e09"
Output for 7.0.27
string(64) "a7cb81bf4eb871d2616bf1325570dc02ab10dfd5718da282999deb3a426eb395"
Output for 7.0.26
string(64) "5e0e5884c1c25e3ab7a6535203f2db58ebfa198fd13bd67e08fede44a42cfbf1"
Output for 7.0.25
string(64) "3e8f38b7c0f5fe68f42cd8bf000dcf61aec4ccff4c5b2afbfddf0b681d00b793"
Output for 7.0.24
string(64) "09129eb604d8532e2a7d9c6d9cb5f12404ee78e1ba48f1ec10cb54c6da376b2a"
Output for 7.0.23
string(64) "47f1bafd3e2f1fb1969bdd824ab8adfca0448e33db7d89d24d58af3ddfbb600c"
Output for 7.0.22
string(64) "8808b4b1648a3d688742fc93865ee216048366a2ce97bb40ae9713b57c55035f"
Output for 7.0.21
string(64) "c1e6b19ce2fc563e20f12e29d4d2b4885c6d8246f0f625d01cda65679658b393"
Output for 7.0.20
string(64) "6268be32d7eed7fe31e4c9081b72d7c78a56918b939c150cb7967e7b3c354685"
Output for 7.0.19
string(64) "38b4847851784fa00ccb1942afb2ff6f2351e0df2b2cf02962620501da1edaf2"
Output for 7.0.18
string(64) "b5aee3169ddb86534280de757558140e3888565ad0d1e42a63a2b2221f612286"
Output for 7.0.17
string(64) "f7ac3036ebe2bfc926f920e18714072de5345a716246294db68c7c19117a7aa0"
Output for 7.0.16
string(64) "def0c996fd9c4656190c1607fd3c2ea2a4c60acdd9ac8952b91a212756e2cda6"
Output for 7.0.15
string(64) "3742f7cd31eb54efb09ab69ef3cb0820a3d43ca1d499c016728b547a6055dddb"
Output for 7.0.14
string(64) "eaa815569fc723fefce4b433b269b2b065c9624916d9de5961cd26d7b478266f"
Output for 7.0.13
string(64) "849b4d26cc893b4733d2b61f15b605a4e0bf9f2e57d2d04b8cc44489dda5d0ad"
Output for 7.0.12
string(64) "a0c69f7c3783ea51766044d012c42526a85d515a44e4b2415626e2bb91934355"
Output for 7.0.11
string(64) "c28a47b7d28626ea7d1608b7bae4f71356571314094548391d288d520195a314"
Output for 7.0.10
string(64) "e7f8732272acf11b4f9742484a0773aed84de26f51f6965d91fa96fb9b6c49cc"
Output for 7.0.9
string(64) "835a7a14fc08490800e1759a3e3780e9a9ede1b725b434f78c25c519ee2ccfc7"
Output for 7.0.8
string(64) "4e1690e79409989c2a01737e0103543004166285bab728e2c959a2ebe1b13a13"
Output for 7.0.7
string(64) "12549e4c635bc0f415b24357ac6d2f10d77605d036b35a0b2f52c2776b256292"
Output for 7.0.6
string(64) "5c8dec3f65506862587aa48ef0d09362c28d1a48ffc85e9325606ba1723b9e7f"
Output for 7.0.5
string(64) "4b865f9ef192fd4f0371efd66b29e255afbfb8716e96ee899b497c4b3b32e488"
Output for 7.0.4
string(64) "f5b4ba0f4c121aaa5bccfd52509a98b95df7d532c9d62e6768f19ad3606260a1"
Output for 7.0.3
string(64) "6846001fad7a8cd60955e8df39fbc03f5ad6d733996338890ab2cce31d149d27"
Output for 7.0.2
string(64) "6af6db18de0b206b2b31a7475d9b35252c7ff3d78f9672b343345dbc95467c87"
Output for 7.0.1
string(64) "03f62b791e8ef211ca10cc296b71c150bd4fd8b859b831bda4d51e8ec027f868"
Output for 7.0.0
string(64) "e791e5f72ced4f098896a3d10dcdfe093cdefb3674439db8f22f1814093c4876"
Output for 5.0.0 - 5.6.40
Fatal error: Call to undefined function random_bytes() in /in/KJkmQ on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/KJkmQ on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/KJkmQ on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/KJkmQ on line 6
Process exited with code 255.