3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id1 = 'fxEbFmSBuIM'; $id2 = 'et34RK4qLy8'; $id3 = '3oypcgF-LJQ'; $id1 = 'oT5+eFUCEAE'; $id2 = 'oT5+eU8CEAE'; $id3 = 'oT5+ekkCEAE'; $id1 = base64_decode($id1); $id2 = base64_decode($id2); $id3 = base64_decode($id3); $id1 = bin2hex($id1); $id2 = bin2hex($id2); $id3 = bin2hex($id3); $id1 = hexdec($id1); $id2 = hexdec($id2); $id3 = hexdec($id3); var_dump(sprintf('%b', $id1)); var_dump(sprintf('%b', $id2)); var_dump(sprintf('%b', $id3)); var_dump(sprintf('%b', $id1 & $id2 & $id3));
Output for 8.5.0
Warning: The float 1.1618863143949832E+19 is not representable as an int, cast occurred in /in/HLItm on line 23 string(64) "1010000100111110011111100111100001010101000000100001000000000000" Warning: The float 1.1618863148144136E+19 is not representable as an int, cast occurred in /in/HLItm on line 24 string(64) "1010000100111110011111100111100101001111000000100001000000000000" Warning: The float 1.161886315233844E+19 is not representable as an int, cast occurred in /in/HLItm on line 25 string(64) "1010000100111110011111100111101001001001000000100001000000000000" Warning: The float 1.1618863143949832E+19 is not representable as an int, cast occurred in /in/HLItm on line 27 Warning: The float 1.1618863148144136E+19 is not representable as an int, cast occurred in /in/HLItm on line 27 Warning: The float 1.161886315233844E+19 is not representable as an int, cast occurred in /in/HLItm on line 27 string(64) "1010000100111110011111100111100001000001000000100001000000000000"
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14
string(64) "1010000100111110011111100111100001010101000000100001000000000000" string(64) "1010000100111110011111100111100101001111000000100001000000000000" string(64) "1010000100111110011111100111101001001001000000100001000000000000" Deprecated: Implicit conversion from float 1.1618863143949832E+19 to int loses precision in /in/HLItm on line 27 Deprecated: Implicit conversion from float 1.1618863148144136E+19 to int loses precision in /in/HLItm on line 27 Deprecated: Implicit conversion from float 1.161886315233844E+19 to int loses precision in /in/HLItm on line 27 string(64) "1010000100111110011111100111100001000001000000100001000000000000"
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30
string(64) "1010000100111110011111100111100001010101000000100001000000000000" string(64) "1010000100111110011111100111100101001111000000100001000000000000" string(64) "1010000100111110011111100111101001001001000000100001000000000000" string(64) "1010000100111110011111100111100001000001000000100001000000000000"

preferences:
197.84 ms | 413 KiB | 5 Q