3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $co= 02015; $cv= 15; $vu= 20000; $st= cv * vu; $d= st * 0.10; $t= st - d; echo "El codigo del producto es: $co \n". "La cantidad vendida es: $cv \n". "El valor unitario es de: $vu". "Subtotal: $st \n ". "Descuento 10%: $d \n". "TOTAL A PAGAR: $t"; ?>
based on LEjUR
Output for 7.2.0
Warning: Use of undefined constant cv - assumed 'cv' (this will throw an Error in a future version of PHP) in /in/4gr2t on line 6 Warning: Use of undefined constant vu - assumed 'vu' (this will throw an Error in a future version of PHP) in /in/4gr2t on line 6 Warning: A non-numeric value encountered in /in/4gr2t on line 6 Warning: A non-numeric value encountered in /in/4gr2t on line 6 Warning: Use of undefined constant st - assumed 'st' (this will throw an Error in a future version of PHP) in /in/4gr2t on line 7 Warning: A non-numeric value encountered in /in/4gr2t on line 7 Warning: Use of undefined constant st - assumed 'st' (this will throw an Error in a future version of PHP) in /in/4gr2t on line 8 Warning: Use of undefined constant d - assumed 'd' (this will throw an Error in a future version of PHP) in /in/4gr2t on line 8 Warning: A non-numeric value encountered in /in/4gr2t on line 8 Warning: A non-numeric value encountered in /in/4gr2t on line 8 El codigo del producto es: 1037 La cantidad vendida es: 15 El valor unitario es de: 20000Subtotal: 0 Descuento 10%: 0 TOTAL A PAGAR: 0
Output for 7.1.0 - 7.1.10
Notice: Use of undefined constant cv - assumed 'cv' in /in/4gr2t on line 6 Notice: Use of undefined constant vu - assumed 'vu' in /in/4gr2t on line 6 Warning: A non-numeric value encountered in /in/4gr2t on line 6 Warning: A non-numeric value encountered in /in/4gr2t on line 6 Notice: Use of undefined constant st - assumed 'st' in /in/4gr2t on line 7 Warning: A non-numeric value encountered in /in/4gr2t on line 7 Notice: Use of undefined constant st - assumed 'st' in /in/4gr2t on line 8 Notice: Use of undefined constant d - assumed 'd' in /in/4gr2t on line 8 Warning: A non-numeric value encountered in /in/4gr2t on line 8 Warning: A non-numeric value encountered in /in/4gr2t on line 8 El codigo del producto es: 1037 La cantidad vendida es: 15 El valor unitario es de: 20000Subtotal: 0 Descuento 10%: 0 TOTAL A PAGAR: 0
Output for 5.3.18 - 7.0.20
Notice: Use of undefined constant cv - assumed 'cv' in /in/4gr2t on line 6 Notice: Use of undefined constant vu - assumed 'vu' in /in/4gr2t on line 6 Notice: Use of undefined constant st - assumed 'st' in /in/4gr2t on line 7 Notice: Use of undefined constant st - assumed 'st' in /in/4gr2t on line 8 Notice: Use of undefined constant d - assumed 'd' in /in/4gr2t on line 8 El codigo del producto es: 1037 La cantidad vendida es: 15 El valor unitario es de: 20000Subtotal: 0 Descuento 10%: 0 TOTAL A PAGAR: 0