3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id =1; $SocialHandle = "Facebook,Twitter,LinkIn"; $SocialHandle = explode(",", $SocialHandle); $SociaUrl = "Url1,Url2,Url3"; $SociaUrl = explode(",", $SociaUrl); $sql = "INSERT INTO `social_table`(`id`, `social_handle`, `handle_url`) VALUES"; for ($i = 0; $i < count($SocialHandle); $i++) { $sql .= "($id, '$SocialHandle[$i]','$SociaUrl[$i]'),"; } $sql = rtrim($sql, ','); echo $sql;

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.130.0090.00016.47
8.3.120.0060.00318.90
8.3.110.0130.00320.94
8.3.100.0080.00024.06
8.3.90.0050.00326.77
8.3.80.0070.00317.97
8.3.70.0090.00618.39
8.3.60.0150.00018.51
8.3.50.0070.01122.81
8.3.40.0180.00418.93
8.3.30.0110.00318.47
8.3.20.0040.00420.34
8.3.10.0070.00023.66
8.3.00.0090.00020.74
8.2.250.0080.00017.22
8.2.240.0080.00018.91
8.2.230.0090.00022.58
8.2.220.0090.00637.54
8.2.210.0070.00726.77
8.2.200.0000.00918.41
8.2.190.0110.00416.58
8.2.180.0110.00418.41
8.2.170.0120.00922.96
8.2.160.0120.00319.35
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00319.23
8.2.110.0100.00021.12
8.2.100.0110.00018.03
8.2.90.0070.00319.22
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0000.00819.07
8.2.50.0040.00418.10
8.2.40.0000.00820.16
8.2.30.0020.00519.43
8.2.20.0040.00417.75
8.2.10.0000.00718.13
8.2.00.0040.00418.13
8.1.300.0070.00318.27
8.1.290.0100.00018.88
8.1.280.0120.00625.92
8.1.270.0040.00424.01
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0060.00324.02
8.1.230.0110.00017.77
8.1.220.0000.00817.91
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0030.00618.65
8.1.160.0000.00820.86
8.1.150.0070.00018.90
8.1.140.0000.00919.49
8.1.130.0040.00417.70
8.1.120.0050.00317.43
8.1.110.0000.00817.37
8.1.100.0030.00417.49
8.1.90.0040.00417.36
8.1.80.0000.00717.46
8.1.70.0070.00017.51
8.1.60.0030.00517.60
8.1.50.0000.00817.58
8.1.40.0030.00617.48
8.1.30.0030.00517.59
8.1.20.0050.00217.62
8.1.10.0000.00817.64
8.1.00.0070.00017.40
8.0.300.0060.00318.77
8.0.290.0060.00316.75
8.0.280.0030.00318.32
8.0.270.0000.00817.28
8.0.260.0060.00017.18
8.0.250.0030.00317.01
8.0.240.0060.00316.90
8.0.230.0070.00016.86
8.0.220.0040.00416.92
8.0.210.0000.00816.86
8.0.200.0000.00716.85
8.0.190.0000.00916.96
8.0.180.0000.00716.86
8.0.170.0040.00416.92
8.0.160.0020.00516.80
8.0.150.0080.00016.74
8.0.140.0020.00516.77
8.0.130.0000.00713.29
8.0.120.0000.00816.70
8.0.110.0060.00316.77
8.0.100.0000.00816.94
8.0.90.0040.00416.73
8.0.80.0060.00916.95
8.0.70.0050.00316.87
8.0.60.0080.00017.00
8.0.50.0000.00716.94
8.0.30.0150.00617.22
8.0.20.0110.00917.40
8.0.10.0040.00416.96
8.0.00.0110.00716.84
7.4.330.0020.00215.08
7.4.320.0060.00016.57
7.4.300.0050.00516.63
7.4.290.0000.00716.52
7.4.280.0000.00816.49
7.4.270.0060.00016.57
7.4.260.0030.00316.52
7.4.250.0000.00716.62
7.4.240.0070.00016.60
7.4.230.0000.00716.61
7.4.220.0100.00716.55
7.4.210.0080.01016.62
7.4.200.0080.00016.68
7.4.160.0060.00916.32
7.4.150.0030.01717.40
7.4.140.0150.00517.86
7.4.130.0100.00816.44
7.4.120.0070.01016.50
7.4.110.0120.00616.42
7.4.100.0120.00616.54
7.4.90.0060.01616.58
7.4.80.0030.01619.39
7.4.70.0000.01516.60
7.4.60.0130.00716.48
7.4.50.0100.00516.43
7.4.40.0060.01016.58
7.4.30.0130.00616.47
7.4.00.0000.01115.10
7.3.330.0000.00613.17
7.3.320.0060.00013.27
7.3.310.0000.00716.19
7.3.300.0000.00716.29
7.3.290.0000.00616.37
7.3.280.0060.01116.34
7.3.270.0110.00617.40
7.3.260.0120.00416.56
7.3.250.0070.01216.43
7.3.240.0120.00816.50
7.3.230.0130.00716.39
7.3.210.0150.00316.50
7.3.200.0130.00316.50
7.3.190.0060.01016.64
7.3.180.0100.01016.55
7.3.170.0110.00716.59
7.3.160.0090.00616.32
7.2.330.0070.01016.62
7.2.320.0100.00716.64
7.2.310.0110.00616.63
7.2.300.0110.00516.62
7.2.290.0030.01416.60
7.2.60.0030.00917.16
7.2.00.0030.01319.36
7.1.200.0030.00615.90
7.1.70.0080.00017.20
7.1.60.0250.01419.89
7.1.00.0100.07022.43
7.0.200.1250.00714.66
7.0.70.0600.06020.05
7.0.60.0700.04719.98
7.0.50.0600.05320.25
7.0.40.0530.05320.36
7.0.30.0470.06320.24
7.0.20.0530.05720.24
7.0.10.0530.05720.43
7.0.00.0570.06320.36
5.6.280.0070.07020.82
5.6.220.0430.06020.62
5.6.210.0730.07020.64
5.6.200.0530.07021.08
5.6.190.0400.06321.02
5.6.180.0430.06021.06
5.6.170.0470.06721.13
5.6.160.0430.06321.08
5.6.150.0470.05721.08
5.6.140.0470.05721.05
5.6.130.0500.06021.01
5.6.120.0130.06021.05
5.6.110.0270.06721.16
5.6.100.0470.05721.00
5.6.90.0570.05321.08
5.6.80.0670.07020.55
5.6.70.0430.05720.51
5.6.60.0400.06020.45
5.6.50.0430.05720.49
5.6.40.0430.05720.43
5.6.30.0500.05320.43
5.6.20.0600.04320.55
5.6.10.0700.04320.38
5.6.00.0400.06720.47
5.5.360.0630.05320.51
5.5.350.0530.05720.40
5.5.340.0470.06020.86
5.5.330.0400.06320.93
5.5.320.0370.06320.93
5.5.310.0500.06320.90
5.5.300.0470.06320.88
5.5.290.0470.06720.94
5.5.280.0130.05720.95
5.5.270.0500.05720.91
5.5.260.0570.05720.93
5.5.250.0470.06020.73
5.5.240.0400.06320.34
5.5.230.0530.05020.21
5.5.220.0430.05720.25
5.5.210.0430.06020.35
5.5.200.0370.07020.30
5.5.190.0430.05720.28
5.5.180.0530.05320.27
5.5.160.0500.06320.23
5.5.150.0370.06020.22
5.5.140.0600.04720.20
5.5.130.0530.04720.23
5.5.120.0500.05720.29
5.5.110.0500.05320.19
5.5.100.0500.06020.16
5.5.90.0470.05320.01
5.5.80.0430.06320.14
5.5.70.0570.06720.18
5.5.60.0500.05720.21
5.5.50.0500.05320.16
5.5.40.0570.04720.11
5.5.30.0500.06020.20
5.5.20.0370.06720.20
5.5.10.0570.06320.07
5.5.00.0570.05020.14

preferences:
27.57 ms | 403 KiB | 5 Q