3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 8 bytes (64 bits) $bytes = unpack("Q", openssl_random_pseudo_bytes(8)); print_r($bytes);
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.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /in/ppMiN:4 Stack trace: #0 {main} thrown in /in/ppMiN on line 4
Process exited with code 255.
Output for 7.2.0
Array ( [1] => 4924359514555897674 )
Output for 7.1.7
Array ( [1] => -2337996787821191969 )
Output for 7.1.6
Array ( [1] => -4288708237312671201 )
Output for 7.1.5
Array ( [1] => -418748896445280965 )
Output for 7.1.0
Array ( [1] => 7301282287771958259 )
Output for 7.0.20
Array ( [1] => 5650755672271234368 )
Output for 7.0.11
Array ( [1] => -5014809419439447263 )
Output for 7.0.10
Array ( [1] => -9029236372672219822 )
Output for 7.0.9
Array ( [1] => 5977966953435046246 )
Output for 7.0.8
Array ( [1] => -4848826286182694608 )
Output for 7.0.7
Array ( [1] => -8912879811864225870 )
Output for 7.0.6
Array ( [1] => -2137746429912160211 )
Output for 7.0.5
Array ( [1] => 6285914441030265602 )
Output for 7.0.4
Array ( [1] => 4472273231863927052 )
Output for 7.0.3
Array ( [1] => 7624888565408616185 )
Output for 7.0.2
Array ( [1] => 7220559851706887011 )
Output for 7.0.1
Array ( [1] => 1210210755186976276 )
Output for 7.0.0
Array ( [1] => 3815790239324188949 )
Output for 5.6.26
Array ( [1] => -7309093100334662155 )
Output for 5.6.25
Array ( [1] => 2063989925657877042 )
Output for 5.6.24
Array ( [1] => -1718400154283083430 )
Output for 5.6.23
Array ( [1] => 3913585994831495493 )
Output for 5.6.22
Array ( [1] => -7725317716077458456 )
Output for 5.6.21
Array ( [1] => -2740922943011832202 )
Output for 5.6.20
Array ( [1] => 6205636274104999821 )
Output for 5.6.19
Array ( [1] => 5195292498853982325 )
Output for 5.6.18
Array ( [1] => 4002714718009112364 )
Output for 5.6.17
Array ( [1] => -1988149030083214492 )
Output for 5.6.16
Array ( [1] => -8120420159327725233 )
Output for 5.6.15
Array ( [1] => -8121237221942739733 )
Output for 5.6.14
Array ( [1] => -615758095958051240 )
Output for 5.6.13
Array ( [1] => 4633865125730762312 )
Output for 5.6.12
Array ( [1] => 47064400738308752 )
Output for 5.6.11
Array ( [1] => -8537663032615062756 )
Output for 5.6.10
Array ( [1] => -5547755710805369694 )
Output for 5.6.9
Array ( [1] => -1484241316854772846 )
Output for 5.6.8
Array ( [1] => 3229909821675720310 )
Output for 5.6.7
Array ( [1] => 3971309249558980152 )
Output for 5.6.6
Array ( [1] => 4100035339144575495 )
Output for 5.6.5
Array ( [1] => 3651063752765009481 )
Output for 5.6.4
Array ( [1] => 2214240169342916965 )
Output for 5.6.3
Array ( [1] => 7480076104856932537 )
Output for 5.4.15 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.2
Warning: unpack(): Invalid format type Q in /in/ppMiN on line 4
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.14
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/ppMiN 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/ppMiN 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/ppMiN 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/ppMiN on line 4

preferences:
95.54 ms | 2353 KiB | 4 Q