3v4l.org

run code in 500+ 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.30, 8.4.4 - 8.4.18, 8.5.0 - 8.5.3
11 -11 48879 -48879
Output for 8.2.11 - 8.2.30, 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.34
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:
86.66 ms | 1000 KiB | 4 Q