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.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
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:
90.9 ms | 407 KiB | 5 Q