3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); echo base_convert(num: 'a37334', from_base: 16, to_base: 2);
Output for 8.0.0
101000110111001100110100
Output for 7.3.0 - 7.3.25, 7.4.0 - 7.4.13
Parse error: syntax error, unexpected ':', expecting ')' in /in/VgaFY on line 3
Process exited with code 255.
Output for 7.2.0 - 7.2.34
Parse error: syntax error, unexpected ':', expecting ',' or ')' in /in/VgaFY on line 3
Process exited with code 255.

preferences:
24.3 ms | 458 KiB | 5 Q