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

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.00.0090.00616.79
7.2.130.0030.01016.75
7.2.120.0000.01416.53
7.2.110.0070.01116.68
7.2.100.0080.00416.57
7.2.90.0070.00317.11
7.2.80.0040.00916.86
7.2.70.0030.01216.52
7.2.60.0110.00916.80
7.2.50.0070.00316.77
7.2.40.0080.00616.80
7.2.30.0110.00016.66
7.2.20.0080.00816.91
7.2.10.0030.01016.93
7.2.00.0100.00618.22
7.1.250.0070.00715.93
7.1.240.0060.00315.57
7.1.230.0070.00315.66
7.1.220.0030.01015.58
7.1.210.0030.00715.71
7.1.200.0080.00315.86
7.1.190.0070.00715.71
7.1.180.0070.00715.89
7.1.170.0080.00615.78
7.1.160.0040.00915.59
7.1.150.0110.00015.84
7.1.140.0140.00015.41
7.1.130.0070.00315.49
7.1.120.0040.01115.76
7.1.110.0090.00915.77
7.1.100.0040.01316.96
7.1.90.0040.00715.73
7.1.80.0100.00315.72
7.1.70.0060.00616.26
7.1.60.0060.01117.35
7.1.50.0170.00725.25
7.1.40.0030.00915.94
7.1.30.0110.00015.73
7.1.20.0090.00615.49
7.1.10.0070.00715.71
7.1.00.0050.04019.12
7.0.330.0030.00715.41
7.0.320.0060.00615.23
7.0.310.0060.01015.00
7.0.300.0000.01515.39
7.0.290.0130.00315.34
7.0.280.0080.00315.42
7.0.270.0060.00815.10
7.0.260.0000.01315.14
7.0.250.0000.01315.14
7.0.240.0000.01315.29
7.0.230.0100.00715.48
7.0.220.0040.00715.25
7.0.210.0030.00915.38
7.0.200.0050.00615.89
7.0.190.0060.00915.21
7.0.180.0030.00915.50
7.0.170.0100.00615.41
7.0.160.0100.00715.35
7.0.150.0030.01015.15
7.0.140.0060.00615.22
7.0.130.0050.00515.41
7.0.120.0070.00314.98
7.0.110.0090.00015.16
7.0.100.0080.00315.30
7.0.90.0030.00715.50
7.0.80.0030.00715.22
7.0.70.0040.00715.44
7.0.60.0090.04317.62
7.0.50.0030.02416.59
7.0.40.0060.02916.72
7.0.30.0280.04016.80
7.0.20.0170.02816.92
7.0.10.0080.02316.77
7.0.00.0100.04216.86
5.6.380.0130.00014.44
5.6.370.0000.00814.60
5.6.360.0080.00314.26
5.6.350.0030.00614.11
5.6.340.0130.00014.30
5.6.330.0140.00014.36
5.6.320.0070.00713.77
5.6.310.0070.00714.54
5.6.300.0030.00714.40
5.6.290.0030.00814.46
5.6.280.0030.01817.65
5.6.270.0000.01214.47
5.6.260.0030.01014.10
5.6.250.0000.01113.97
5.6.240.0040.00714.21
5.6.230.0040.00414.43
5.6.220.0000.00914.33
5.6.210.0000.04817.63
5.6.200.0020.02916.09
5.6.190.0040.02417.22
5.6.180.1430.02517.31
5.6.170.0170.04817.38
5.6.160.0100.04517.30
5.6.150.0030.03816.34
5.6.140.0060.03516.24
5.6.130.0120.04216.16
5.6.120.0080.02317.55
5.6.110.0050.03717.69
5.6.100.0040.03917.57
5.6.90.0050.03717.46
5.6.80.0090.04217.21
5.6.70.1720.01717.23
5.6.60.0030.00714.24
5.6.50.0080.00314.05
5.6.40.0080.00414.34
5.6.30.0000.01114.10
5.6.20.0080.00414.21
5.6.10.0030.00914.06
5.6.00.0030.01314.29
5.5.380.0030.00311.18
5.5.370.0040.00711.18
5.5.360.0000.00711.18
5.5.350.0100.03715.85
5.5.340.0070.04214.58
5.5.330.0020.02915.82
5.5.320.0120.02215.73
5.5.310.0110.03315.65
5.5.300.0030.03814.58
5.5.290.0060.04514.58
5.5.280.0090.04116.02
5.5.270.0100.03716.02
5.5.260.0090.03515.92
5.5.250.0120.03615.89
5.5.240.0170.03515.71
5.5.230.0030.00511.18
5.5.220.0000.01111.18
5.5.210.0000.00811.18
5.5.200.0030.00711.18
5.5.190.0050.00811.18
5.5.180.0030.00911.18
5.5.170.0050.00011.18
5.5.160.0000.00711.18
5.5.150.0040.00411.18
5.5.140.0060.00011.18
5.5.130.0030.00911.18
5.5.120.0110.00011.18
5.5.110.0060.00311.18
5.5.100.0030.01011.18
5.5.90.0060.00011.18
5.5.80.0000.00811.18
5.5.70.0030.00311.18
5.5.60.0030.00311.18
5.5.50.0000.00911.18
5.5.40.0000.01311.18
5.5.30.0060.00311.18
5.5.20.0060.00311.18
5.5.10.0000.00711.18
5.5.00.0080.00311.18
5.4.450.0450.03015.34
5.4.440.0470.02815.28
5.4.430.0580.03715.28
5.4.420.0400.02915.39
5.4.410.0400.03315.30
5.4.400.0380.02714.98
5.4.390.0370.03015.00
5.4.380.0380.03015.21
5.4.370.0440.02515.24
5.4.360.0400.02515.22
5.4.350.0450.02914.99
5.4.340.0460.03215.16
5.4.330.0040.00711.18
5.4.320.0520.03314.99
5.4.310.0400.03315.14
5.4.300.0370.03015.08
5.4.290.0500.02515.06
5.4.280.0430.03014.99
5.4.270.0450.02815.18
5.4.260.0470.03015.04
5.4.250.0420.03315.13
5.4.240.0390.02515.12
5.4.230.0370.03015.21
5.4.220.0400.03714.99
5.4.210.0420.03115.14
5.4.200.0360.03115.06
5.4.190.0430.02915.22
5.4.180.0500.02315.17
5.4.170.0330.03215.06
5.4.160.0370.02715.15
5.4.150.0380.03115.13
5.4.140.0430.03013.75
5.4.130.0470.02713.71
5.4.120.0480.02513.75
5.4.110.0510.03313.85
5.4.100.0520.02513.69
5.4.90.0430.03113.87
5.4.80.0510.02613.87
5.4.70.0150.02013.80
5.4.60.0160.02813.77
5.4.50.0050.02313.79
5.4.40.0070.03513.67
5.4.30.0000.04113.72
5.4.20.0170.03413.79
5.4.10.0080.00011.18
5.4.00.0040.00811.18
5.3.290.0600.05314.71
5.3.280.0670.05014.54
5.3.270.1530.05714.55
5.3.260.1070.04714.55
5.3.250.0570.04314.55
5.3.240.1170.03314.66
5.3.230.1670.05014.55
5.3.220.2130.03714.50
5.3.210.1600.03714.66
5.3.200.0770.04314.41
5.3.190.0970.04314.52
5.3.180.0830.04314.44