3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ini_parse_quantity('0x0b'), "\n"; echo ini_parse_quantity('-0x0B'), "\n"; echo ini_parse_quantity('0x0beef'), "\n"; echo ini_parse_quantity('-0x0BEEF'), "\n";
Output for 8.2.0 - 8.2.10, 8.3.17 - 8.3.25, 8.4.4 - 8.4.12
11 -11 48879 -48879
Output for 8.2.11 - 8.2.29, 8.3.0 - 8.3.16, 8.4.1 - 8.4.3
Warning: Invalid quantity "0x0b": no digits after base prefix, interpreting as "0" for backwards compatibility in /in/TkboT on line 2 0 Warning: Invalid quantity "-0x0B": no digits after base prefix, interpreting as "0" for backwards compatibility in /in/TkboT on line 3 0 Warning: Invalid quantity "0x0beef": no digits after base prefix, interpreting as "0" for backwards compatibility in /in/TkboT on line 4 0 Warning: Invalid quantity "-0x0BEEF": no digits after base prefix, interpreting as "0" for backwards compatibility in /in/TkboT on line 5 0
Output for 8.1.0 - 8.1.33
Fatal error: Uncaught Error: Call to undefined function ini_parse_quantity() in /in/TkboT:2 Stack trace: #0 {main} thrown in /in/TkboT on line 2
Process exited with code 255.

preferences:
70.77 ms | 409 KiB | 5 Q