3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getNumber() : int { return 3; } function getFunctionName() : string { return 'var_dump'; } function getBullshit() : string { return 'bullshit'; } var_dump(getNumber()/2); getFunctionName()(getNumber()/2); getBullshit()(getNumber()/2);
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
float(1.5) float(1.5) Fatal error: Uncaught Error: Call to undefined function bullshit() in /in/nR66q:20 Stack trace: #0 {main} thrown in /in/nR66q on line 20
Process exited with code 255.

preferences:
81.5 ms | 1126 KiB | 4 Q