3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = 2; if ($a != 0 && $b != 0) { $c = 4 * ($a + $b); $d = Math.round($c * 1.1 / $a); $e = Math.round($c / $b); } $sql1 = "UPDATE login SET Punteggio = Punteggio + $d WHERE Risultato = $score"; echo $sql1;
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14
Fatal error: Uncaught Error: Undefined constant "Math" in /in/DeM62:6 Stack trace: #0 {main} thrown in /in/DeM62 on line 6
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Warning: Use of undefined constant Math - assumed 'Math' (this will throw an Error in a future version of PHP) in /in/DeM62 on line 6 Warning: Use of undefined constant Math - assumed 'Math' (this will throw an Error in a future version of PHP) in /in/DeM62 on line 7 Notice: Undefined variable: score in /in/DeM62 on line 9 UPDATE login SET Punteggio = Punteggio + Math13 WHERE Risultato =
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant Math - assumed 'Math' (this will throw an Error in a future version of PHP) in /in/DeM62 on line 6 Warning: Use of undefined constant Math - assumed 'Math' (this will throw an Error in a future version of PHP) in /in/DeM62 on line 7 UPDATE login SET Punteggio = Punteggio + Math13 WHERE Risultato =
Output for 5.6.38, 7.1.0 - 7.1.33
Notice: Use of undefined constant Math - assumed 'Math' in /in/DeM62 on line 6 Notice: Use of undefined constant Math - assumed 'Math' in /in/DeM62 on line 7 Notice: Undefined variable: score in /in/DeM62 on line 9 UPDATE login SET Punteggio = Punteggio + Math13 WHERE Risultato =

preferences:
146.93 ms | 411 KiB | 5 Q