3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo implode('-', [ bin2hex(random_bytes(4)), bin2hex(random_bytes(4)), bin2hex(random_bytes(4)), bin2hex(random_bytes(4)) ]);
Output for 7.2.0
c1cb8311-1ce3354e-ab56d796-8a99dd06
Output for 7.1.10
bd3feb32-6a423644-f94e1470-129b8a51
Output for 7.1.7
607349ad-64948167-5bb68749-f02070d9
Output for 7.1.6
b06f1628-965cf1ee-e54c72c6-7249f4fb
Output for 7.1.5
1669a7d6-b8c91c12-d9454fcd-6db03627
Output for 7.1.0
8e734b19-6d60bc92-13ec2f21-a88683a0
Output for 7.0.20
85ec9d30-cf871380-11bb7d34-9e50108b
Output for 7.0.6
b00e240e-9005ade0-daeb4f18-7aa90c2c
Output for 7.0.5
61f8c076-130707ed-7d3cf8cd-e06d3974
Output for 7.0.4
26f36c0d-fafa487c-db6ab87f-da8814e5
Output for 7.0.3
2693c04f-cf289d4f-30a0093c-99f19944
Output for 7.0.2
4b6d7a09-db3bb0b2-387fb6a1-89debcf7
Output for 7.0.1
2e3400ee-224f5341-0c35b6b7-eaf4e349
Output for 7.0.0
f002bb48-b09529a1-38d0211c-5df0c7a8
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/9OZMn on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/9OZMn on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/9OZMn on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/9OZMn on line 3
Process exited with code 255.