3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo extends SessionHandler implements SessionHandlerInterface { public function __construct() { if (empty($_COOKIE['PHPSESSID']) OR is_array($_COOKIE['PHPSESSID']) OR $_COOKIE['PHPSESSID'] !== 'foobarbazqux') { unset($_COOKIE['PHPSESSID']); } } } $foo = new Foo(); ini_set('session.use_strict_mode', 1); session_set_save_handler($foo, false); session_start(); var_dump(session_id());
based on FvsvC
Output for 7.3.0rc3
string(32) "ffe4c7e5ef6077d46711910a3600a7b9"
Output for 7.3.0beta1
string(32) "ec0fccba161eaffa25eb854d96229197"
Output for 7.3.0alpha1
string(32) "452eb07a79d7727cbafae95447dceaed"
Output for 7.2.6
string(32) "31f7ded5a05b2b180c757f8d73dc5b77"
Output for 7.2.0
string(32) "19bfe85a10ed40e96823a2d87da99d8f"
Output for 7.1.20
string(32) "e0034116de7fc8f1150ff5f84ca687de"
Output for 7.1.7
string(32) "e5d96b8e550d87319c4ed8779d545a98"
Output for 7.1.6
string(32) "c0b15bafdb16771a85e42baa514da3d2"
Output for 7.1.5
string(32) "babe517105ee649038b79265fb6ce114"
Output for 7.1.3
string(32) "ff96f8beb09834c7218b147f14b72783"
Output for 7.1.2
string(32) "f53526266a4f458ef606eb73b3b1b044"
Output for 7.1.1
string(32) "0467c68d505e8c1afc393887181f8668"
Output for 7.1.0
string(32) "37bea81204ead223214e3cb501c0d2f8"
Output for 7.0.20
string(32) "0b071e195f425a6e34dc6ef13d336a33"
Output for 7.0.17
string(32) "4673213af8f02e0b862fd6d3c2dca141"
Output for 7.0.16
string(32) "9b5b0b148c05fa60380bf9c7359d2a1f"
Output for 7.0.15
string(32) "19add114ad3c1c490fd7bf4be707c1cc"
Output for 7.0.14
string(32) "e41ce8eb7090ec2c0c496cb9643f909c"
Output for 7.0.13
string(32) "318355e37df22ee94d465f3d85719112"
Output for 7.0.12
string(32) "dadd793f820487d6e3da822bd9c4fe65"
Output for 7.0.11
string(32) "ef607357340b8d3da42c93b811c3ed1a"
Output for 7.0.10
string(32) "52c16b0665dd25ae25cd238c0fdcf4ea"
Output for 7.0.9
string(32) "ee4f8b53b0d856eab7d8314c2c07e9b1"
Output for 7.0.8
string(32) "6e7d76748502d435bb1d22f6667faac1"
Output for 7.0.7
string(32) "d22c6326b12b1596261045914cda2690"
Output for 7.0.6
string(32) "520b915c12c2316f5605fc3e7b27a7c8"
Output for 7.0.5
string(32) "865c6be9d1f26be6fdfbb24e93933ceb"
Output for 7.0.4
string(32) "d01ac86859b4d464e87982fea6444938"
Output for 7.0.3
string(32) "10ce4a9a1093e05524a978e3808d2a53"
Output for 7.0.2
string(32) "72895d1451273afd3cb94acabcbe2ab1"
Output for 7.0.1
string(32) "d7cece70e14dd1faa439c753ded3d39e"
Output for 7.0.0
string(32) "7c02deb2aa38d440ad6322e8b482bdea"
Output for hhvm-3.17.3
string(32) "79b646b3548d7ce766ffaa9c24cf610b"
Output for hhvm-3.15.4
string(32) "2810a80e09937245112390ccc81d7ddb"
Output for hhvm-3.12.14
string(32) "580a726b1d4515a562f2aca466142673"
Output for 5.6.30
string(32) "1133ad3e93e38cd1c61ca99facf0bc91"
Output for 5.6.29
string(32) "ceb74ce56553bc8120590fd89e16c3c7"
Output for 5.6.28
string(32) "2cdd348455433468b6e3c28713f13e76"
Output for 5.6.27
string(32) "fa8108734a4e8df9b0f1c294110b6336"
Output for 5.6.26
string(32) "ceea389408976afbad7632c8e8397bb1"
Output for 5.6.25
string(32) "a5b7e9356b362f8ba055f33abd592851"
Output for 5.6.24
string(32) "3b73bf3f8c635c3c1216d152020c9883"
Output for 5.6.23
string(32) "ff17cc2d21419393b2bef83e2a0b7600"
Output for 5.6.22
string(32) "c8eefac8d9d1ecb294031bc27c4b8ac9"
Output for 5.6.21
string(32) "432b7b5d032b80c4d9bf17dcc05c33f9"
Output for 5.6.20
string(32) "b2dbefb35f64a5850f85a8aea4830240"
Output for 5.6.19
string(32) "5a8ccf7f0e01f52c49702d7acee8f0a5"
Output for 5.6.18
string(32) "893c8a89df4addb5845b83a2c19ca434"
Output for 5.6.17
string(32) "4dc270f5b809b8d1cd2fc268588a527d"
Output for 5.6.16
string(32) "c3744249b994b8c13918fe52197eae10"
Output for 5.6.15
string(32) "24c744915ca9e835367ee9f16b99ddaa"
Output for 5.6.14
string(32) "08e2475d1676c7c9180c11a511c429be"
Output for 5.6.13
string(32) "0d4a9eca5a270f8c3ba92146f908b7cb"
Output for 5.6.12
string(32) "bdc83db3c833bef14f9eb99208c72efa"
Output for 5.6.11
string(32) "faeef890b90f84adc9d0c271e0961c75"
Output for 5.6.10
string(32) "7f03d74c6cd641cff1f72fd9120132cf"
Output for 5.6.9
string(32) "6f87362a9b925643f2bb50efc0ec7655"
Output for 5.6.8
string(32) "6422aa4732c85f04fed9bfad47b1f747"
Output for 5.6.7
string(32) "5b8e514ea2ee38883af092e51d80852e"
Output for 5.6.6
string(32) "fd8ceae28fa9be95c2467dd2c50dd356"
Output for 5.6.5
string(32) "24ace2c20240f64089e826f0bf0fb31c"
Output for 5.6.4
string(32) "c2e9a04cb40ff6680d5748f600126a9a"
Output for 5.6.3
string(32) "d607e75b22524caa7a5fccd06fefd2eb"
Output for 5.6.2
string(32) "d96cdfb95b99bf13f79014c2b40f6c05"
Output for 5.6.1
string(32) "90e3e3dc193b97ef1e6548b3b1fd4a17"
Output for 5.6.0
string(32) "d0f4fa05827971ae02458c68b3589913"