3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo bin2hex(random_bytes(5));
Output for 8.3.1
8e492788da
Output for 8.3.0
d7508f6a8a
Output for 8.2.14
73e9725ca3
Output for 8.2.13
517889cc5a
Output for 8.2.12
898d904ea0
Output for 8.2.11
26f0a4ead5
Output for 8.2.10
e82ddddf61
Output for 8.2.9
94efcd03d2
Output for 8.2.8
bf6868def2
Output for 8.2.7
9fc582814d
Output for 8.2.6
af1449fb1e
Output for 8.2.5
53fa3c31d7
Output for 8.2.4
af67c87d44
Output for 8.2.3
6e6fd63f86
Output for 8.2.2
03917f471c
Output for 8.2.1
217a207e02
Output for 8.2.0
03c6bc704c
Output for 8.1.27
7f99162351
Output for 8.1.26
0d6c385aff
Output for 8.1.25
a1d2e52cfa
Output for 8.1.24
bc73b2d77c
Output for 8.1.23
daa7478677
Output for 8.1.22
1e415843d6
Output for 8.1.21
7d1837d084
Output for 8.1.20
ad5e07eec0
Output for 8.1.19
9a6087bde1
Output for 8.1.18
d1237562c5
Output for 8.1.17
86b6652c6f
Output for 8.1.16
b468891e2e
Output for 8.1.15
2c740695d3
Output for 8.1.14
efb1d4e4fa
Output for 8.1.13
8e41484703
Output for 8.1.12
4a4829b07e
Output for 8.1.11
3e3729bcc3
Output for 8.1.10
65d9e3c4e7
Output for 8.1.9
ab3db73288
Output for 8.1.8
f7f5cbc33c
Output for 8.1.7
414683eb22
Output for 8.1.6
711a6bd7f3
Output for 8.1.5
4fbcf8ac6a
Output for 8.1.4
e2b30b4cf5
Output for 8.1.3
c46fe851a7
Output for 8.1.2
4e518f332b
Output for 8.1.1
5e817313fc
Output for 8.1.0
248948ceaa
Output for 8.0.30
7de979b048
Output for 8.0.29
688c0b378a
Output for 8.0.28
e4b32cfec4
Output for 8.0.27
7cdb075a39
Output for 8.0.26
bb106c7491
Output for 8.0.25
2ace6f1edb
Output for 8.0.24
6b57ab41bd
Output for 8.0.23
96644ee6fd
Output for 8.0.22
856278629f
Output for 8.0.21
7ea25d4064
Output for 8.0.20
81db4f4090
Output for 8.0.19
5034aebf33
Output for 8.0.18
65af652b46
Output for 8.0.17
ff9207125e
Output for 8.0.16
a0d6e1add3
Output for 8.0.15
89c7702848
Output for 8.0.14
f8e181d6d2
Output for 8.0.13
885c7a0ab7
Output for 8.0.12
636af0991a
Output for 8.0.11
bd70ae0bc3
Output for 8.0.10
a881b022ff
Output for 8.0.9
d6a44c7fdc
Output for 8.0.8
597383d0de
Output for 8.0.7
6c0a1e4cb2
Output for 8.0.6
1556f583c6
Output for 8.0.5
4db5bd4c3c
Output for 8.0.3
ea67479d72
Output for 8.0.2
1501f653f3
Output for 8.0.1
f83cbe5efa
Output for 8.0.0
768de6f165
Output for 7.4.33
226b9484cd
Output for 7.4.32
571f69fb9d
Output for 7.4.30
73338211c1
Output for 7.4.29
06cc1179f1
Output for 7.4.28
875b8d4c07
Output for 7.4.27
067f8b7ff0
Output for 7.4.26
c9922f8f02
Output for 7.4.25
57cc7a8d32
Output for 7.4.24
690f25a87d
Output for 7.4.23
626c734245
Output for 7.4.22
0d38ea4aad
Output for 7.4.21
0214404281
Output for 7.4.20
3995e9ec01
Output for 7.4.19
4e62dc69dc
Output for 7.4.18
fadbd15ee5
Output for 7.4.16
c548b9b66a
Output for 7.4.15
ff2ab26c1d
Output for 7.4.14
a33e2cdbb5
Output for 7.4.13
df010ecf6a
Output for 7.4.12
399b8061ba
Output for 7.4.11
7ad0e53473
Output for 7.4.10
9ea385c61b
Output for 7.4.9
36251924ef
Output for 7.4.8
b5b8a91b83
Output for 7.4.7
56f524f765
Output for 7.4.6
53f8c30cdc
Output for 7.4.5
2b98eea3c6
Output for 7.4.4
6ee65d3d8a
Output for 7.4.3
1dd1b59b2e
Output for 7.4.2
28b8fc3c00
Output for 7.4.1
b523f7d3e0
Output for 7.4.0
4f31805c60
Output for 7.3.33
528f6a2ce3
Output for 7.3.32
ac1f52d27b
Output for 7.3.31
c0bcde643b
Output for 7.3.30
949ca82f9f
Output for 7.3.29
fc15cbdc06
Output for 7.3.28
8a43f9d073
Output for 7.3.27
fa31e78357
Output for 7.3.26
905943533b
Output for 7.3.25
d8d819cc0f
Output for 7.3.24
c90c22b967
Output for 7.3.23
ccb40fef71
Output for 7.3.22
cf76832fa6
Output for 7.3.21
6b4f55701b
Output for 7.3.20
ceda9981cd
Output for 7.3.19
a6c8d8cd91
Output for 7.3.18
6d0de3e698
Output for 7.3.17
2479e7311f
Output for 7.3.16
69548a39b7
Output for 7.3.15
415288b360
Output for 7.3.14
e7d2b4115c
Output for 7.3.13
79d212ab4d
Output for 7.3.12
868c1b5814
Output for 7.3.11
c31b19d044
Output for 7.3.10
3a6e30d216
Output for 7.3.9
540e821901
Output for 7.3.8
be300e2fb3
Output for 7.3.7
6c7d287764
Output for 7.3.6
9ea184cc90
Output for 7.3.5
76975d3a38
Output for 7.3.4
a7f3eb04a5
Output for 7.3.3
61241c71a7
Output for 7.3.2
0140f4f9f4
Output for 7.3.1
4c909f5c78
Output for 7.3.0
a33b136f34
Output for 7.2.34
67c30d9ad1
Output for 7.2.33
f89441b251
Output for 7.2.32
c22c78a71a
Output for 7.2.31
aedfbe07c7
Output for 7.2.30
d0d373db45
Output for 7.2.29
f757394610
Output for 7.2.28
6bdf4c555b
Output for 7.2.27
a8c746047c
Output for 7.2.26
d5f0227c09
Output for 7.2.25
7ed651132b
Output for 7.2.24
ed0d9a3ccc
Output for 7.2.23
ee307677a6
Output for 7.2.22
abc4f6a394
Output for 7.2.21
b4ef1258e9
Output for 7.2.20
7aa83932c8
Output for 7.2.19
4368b276af
Output for 7.2.18
120cbe6be3
Output for 7.2.17
de2cec224e
Output for 7.2.16
ec7c4846df
Output for 7.2.15
423054012d
Output for 7.2.14
e14929ec11
Output for 7.2.13
29f8b1eda3
Output for 7.2.12
af603e90e1
Output for 7.2.11
3019ea9f2c
Output for 7.2.10
d983ca59ad
Output for 7.2.9
d3fc428f30
Output for 7.2.8
fa93fc4454
Output for 7.2.7
d769155d0a
Output for 7.2.6
1729d1f6c2
Output for 7.2.5
d468248c09
Output for 7.2.4
8ccefb382b
Output for 7.2.3
5b6a978c81
Output for 7.2.2
b3ca9df6ca
Output for 7.2.1
2f0bc8b554
Output for 7.2.0
9246680968
Output for 7.1.33
ecc6c1eec7
Output for 7.1.32
b3d80ba904
Output for 7.1.31
856e08827f
Output for 7.1.30
3421d9b509
Output for 7.1.29
a2b4cd45d9
Output for 7.1.28
992a75ef7b
Output for 7.1.27
7413627b68
Output for 7.1.26
94bb5201e4
Output for 7.1.25
f71f377a2e
Output for 7.1.24
da1fb04772
Output for 7.1.23
4d6e12f3c9
Output for 7.1.22
de3368b8eb
Output for 7.1.21
b91b2e28a8
Output for 7.1.20
36d59143e7
Output for 7.1.19
a2e810e615
Output for 7.1.18
c6f942d3c0
Output for 7.1.17
db264898c8
Output for 7.1.16
b9e60abadf
Output for 7.1.15
1102f36fec
Output for 7.1.14
c3e321ee4a
Output for 7.1.13
7fd7cbf28a
Output for 7.1.12
956907b6e2
Output for 7.1.11
835aeccb3b
Output for 7.1.10
5806f72c16
Output for 7.1.9
4dd691156f
Output for 7.1.8
89bb22dcf5
Output for 7.1.7
c54ab00c41
Output for 7.1.6
b78959bde5
Output for 7.1.5
cd39f6f229
Output for 7.1.4
ed98d7902a
Output for 7.1.3
a8559f9f23
Output for 7.1.2
134b2bc7bf
Output for 7.1.1
23d4ccf825
Output for 7.1.0
2585dedb40
Output for 7.0.33
a8391259c1
Output for 7.0.32
69ef436202
Output for 7.0.31
f892434e3d
Output for 7.0.30
95cf738207
Output for 7.0.29
02f20fb8bd
Output for 7.0.28
adf0db52af
Output for 7.0.27
c9495daba3
Output for 7.0.26
29207953da
Output for 7.0.25
d4dbd89273
Output for 7.0.24
33b4b71210
Output for 7.0.23
967c10668a
Output for 7.0.22
e149f99f7f
Output for 7.0.21
63b017ecbe
Output for 7.0.20
b13215d9a5
Output for 7.0.19
de546b9e88
Output for 7.0.18
f56b491cc6
Output for 7.0.17
4c07d94879
Output for 7.0.16
f83e61fa37
Output for 7.0.15
598cdeb773
Output for 7.0.14
46d9018b81
Output for 7.0.13
eee7b55b90
Output for 7.0.12
9cde7502ff
Output for 7.0.11
fbac2bfafa
Output for 7.0.10
47b295136c
Output for 7.0.9
0fee839979
Output for 7.0.8
c99bbee667
Output for 7.0.7
c79da17ea5
Output for 7.0.6
4fa2ef9ff5
Output for 7.0.5
05009773b3
Output for 7.0.4
d9514bf22f
Output for 7.0.3
57eb356a78
Output for 7.0.2
6c9002fc05
Output for 7.0.1
6fef88c93b
Output for 7.0.0
38a5381dbb
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Call to undefined function random_bytes() in /in/KBRR2 on line 2
Process exited with code 255.

preferences:
255.18 ms | 402 KiB | 375 Q