3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-type: text/html; charset=UTF-8"); // Default $tipo_b = $quantita_vendita = $scontrino = $fatturato = $luogo_vendita = 0; $error_string = ''; if(session_start()) { if (isset($_SESSION['session_user'], $_SESSION['session_id'])) { $session_user = htmlspecialchars($_SESSION['session_user'], ENT_QUOTES, 'UTF-8'); $session_id = htmlspecialchars($_SESSION['session_id'], ENT_QUOTES, 'UTF-8'); // Exists if(!isset($_GET['tipo_b'])) { $error_string .= 'HAI DIMENTICATO A SPECIFICARE I CHILI DELLA BOMBOLA CHE VUOI VENDERE !!'; } if(!isset($_GET['quantita_vendita'])) { $error_string .= 'HAI DIMENTICATO A SPECIFICARE LA QUANTITA DI VENDITA'; } if(!isset($_GET['scontrino'])) { $error_string .= 'HAI DIMENTICATO A SCEGLIERE SE SCONTRINARE O NO IL PRODOTTO CHE STAI VENDENDO !!'; } if(!isset($_GET['fatturato'])) { $error_string .= 'HAI DIMENTICATO A SPECIFICARE SE SONO FATTURATE O NO !!'; } if(!isset($_GET['luogo_vendita'])) { $error_string .= 'HAI DIMENTICATO A SPECIFICARE SE SONO STATE VENDUTE A DOMICILIO O IN NEGOZIO !!'; } if($error_string == '') { $tipo_b = (int) $_GET['tipo_b']; $quantita_vendita = (int) $_GET['quantita_vendita']; if($_GET['scontrino'] == 'SI') { $scontrino = true; } if($_GET['fatturato'] == 'SI') { $fatturato = true; } // check validity if($tipo_b < 10) { $error_string .= 'DEVI SCEGLIERE DA 10 CHILI IN POI'; } if($quantita_vendita < 1) { $error_string .= 'DEVI SCEGLIERE LA QUANTITA DI VENDITA SUPERIORE A ZERO'; } $luogo_vendita = (string) $_GET['luogo_vendita']; } if($error_string == '') { //php code //se errore $quantita_vendita maggiore $quantita_rimaste creo sempre la variabile $error_string = 'DEVI SELEZIONARE UNA QUANTITA MINORE'; } if($error_string) { var_dump($error_string); } } else { // header('Location : accesso.htm'); } }
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.27, 8.3.29 - 8.3.30, 8.4.1 - 8.4.14, 8.4.16 - 8.4.18, 8.5.0 - 8.5.3
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.3.28
/bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28)
Process exited with code 1.

preferences:
195.49 ms | 407 KiB | 5 Q