3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cryptoStrong = false; $wtf = openssl_random_pseudo_bytes ( 5 , $cryptoStrong ); var_dump($wtf, $cryptoStrong);
Output for 7.1.26 - 7.1.33, 7.2.17 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /in/2J2Fj:4 Stack trace: #0 {main} thrown in /in/2J2Fj on line 4
Process exited with code 255.
Output for 7.2.0
string(5) "��" bool(true)
Output for 7.1.7
string(5) "� �l" bool(true)
Output for 7.1.6
string(5) "�V>��" bool(true)
Output for 7.1.5
string(5) "&u��=" bool(true)
Output for 7.1.0
string(5) "=+��" bool(true)
Output for 7.0.20
string(5) "1��ہ" bool(true)
Output for 7.0.14
string(5) "'yb�" bool(true)
Output for 7.0.6
string(5) "-F��o" bool(true)
Output for 7.0.5
string(5) "�X�P" bool(true)
Output for 7.0.4
string(5) "����" bool(true)
Output for 7.0.3
string(5) "�qc�R" bool(true)
Output for 7.0.2
string(5) "ܖ)ʆ" bool(true)
Output for 7.0.1
string(5) "�`)�" bool(true)
Output for 7.0.0
string(5) "��G6�" bool(true)
Output for 5.6.28
string(5) "ʛ��" bool(true)
Output for 5.6.21
string(5) "v/��" bool(true)
Output for 5.6.20
string(5) "��M" bool(true)
Output for 5.6.19
string(5) "9 @�" bool(true)
Output for 5.6.18
string(5) "��r" bool(true)
Output for 5.6.17
string(5) "���" bool(true)
Output for 5.6.16
string(5) "�ކ��" bool(true)
Output for 5.6.15
string(5) "��r��" bool(true)
Output for 5.6.14
string(5) "����" bool(true)
Output for 5.6.13
string(5) " r��" bool(true)
Output for 5.6.12
string(5) "�S" bool(true)
Output for 5.6.11
string(5) "Zў,�" bool(true)
Output for 5.6.10
string(5) "1�|$'" bool(true)
Output for 5.6.9
string(5) "b����" bool(true)
Output for 5.6.8
string(5) "ס�,�" bool(true)
Output for 5.5.35
string(5) "ZDU'" bool(true)
Output for 5.5.34
string(5) "07Ao�" bool(true)
Output for 5.5.33
string(5) "��=}" bool(true)
Output for 5.5.32
string(5) "]+¹k" bool(true)
Output for 5.5.31
string(5) "���*" bool(true)
Output for 5.5.30
string(5) "��Y*$" bool(true)
Output for 5.5.29
string(5) "@�b1U" bool(true)
Output for 5.5.28
string(5) "1�\$�" bool(true)
Output for 5.5.27
string(5) "Q e��" bool(true)
Output for 5.5.26
string(5) "�U�Z" bool(true)
Output for 5.5.25
string(5) "�6r" bool(true)
Output for 5.5.24
string(5) "J�S�G" bool(true)
Output for 5.4.45
string(5) "��V��" bool(true)
Output for 5.4.44
string(5) "~�v�" bool(true)
Output for 5.4.43
string(5) "�O��" bool(true)
Output for 5.4.42
string(5) "���" bool(true)
Output for 5.4.41
string(5) "�$�Sk" bool(true)
Output for 5.4.40
string(5) "��:" bool(true)
Output for 5.4.39
string(5) "ρ�1�" bool(true)
Output for 5.4.38
string(5) "�6P" bool(true)
Output for 5.4.37
string(5) "�]�\%" bool(true)
Output for 5.4.36
string(5) "W��Q#" bool(true)
Output for 5.4.35
string(5) "2vMyt" bool(true)
Output for 5.4.34
string(5) "�}�\" bool(true)
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.32
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/2J2Fj 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/2J2Fj on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/2J2Fj 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/2J2Fj on line 4

preferences:
296.2 ms | 401 KiB | 340 Q