3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(base_convert("10@23",10,10)); var_dump(base_convert("10A23",10,10));
Output for 7.4.0 - 7.4.30, 8.0.0 - 8.0.20, 8.1.0 - 8.1.7
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /in/kqOBk on line 3 string(4) "1023" Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /in/kqOBk on line 4 string(4) "1023"
Output for 5.5.0 - 5.5.37, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
string(4) "1023" string(4) "1023"

preferences:
63.15 ms | 419 KiB | 14 Q