3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(sprintf("%s","F")); var_dump(intval("FFFF",16)); var_dump(floatval("FF",16));
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
string(1) "F" int(65535) Fatal error: Uncaught ArgumentCountError: floatval() expects exactly 1 argument, 2 given in /in/lb58q:5 Stack trace: #0 /in/lb58q(5): floatval('FF', 16) #1 {main} thrown in /in/lb58q on line 5
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
string(1) "F" int(65535) Warning: floatval() expects exactly 1 parameter, 2 given in /in/lb58q on line 5 NULL

preferences:
221.21 ms | 403 KiB | 368 Q