3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump( (fn(int$i)=>$i)('+5123'), ['+123'=>1,'-123'=>2], bcadd('+123','-456'), );
Output for 8.5.0 - 8.5.7
Fatal error: Uncaught Error: Call to undefined function bcadd() in /in/1I5eR:6 Stack trace: #0 {main} thrown in /in/1I5eR on line 6
Process exited with code 255.
Output for 8.2.31, 8.3.0 - 8.3.31, 8.4.1 - 8.4.22
int(5123) array(2) { ["+123"]=> int(1) [-123]=> int(2) } string(4) "-333"

preferences:
27.9 ms | 751 KiB | 4 Q