3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php session_start(); echo "session id: " . session_id(); session_destroy(); echo "\ndestroyed session id: " . session_id();
Output for 7.2.0
session id: 5795353de8d96fee65d2802adf6bce4e destroyed session id:
Output for 7.1.10
session id: dfeda64b87323c79a4fb90f43cbce65b destroyed session id:
Output for 7.1.7
session id: 5f4a7f0fe6fa184814a1c5ba95debd9d destroyed session id:
Output for 7.1.6
session id: 5de9624630d60eac58e3741808db66da destroyed session id:
Output for 7.1.5
session id: c68418c5a4c16c21d5b32f473c523d9e destroyed session id:
Output for 7.1.0
session id: 004b23e4329968fdb7303ef23d11eb5d destroyed session id:
Output for 7.0.20
session id: 012f40664d5d445c81e77ea538616d30 destroyed session id:
Output for 7.0.6
session id: e24d5984467782cd2555f7c68e9e58e6 destroyed session id:
Output for 7.0.5
session id: adfb1b8e456bc44ee9ee3ef21d7264df destroyed session id:
Output for 7.0.4
session id: 63c7d12df9a2745b3b697c0d18617d6a destroyed session id:
Output for 7.0.3
session id: 72537d61a37dc2f59e9ddc60094cb988 destroyed session id:
Output for 7.0.2
session id: 9e426baad956a5f75543730ebb0f3985 destroyed session id:
Output for 7.0.1
session id: 0394e517fa792b807e2ca34fdc03fbd8 destroyed session id:
Output for 7.0.0
session id: d424b15447f9e80d37cf5c0f3ae0fb86 destroyed session id:
Output for 5.6.28
session id: 236b4cb50c85e043a61771b6cefad8ce destroyed session id:
Output for 5.6.21
session id: 243e06328c67e4f4555f2f5bc72afcd0 destroyed session id:
Output for 5.6.20
session id: e3cff061c7f72544c36c1a41307b4cc2 destroyed session id:
Output for 5.6.19
session id: f2792ca008f2d1a0bcfd9e79fc45bd80 destroyed session id:
Output for 5.6.18
session id: ff39bd949853f5f5b434d72c1baa0eac destroyed session id:
Output for 5.6.17
session id: 668c9ee084798c87bc6e6bbc0242ebf7 destroyed session id:
Output for 5.6.16
session id: eb51f4da4d0a25daea5c3e137e1c281f destroyed session id:
Output for 5.6.15
session id: 69be4433fe3d9a4cd776fcc29f865cb8 destroyed session id:
Output for 5.6.14
session id: f7dcbad38fcfb89e2948e3feba308cf2 destroyed session id:
Output for 5.6.13
session id: 30d5cdb43754f699e8134308a084b251 destroyed session id:
Output for 5.6.12
session id: b6b63725b98899bbd0349c667d393335 destroyed session id:
Output for 5.6.11
session id: b6c1ba1a1977bca6ebdb989a1c629763 destroyed session id:
Output for 5.6.10
session id: 10959435c0b60f58d938c1601b5dca0c destroyed session id:
Output for 5.6.9
session id: 4c393af8640d52edaaec79b9e44c2d54 destroyed session id:
Output for 5.6.8
session id: 84c9b5a0063841435639f656ce0baf57 destroyed session id:
Output for 5.5.35
session id: 859bd0105336bcb0fca3aeee77143241 destroyed session id:
Output for 5.5.34
session id: b1b739372d6e608e848bce82c6ef16ca destroyed session id:
Output for 5.5.33
session id: b906ab3190ffb436b0cb99a755300bcd destroyed session id:
Output for 5.5.32
session id: 2925e6fbc3cb22ffcf2416fe4b04144f destroyed session id:
Output for 5.5.31
session id: 7a1a003645d8df44a2dc0ad32fa6d8df destroyed session id:
Output for 5.5.30
session id: c025a29b85cc1adf776bcbe2250c645f destroyed session id:
Output for 5.5.29
session id: 7724e01961c983fa38f54773cde9085e destroyed session id:
Output for 5.5.28
session id: 23cd9511fdbfa6f38028fd5cad490892 destroyed session id:
Output for 5.5.27
session id: 355a514eac9f275a0f6dd90cc1aaa265 destroyed session id:
Output for 5.5.26
session id: 91ffd1079b5c95a29c8f21312bc30205 destroyed session id:
Output for 5.5.25
session id: 17a6d94f71096ff9c97b414c63002314 destroyed session id:
Output for 5.5.24
session id: 9fa4272ea18e80c514b12f81c47d9d51 destroyed session id:
Output for 5.4.45
session id: b53dad8f51f2731328581ba86e84dbae destroyed session id:
Output for 5.4.44
session id: a731d073352beb99b7133227751f22d0 destroyed session id:
Output for 5.4.43
session id: 0b37a9cc8caac3decdee783e40f62631 destroyed session id:
Output for 5.4.42
session id: 25d022f6715f843f048b142a0f5ede99 destroyed session id:
Output for 5.4.41
session id: 7970f950f7bd80aeeb08fb9045e2ac82 destroyed session id:
Output for 5.4.40
session id: a9eea2663957137fd973f6b446aa2bac destroyed session id:
Output for 5.4.39
session id: 40839b42b1610936cb5e3d5469d9755b destroyed session id:
Output for 5.4.38
session id: 16cc129562c54a968d4d7e88579b905b destroyed session id:
Output for 5.4.37
session id: ee07b0e81395b343f52fc1672f1ecb3e destroyed session id:
Output for 5.4.36
session id: 0e77aebf5cf07786de8429737a4de7ee destroyed session id:
Output for 5.4.35
session id: 74390933e48d1e8d21159fb142049f8e destroyed session id:
Output for 5.4.34
session id: 0fdbe927e0bdaf28ffba44b704556731 destroyed session id:
Output for 5.4.32
session id: 6ad4966d5056c2f24b246db1d2b6f47f destroyed session id:
Output for 5.4.31
session id: 603ce24cd45ca07a003908bb3133fa8c destroyed session id:
Output for 5.4.30
session id: b07d99f2b3164fc77781abf3a480253b destroyed session id:
Output for 5.4.29
session id: 2de5c31ea3c8b38b539ae00fd90366a3 destroyed session id:
Output for 5.4.28
session id: af402302dbac25bab8fa2b4002a01536 destroyed session id:
Output for 5.4.27
session id: d6ff83c8df6b99057f635f859e5c536b destroyed session id:
Output for 5.4.26
session id: 0c5b66a3d4b597d8b7327054d2855205 destroyed session id:
Output for 5.4.25
session id: bd9d8b8a50b10754f89bf2d0eb4399c2 destroyed session id:
Output for 5.4.24
session id: 97236dc2d7549de216b89b6803643b7a destroyed session id:
Output for 5.4.23
session id: 9a98a3253c7bff2c65f715c3e33f3565 destroyed session id:
Output for 5.4.22
session id: 36c043c52288c65015ae5f51c0cdc4ca destroyed session id:
Output for 5.4.21
session id: 08ddc9fb193ce81c144396353777fc66 destroyed session id:
Output for 5.4.20
session id: 26f1743ed0ae4c8c1a0412e3efefaada destroyed session id:
Output for 5.4.19
session id: 4a86b675e3f61e19ba1b9ec990244e9c destroyed session id:
Output for 5.4.18
session id: 8fde89a30f10005e33c7765f8a7d412d destroyed session id:
Output for 5.4.17
session id: e203ded5651598d467ef1ba1b8de212a destroyed session id:
Output for 5.4.16
session id: 6e5994835890b4c42c75cb99793f108c destroyed session id:
Output for 5.4.15
session id: e1c30c5dc8204eee5134c7f1d029b88b destroyed session id:
Output for 5.4.14
session id: 8940bdb88c4541204f322b364172e3fd destroyed session id:
Output for 5.4.13
session id: c772b920c04b82907979ba218fec4a00 destroyed session id:
Output for 5.4.12
session id: 9d387f82cd00953d750b4fdb4ac2482c destroyed session id:
Output for 5.4.11
session id: 10746ea385e52a1971f63048750cd35d destroyed session id:
Output for 5.4.10
session id: 39730d57d25265dcebc44b74f3ad01c6 destroyed session id:
Output for 5.3.29
session id: 5324d278c485f6247e91b0394f18a43c destroyed session id:
Output for 5.3.28
session id: 95ade624a5823de46a8ba90961386c37 destroyed session id:
Output for 5.3.27
session id: e04e53aeebb17a33f9afbabaa26942e1 destroyed session id:
Output for 5.3.26
session id: ca7209af945b49ff9a93480008befab6 destroyed session id:
Output for 5.3.25
session id: c778b1e9d12835fc5dee0839af560bb2 destroyed session id:
Output for 5.3.24
session id: 02f22210149e810eacf5b35e03d3c9c8 destroyed session id:
Output for 5.3.23
session id: db5f84ad0b74e424a9e244f399838b5f destroyed session id:
Output for 5.3.22
session id: 4a90a1de5c37a1c8f455d7bd8767a755 destroyed session id:
Output for 5.3.21
session id: 81d50c045e1bff887676be60c15e36ea destroyed session id:
Output for 5.3.20
session id: a1e633b9fc05604f468e2d72dd635aa5 destroyed session id: