3v4l.org

run code in 300+ PHP versions simultaneously
<?php if($sweet['customer_username'] == $username){ $cust=$sweet['customer_id']; mysql_query("INSERT INTO `shipping_address`(customer_id,address_line_1,address_line_2,post_code,county) VALUES ('$cust','$adr','$adr2','$pst','$cnty')"); foreach ($_SESSION['sweet'] as $key => $val){ mysql_query("INSERT INTO `sweets_pref`(customer_id, sweet_id, preference) VALUES ('$cust','$key', '$val')") or die('unable to connect to database'); } }

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0030.01018.43
8.3.50.0100.00517.24
8.3.40.0170.00318.82
8.3.30.0110.00418.71
8.3.20.0030.00618.76
8.3.10.0040.00420.60
8.3.00.0000.00817.75
8.2.180.0120.00318.43
8.2.170.0070.00718.91
8.2.160.0090.00622.96
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.77
8.2.110.0030.00620.54
8.2.100.0080.00317.97
8.2.90.0080.00019.31
8.2.80.0070.00317.97
8.2.70.0040.00417.63
8.2.60.0080.00018.05
8.2.50.0060.00318.07
8.2.40.0030.00619.88
8.2.30.0000.00718.14
8.2.20.0040.00417.87
8.2.10.0040.00417.77
8.2.00.0000.00717.83
8.1.280.0130.00325.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.95
8.1.230.0090.00322.88
8.1.220.0050.00318.77
8.1.210.0050.00318.91
8.1.200.0030.00617.35
8.1.190.0030.00617.52
8.1.180.0080.00018.10
8.1.170.0050.00218.75
8.1.160.0040.00418.83
8.1.150.0040.00418.59
8.1.140.0050.00317.48
8.1.130.0000.00717.76
8.1.120.0000.00817.46
8.1.110.0000.00717.38
8.1.100.0000.00717.46
8.1.90.0000.00717.42
8.1.80.0070.00017.52
8.1.70.0000.00717.37
8.1.60.0030.00517.49
8.1.50.0040.00417.51
8.1.40.0000.00717.43
8.1.30.0040.00417.56
8.1.20.0030.00617.70
8.1.10.0040.00417.53
8.1.00.0070.00017.51
8.0.300.0070.00020.02
8.0.290.0040.00416.88
8.0.280.0030.00518.47
8.0.270.0070.00017.34
8.0.260.0070.00018.55
8.0.250.0030.00516.92
8.0.240.0030.00616.93
8.0.230.0000.00717.10
8.0.220.0000.00816.91
8.0.210.0000.00816.94
8.0.200.0000.00716.93
8.0.190.0000.00817.09
8.0.180.0000.00816.90
8.0.170.0030.00617.02
8.0.160.0000.00717.04
8.0.150.0030.00716.86
8.0.140.0040.00816.97
8.0.130.0030.00313.45
8.0.120.0020.00516.95
8.0.110.0080.00016.93
8.0.100.0000.00716.85
8.0.90.0030.00317.02
8.0.80.0070.01416.86
8.0.70.0000.00716.99
8.0.60.0080.00017.00
8.0.50.0040.00416.80
8.0.30.0150.00917.13
8.0.20.0100.01217.34
8.0.10.0050.00317.14
8.0.00.0110.01016.80
7.4.330.0000.00514.77
7.4.320.0040.00416.62
7.4.300.0070.00016.46
7.4.290.0030.00316.60
7.4.280.0050.00516.57
7.4.270.0030.00316.47
7.4.260.0090.00013.38
7.4.250.0000.00816.46
7.4.240.0000.00716.63
7.4.230.0040.00416.32
7.4.220.0100.00716.69
7.4.210.0050.01016.64
7.4.200.0030.00316.69
7.4.190.0000.00716.61
7.4.160.0090.00616.54
7.4.150.0110.00617.07
7.4.140.0090.00917.29
7.4.130.0060.01116.70
7.4.120.0130.01016.45
7.4.110.0130.00316.42
7.4.100.0240.00016.51
7.4.90.0090.00916.64
7.4.80.0090.00918.80
7.4.70.0160.00616.70
7.4.60.0130.00716.50
7.4.50.0030.00623.42
7.4.40.0070.01121.69
7.4.30.0160.00216.70
7.4.00.0090.00915.11
7.3.330.0040.00413.21
7.3.320.0050.00013.29
7.3.310.0050.00316.27
7.3.300.0070.00016.46
7.3.290.0030.01316.36
7.3.280.0130.00416.38
7.3.270.0070.01017.07
7.3.260.0100.00718.24
7.3.250.0070.01216.36
7.3.240.0100.00616.30
7.3.230.0090.00916.44
7.3.210.0080.00816.39
7.3.200.0000.01619.39
7.3.190.0150.00616.36
7.3.180.0120.00316.47
7.3.170.0080.00816.50
7.3.160.0150.00016.48
7.3.120.0070.00914.93
7.3.110.0040.01514.85
7.3.100.0040.01214.90
7.3.90.0130.00314.76
7.3.80.0060.00315.15
7.3.70.0060.00314.73
7.3.60.0070.01314.93
7.3.50.0030.01214.85
7.3.40.0060.00614.93
7.3.30.0000.01314.80
7.3.20.0100.00316.78
7.3.10.0040.01116.61
7.3.00.0030.01016.67
7.2.330.0040.01416.30
7.2.320.0100.00616.34
7.2.310.0100.00716.80
7.2.300.0060.01816.70
7.2.290.0100.01316.64
7.2.250.0060.00914.96
7.2.240.0090.00614.75
7.2.230.0100.01014.88
7.2.220.0120.00614.86
7.2.210.0070.00714.69
7.2.200.0110.00714.89
7.2.190.0110.00914.79
7.2.180.0060.00614.85
7.2.170.0060.00614.84
7.2.60.0040.00716.97
7.2.00.0030.01019.13
7.1.330.0030.01315.95
7.1.320.0000.01015.54
7.1.310.0000.01815.81
7.1.300.0070.00715.77
7.1.290.0060.00915.74
7.1.280.0120.00315.70
7.1.270.0060.01015.80
7.1.260.0030.00915.79
7.1.200.0090.00315.71
7.1.100.0070.00718.39
7.1.70.0040.00716.93
7.1.60.0030.00717.12
7.1.50.0070.00316.88
7.1.40.0030.01016.79
7.1.30.0040.00716.77
7.1.20.0040.00716.56
7.1.10.0000.00816.60
7.1.00.0030.01016.60
7.0.200.0080.00316.80
7.0.190.0030.00716.77
7.0.180.0050.00216.20
7.0.170.0000.00716.24
7.0.160.0000.00816.11
7.0.150.0040.01116.51
7.0.140.0070.01016.25
7.0.130.0000.00716.61
7.0.120.0000.00716.79
7.0.110.0000.00716.52
7.0.100.0040.00416.42
7.0.90.0030.00616.47
7.0.80.0030.00816.38
7.0.70.0100.00316.50
7.0.60.0080.00316.33
7.0.50.0000.00916.38
7.0.40.0040.01214.89
7.0.30.0060.00914.89
7.0.20.0030.01014.89
7.0.10.0000.00714.89
7.0.00.0060.01014.89
5.6.300.0030.08320.68
5.6.290.0030.03920.67
5.6.280.0090.03420.99
5.6.270.0070.04321.03
5.6.260.0160.03321.03
5.6.250.0030.04020.80
5.6.240.0130.04620.84
5.6.230.0100.04021.05
5.6.220.0060.04220.99
5.6.210.0070.04220.96
5.6.200.0030.04420.86
5.6.190.0030.07520.82
5.6.180.0100.07620.86
5.6.170.0030.04420.82
5.6.160.0030.07221.04
5.6.150.0000.07721.02
5.6.140.0030.04520.82
5.6.130.0000.04720.98
5.6.120.0000.04620.82
5.6.110.0030.04220.82
5.6.100.0200.04320.82
5.6.90.0000.04420.95
5.6.80.0030.07420.21
5.6.70.0030.06320.19
5.6.60.0060.03820.25
5.6.50.0100.05520.21
5.6.40.0030.07620.19
5.6.30.0070.03720.21
5.6.20.0070.03620.34
5.6.10.0000.04120.20
5.6.00.0030.04220.26
5.5.380.0000.04017.44
5.5.370.0030.04117.57
5.5.360.0130.03717.42
5.5.350.0000.04817.46
5.5.340.0000.04418.02
5.5.330.0000.04818.03
5.5.320.0070.05618.04
5.5.310.0030.07517.74
5.5.300.0070.04018.12
5.5.290.0030.04117.74
5.5.280.0000.04317.70
5.5.270.0000.06417.69
5.5.260.0030.04018.02
5.5.250.0070.03717.65
5.5.240.0100.06817.13
5.5.230.0000.08617.41
5.5.220.0070.03317.37
5.5.210.0100.06217.41
5.5.200.0030.08317.32
5.5.190.0070.06217.46
5.5.180.0030.04117.05
5.5.160.0000.04317.38
5.5.150.0140.04417.32
5.5.140.0030.03717.41
5.5.130.0030.04017.36
5.5.120.0030.04217.38
5.5.110.0030.04117.34
5.5.100.0000.04217.37
5.5.90.0030.03817.25
5.5.80.0000.04217.22
5.5.70.0000.07317.36
5.5.60.0100.07117.18
5.5.50.0100.03817.07
5.5.40.0000.04317.09
5.5.30.0070.07017.10
5.5.20.0030.08217.27
5.5.10.0030.05117.10
5.5.00.0030.07517.29
5.4.450.0000.04419.32
5.4.440.0000.04319.30
5.4.430.0030.04819.20
5.4.420.0070.03719.23
5.4.410.0030.04719.07
5.4.400.0070.07319.17
5.4.390.0030.04619.06
5.4.380.0000.04419.16
5.4.370.0030.06219.17
5.4.360.0030.04018.82
5.4.350.0040.03919.14
5.4.340.0030.03919.08
5.4.320.0000.04119.02
5.4.310.0100.04119.14
5.4.300.0190.03519.05
5.4.290.0100.02919.06
5.4.280.0070.08219.16
5.4.270.0030.03919.00
5.4.260.0100.03219.15
5.4.250.0000.04819.06
5.4.240.0070.06218.82
5.4.230.0000.04018.97
5.4.220.0070.08018.82
5.4.210.0100.04819.05
5.4.200.0030.05619.09
5.4.190.0100.03618.97
5.4.180.0070.07019.04
5.4.170.0070.08519.00
5.4.160.0000.05919.12
5.4.150.0040.04219.05
5.4.140.0000.07316.54
5.4.130.0030.07416.35
5.4.120.0100.06316.45
5.4.110.0000.04116.34
5.4.100.0000.04216.69
5.4.90.0000.04216.60
5.4.80.0000.03816.67
5.4.70.0030.03416.72
5.4.60.0030.05716.61
5.4.50.0030.03416.54
5.4.40.0040.03516.53
5.4.30.0000.03916.47
5.4.20.0030.03816.62
5.4.10.0000.04216.39
5.4.00.0000.03616.06
5.3.290.0060.03514.89
5.3.280.0070.03314.89
5.3.270.0000.04014.89
5.3.260.0030.07414.89
5.3.250.0100.03014.89
5.3.240.0130.06214.89
5.3.230.0070.07414.89
5.3.220.0000.07514.89
5.3.210.0030.07914.89
5.3.200.0000.05514.89
5.3.190.0060.06114.89
5.3.180.0000.03914.89
5.3.170.0000.04014.89
5.3.160.0000.03914.89
5.3.150.0000.04414.89
5.3.140.0070.03614.89
5.3.130.0000.04614.89
5.3.120.0060.03514.89
5.3.110.0030.03714.89
5.3.100.0030.03514.89
5.3.90.0030.03514.89
5.3.80.0030.03614.89
5.3.70.0000.03714.89
5.3.60.0030.03514.89
5.3.50.0030.03314.89
5.3.40.0030.03314.89
5.3.30.0000.03714.89
5.3.20.0070.02914.89
5.3.10.0000.03714.89
5.3.00.0070.03014.89
5.2.170.0000.03214.89
5.2.160.0030.02714.89
5.2.150.0000.03114.89
5.2.140.0000.03714.89
5.2.130.0030.02614.89
5.2.120.0070.02314.89
5.2.110.0030.02614.89
5.2.100.0030.02714.89
5.2.90.0070.02314.89
5.2.80.0030.03414.89
5.2.70.0030.02714.89
5.2.60.0100.04814.89
5.2.50.0030.02914.89
5.2.40.0000.03514.89
5.2.30.0000.03314.89
5.2.20.0000.03014.89
5.2.10.0000.03114.89
5.2.00.0000.03114.89
5.1.60.0060.01914.89
5.1.50.0030.02414.89
5.1.40.0030.02514.89
5.1.30.0030.04114.89
5.1.20.0030.02614.89
5.1.10.0060.02314.89
5.1.00.0000.03214.89
5.0.50.0000.02814.89
5.0.40.0000.02214.89
5.0.30.0000.03414.89
5.0.20.0000.02214.89
5.0.10.0000.02414.89
5.0.00.0030.03214.89
4.4.90.0030.01614.89
4.4.80.0040.01514.89
4.4.70.0030.01614.89
4.4.60.0000.01614.89
4.4.50.0000.01914.89
4.4.40.0000.02814.89
4.4.30.0030.01414.89
4.4.20.0070.01014.89
4.4.10.0000.01914.89
4.4.00.0060.03214.89
4.3.110.0000.02814.89
4.3.100.0000.01714.89
4.3.90.0030.01514.89
4.3.80.0000.03014.89
4.3.70.0000.01714.89
4.3.60.0030.01514.89
4.3.50.0000.01814.89
4.3.40.0000.02614.89
4.3.30.0030.02514.89
4.3.20.0000.01814.89
4.3.10.0030.01614.89
4.3.00.0000.01714.89

preferences:
46.35 ms | 401 KiB | 5 Q