3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_replace('/[^a-zA-Z0-9]/', '', base64_encode(openssl_random_pseudo_bytes(4))));
Output for 7.2.0
string(6) "aymbRA"
Output for 7.1.7
string(5) "3eKWg"
Output for 7.1.6
string(6) "OZOsJQ"
Output for 7.1.5
string(6) "rnChYQ"
Output for 7.1.0
string(5) "VlfAA"
Output for 7.0.20
string(6) "jmWSXQ"
Output for 7.0.14
string(6) "KBlQIg"
Output for 7.0.12
string(6) "6TBxMA"
Output for 7.0.6
string(6) "F2pr3Q"
Output for 7.0.5
string(5) "K9izw"
Output for 7.0.4
string(6) "8rQ3pg"
Output for 7.0.3
string(6) "njndYw"
Output for 7.0.2
string(6) "PZ77MA"
Output for 7.0.1
string(6) "9k9pcQ"
Output for 7.0.0
string(6) "16gt9g"
Output for 5.6.28
string(6) "8R64VQ"
Output for 5.6.21
string(6) "vnuyPg"
Output for 5.6.20
string(6) "M5OtHA"
Output for 5.6.19
string(6) "C8ZWmA"
Output for 5.6.18
string(6) "A39AAg"
Output for 5.6.17
string(6) "FiAZBw"
Output for 5.6.16
string(6) "2Ce8hQ"
Output for 5.6.15
string(6) "NXsc5g"
Output for 5.6.14
string(5) "Uo3Xg"
Output for 5.6.13
string(6) "y8v03g"
Output for 5.6.12
string(5) "MFZ3g"
Output for 5.6.11
string(6) "MML6RA"
Output for 5.6.10
string(6) "TA6UdQ"
Output for 5.6.9
string(6) "5Xv2gw"
Output for 5.6.8
string(6) "iu5m4g"
Output for 5.6.7
string(6) "n9Kvrw"
Output for 5.6.6
string(6) "JNOdCg"
Output for 5.6.5
string(6) "HjenIA"
Output for 5.6.4
string(6) "jaOlYA"
Output for 5.6.3
string(6) "OIYSmg"
Output for 5.6.2
string(6) "IWMzqw"
Output for 5.6.1
string(6) "5kTZdA"
Output for 5.6.0
string(6) "f51QUw"
Output for 5.5.35
string(6) "tqesxw"
Output for 5.5.34
string(6) "hJzanQ"
Output for 5.5.33
string(6) "Xrtkhw"
Output for 5.5.32
string(5) "9je8w"
Output for 5.5.31
string(5) "sSXvg"
Output for 5.5.30
string(5) "3hnQA"
Output for 5.5.29
string(6) "TTyzLg"
Output for 5.5.28
string(6) "x0h1KA"
Output for 5.5.27
string(6) "IdY3ww"
Output for 5.5.26
string(6) "iY5v1Q"
Output for 5.5.25
string(5) "61OGA"
Output for 5.5.24
string(6) "YsOkfA"
Output for 5.5.23
string(6) "yejmOQ"
Output for 5.5.22
string(6) "HSabtg"
Output for 5.5.21
string(6) "wUYXtg"
Output for 5.5.20
string(5) "2KLJg"
Output for 5.5.19
string(6) "I4LeOA"
Output for 5.5.18
string(6) "36EDkw"
Output for 5.5.16
string(6) "9pj6yQ"
Output for 5.5.15
string(6) "hpXZiQ"
Output for 5.5.14
string(6) "ckq2Aw"
Output for 5.5.13
string(6) "snP3ng"
Output for 5.5.12
string(6) "1oj0AA"
Output for 5.5.11
string(6) "VUMwXA"
Output for 5.5.10
string(6) "FoR9Qw"
Output for 5.5.9
string(6) "yQ32Cg"
Output for 5.5.8
string(5) "KNfeQ"
Output for 5.5.7
string(6) "HsUQYQ"
Output for 5.5.6
string(6) "8RZ7kQ"
Output for 5.5.5
string(6) "GB3tuw"
Output for 5.5.4
string(6) "lquOqA"
Output for 5.5.3
string(6) "8cbkRw"
Output for 5.5.2
string(6) "UCAcQQ"
Output for 5.5.1
string(6) "f33yqQ"
Output for 5.5.0
string(6) "zNM70A"
Output for 5.4.45
string(6) "IDemOw"
Output for 5.4.44
string(6) "xOR5KA"
Output for 5.4.43
string(6) "kAY8eA"
Output for 5.4.42
string(6) "hJpntQ"
Output for 5.4.41
string(6) "j57tBw"
Output for 5.4.40
string(6) "bQx4XA"
Output for 5.4.39
string(6) "gT78Dg"
Output for 5.4.38
string(6) "YOqEMQ"
Output for 5.4.37
string(5) "T84KA"
Output for 5.4.36
string(6) "UwNlcg"
Output for 5.4.35
string(6) "EnXuig"
Output for 5.4.34
string(5) "MyftQ"
Output for 5.4.32
string(6) "SxyYIQ"
Output for 5.4.31
string(6) "C1MMYQ"
Output for 5.4.30
string(6) "NoZzaw"
Output for 5.4.29
string(6) "VT0aLg"
Output for 5.4.28
string(5) "ySIUQ"
Output for 5.4.27
string(6) "eF1OkA"
Output for 5.4.26
string(6) "hCR8dQ"
Output for 5.4.25
string(5) "gANTg"
Output for 5.4.24
string(6) "IAOPSQ"
Output for 5.4.23
string(6) "9CwZ1g"
Output for 5.4.22
string(6) "IYyJVg"
Output for 5.4.21
string(6) "4AtEhA"
Output for 5.4.20
string(6) "iy84CA"
Output for 5.4.19
string(6) "gbjMZQ"
Output for 5.4.18
string(5) "NkAdA"
Output for 5.4.17
string(6) "JAC6Ag"
Output for 5.4.16
string(6) "9F2hmA"
Output for 5.4.15
string(6) "Bcxkkg"
Output for 5.0.0 - 5.4.14
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/rjA8M on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/rjA8M on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/rjA8M on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/rjA8M on line 4