3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Contenu = ' $mail = array(); $tab_options = explode("\n",str_replace("\r","",$page["destinataires"])); foreach($tab_options as $key=>$tab) { $tab_option = explode("|",$tab); if(isset($tab_option[0]) && $tab_option[0]) $mail["emails_to"][$key]["email_to"] = (isset($tab_option[0]) && $tab_option[0]?$tab_option[0]:""); if(isset($tab_option[1]) && $tab_option[1]) $mail["emails_to"][$key]["email_to_name"] = (isset($tab_option[1]) && $tab_option[1]?$tab_option[1]:""); } $mail["email_from"] = "test"; $mail["email_from_name"] = ucfirst(request("nom"))." ".ucfirst(request("prenom")); $mail["subject"] = "[".variable_get("rs")."] - Message du site"; $mail["message"] = "Bonjour,<br /><br />Un prospect souhaiterait avoir des renseignements. <br />Voici les informations le concernant :<br />"; foreach($form_fields as $key=>$value) '; $CorrectionHTML = '$mail["email_from"] = request("email");'; $NouveauContenu = preg_replace('/\\$mail\\[\\"email_from\\"\\](.+);/imsU', $CorrectionHTML , $Contenu); //$NouveauContenu = preg_replace("/\$mail["email_from"](.+);/",$CorrectionHTML,$Contenu); //Previous echo $NouveauContenu ;

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.0130.00716.63
8.3.50.0150.00522.02
8.3.40.0070.00718.89
8.3.30.0060.00918.88
8.3.20.0040.00420.38
8.3.10.0080.00023.61
8.3.00.0090.00317.63
8.2.180.0100.01016.75
8.2.170.0110.00422.96
8.2.160.0000.01520.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0070.00022.26
8.2.110.0070.00421.19
8.2.100.0040.00718.03
8.2.90.0030.00618.03
8.2.80.0060.00318.11
8.2.70.0030.00617.75
8.2.60.0080.00017.75
8.2.50.0080.00017.75
8.2.40.0090.00019.76
8.2.30.0000.00817.96
8.2.20.0040.00417.85
8.2.10.0050.00318.21
8.2.00.0000.00917.89
8.1.280.0000.01425.92
8.1.270.0030.00623.97
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00722.46
8.1.230.0090.00320.82
8.1.220.0000.00817.89
8.1.210.0040.00418.83
8.1.200.0000.00917.35
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0050.00318.69
8.1.160.0070.00021.97
8.1.150.0000.00718.68
8.1.140.0040.00417.46
8.1.130.0000.00717.86
8.1.120.0050.00217.53
8.1.110.0050.00317.45
8.1.100.0050.00317.59
8.1.90.0050.00317.56
8.1.80.0000.00817.56
8.1.70.0030.00317.51
8.1.60.0050.00517.67
8.1.50.0040.00417.60
8.1.40.0000.00717.45
8.1.30.0040.00417.64
8.1.20.0040.00417.68
8.1.10.0050.00217.68
8.1.00.0030.00517.47
8.0.300.0070.00019.98
8.0.290.0040.00417.00
8.0.280.0000.00718.38
8.0.270.0000.00717.29
8.0.260.0000.00717.39
8.0.250.0000.00717.15
8.0.240.0000.00817.11
8.0.230.0000.00716.96
8.0.220.0000.00716.88
8.0.210.0070.00016.86
8.0.200.0040.00417.01
8.0.190.0030.00517.09
8.0.180.0050.00217.00
8.0.170.0040.00416.93
8.0.160.0000.00717.01
8.0.150.0000.00816.84
8.0.140.0070.00416.91
8.0.130.0000.00613.38
8.0.120.0040.00416.99
8.0.110.0000.00816.98
8.0.100.0050.00217.09
8.0.90.0040.00416.81
8.0.80.0150.00616.95
8.0.70.0040.00416.81
8.0.60.0000.00717.09
8.0.50.0040.00416.97
8.0.30.0130.00617.04
8.0.20.0160.00917.40
8.0.10.0040.00316.96
8.0.00.0120.00916.92
7.4.330.0050.00015.13
7.4.320.0000.00616.65
7.4.300.0030.00616.64
7.4.290.0030.00316.67
7.4.280.0040.00416.64
7.4.270.0080.00016.56
7.4.260.0000.00716.75
7.4.250.0000.00816.71
7.4.240.0000.00716.71
7.4.230.0000.00816.79
7.4.220.0060.01216.70
7.4.210.0080.00716.63
7.4.200.0040.00416.56
7.4.190.0040.00316.92
7.4.160.0120.00616.77
7.4.150.0100.01017.40
7.4.140.0050.01217.86
7.4.130.0140.00816.76
7.4.120.0110.00616.59
7.4.110.0060.01216.71
7.4.100.0150.00916.70
7.4.90.0080.00816.53
7.4.80.0170.00619.39
7.4.70.0040.01316.52
7.4.60.0100.00716.58
7.4.50.0060.00016.47
7.4.40.0140.00316.48
7.4.30.0090.00616.60
7.4.00.0040.01415.10
7.3.330.0030.00313.20
7.3.320.0030.00313.09
7.3.310.0000.00816.37
7.3.300.0030.00316.20
7.3.290.0090.01216.30
7.3.280.0090.01016.36
7.3.270.0120.00417.40
7.3.260.0110.00816.63
7.3.250.0120.00616.41
7.3.240.0120.00916.37
7.3.230.0100.00716.39
7.3.210.0070.01516.47
7.3.200.0140.00819.39
7.3.190.0090.01216.59
7.3.180.0070.01016.57
7.3.170.0030.01316.36
7.3.160.0030.01216.82
7.3.120.0070.00715.11
7.2.330.0060.01216.65
7.2.320.0110.00516.56
7.2.310.0120.00616.79
7.2.300.0070.01016.70
7.2.290.0130.01116.95
7.2.60.0060.01116.93
7.2.00.0040.00819.61
7.1.200.0000.00716.03
7.1.100.0030.00718.22
7.1.70.0040.00717.45
7.1.60.0030.02119.46
7.1.50.0030.02017.13
7.1.00.0070.07022.59
7.0.200.0000.00717.04
7.0.140.0030.07321.97
7.0.60.0300.07720.07
7.0.50.0100.07317.91
7.0.40.0000.07320.42
7.0.30.0200.04320.16
7.0.20.0370.07320.04
7.0.10.0030.05320.19
7.0.00.0070.08720.22
5.6.280.0030.07721.09
5.6.210.0070.08320.46
5.6.200.0030.07318.22
5.6.190.0100.08020.39
5.6.180.0270.07320.67
5.6.170.0330.04720.42
5.6.160.0170.05020.36
5.6.150.0100.07018.20
5.6.140.0030.04718.21
5.6.130.0030.07318.12
5.6.120.0070.08320.99
5.6.110.0000.04321.03
5.6.100.0030.04321.00
5.6.90.0070.06321.12
5.6.80.0130.07020.40
5.5.350.0200.08020.36
5.5.340.0100.07717.99
5.5.330.0100.08320.19
5.5.320.0270.07320.18
5.5.310.0270.08720.17
5.5.300.0100.08018.00
5.5.290.0070.09017.94
5.5.280.0100.05020.76
5.5.270.0070.09020.89
5.5.260.0070.08320.67
5.5.250.0030.04020.70
5.5.240.0170.03720.26
5.4.450.3400.03719.45
5.4.440.0070.03719.47
5.4.430.3970.03719.45
5.4.420.3170.03719.41
5.4.410.3370.04019.35
5.4.400.3430.03718.97
5.4.390.3430.04319.13
5.4.380.3530.03018.87
5.4.370.0030.07318.87
5.4.360.5700.04319.15
5.4.350.4070.04319.09
5.4.340.4400.03719.14
5.4.320.3800.04319.14
5.4.310.3970.03719.06
5.4.300.3830.04019.04
5.4.290.4100.03319.13
5.4.280.3730.03319.03
5.4.270.3930.04019.05
5.4.260.4600.04019.14
5.4.250.4500.04019.15
5.4.240.4670.03019.15
5.4.230.4100.04319.17
5.4.220.4030.04318.91
5.4.210.3700.04018.99
5.4.200.3800.02719.14
5.4.190.4600.03719.03
5.4.180.4030.03719.12
5.4.170.3570.03318.87
5.4.160.4200.03719.12
5.4.150.3570.04319.12
5.4.140.4500.03716.26
5.4.130.3630.03716.38
5.4.120.4130.04016.22
5.4.110.3770.03716.26
5.4.100.4200.04016.50
5.4.90.3770.04016.13
5.4.80.3670.03316.11
5.4.70.3800.04016.35
5.4.60.3870.03716.38
5.4.50.3270.03716.29
5.4.40.3970.03316.23
5.4.30.3400.02716.47
5.4.20.3800.03716.36
5.4.10.3870.03016.36
5.4.00.4230.03715.84
5.3.290.3630.04014.68
5.3.280.4070.04314.55
5.3.270.3730.03014.48
5.3.260.4100.03714.42
5.3.250.4130.04014.50
5.3.240.3900.03014.52
5.3.230.3930.03014.53
5.3.220.3930.03014.49
5.3.210.3900.02714.51
5.3.200.4030.04014.36
5.3.190.3870.03314.50
5.3.180.3700.04014.49
5.3.170.4100.04014.49
5.3.160.4300.03714.49
5.3.150.3900.03714.51
5.3.140.3700.03314.53
5.3.130.3930.03314.50
5.3.120.3770.03714.64
5.3.110.3830.04014.63
5.3.100.4500.03713.98
5.3.90.4170.03714.00
5.3.80.4470.04013.94
5.3.70.3900.04013.96
5.3.60.3900.03313.95
5.3.50.4100.03713.88
5.3.40.3630.03313.88
5.3.30.3530.04013.86
5.3.20.3700.03313.63
5.3.10.3500.03713.49
5.3.00.3400.03313.65
5.2.170.2970.03011.03
5.2.160.3000.03311.04
5.2.150.3200.02311.22
5.2.140.3330.03711.14
5.2.130.3430.03011.11
5.2.120.3000.02711.04
5.2.110.3130.02711.00
5.2.100.2800.03011.00
5.2.90.2570.02711.11
5.2.80.2770.03710.97
5.2.70.3170.02311.04
5.2.60.2700.02711.13
5.2.50.2570.03010.84
5.2.40.1770.02310.82
5.2.30.2170.03010.96
5.2.20.1700.03010.91
5.2.10.1370.02710.75
5.2.00.1830.01710.67
5.1.60.1930.0209.97
5.1.50.2400.0279.96
5.1.40.2870.02710.02
5.1.30.1800.02710.41
5.1.20.1970.02310.20
5.1.10.2100.02710.08
5.1.00.2670.03010.14
5.0.50.1400.0238.56
5.0.40.1270.0178.40
5.0.30.1470.0338.15
5.0.20.1370.0178.21
5.0.10.1530.0208.16
5.0.00.1330.0278.15
4.4.90.1030.0176.26
4.4.80.1200.0176.26
4.4.70.0970.0136.26
4.4.60.0970.0176.26
4.4.50.1170.0176.26
4.4.40.1230.0236.26
4.4.30.0770.0176.26
4.4.20.1200.0176.26
4.4.10.1470.0106.26
4.4.00.1530.0276.26
4.3.110.1400.0176.26
4.3.100.1570.0176.26
4.3.90.1430.0136.27
4.3.80.1500.0276.27
4.3.70.1570.0176.27
4.3.60.0770.0136.27
4.3.50.0030.0306.27
4.3.40.0030.0336.27
4.3.30.0030.0206.27
4.3.20.0000.0206.27
4.3.10.0100.0306.27
4.3.00.0000.0336.27

preferences:
48.53 ms | 401 KiB | 5 Q