3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from = '<fromaddress@gmail.com>'; $mto = '<pradeep.bande01@gmail.com>'; $subject = "Hi"; $body = "Hi, How are you?"; $headers =array( 'From' => $from, 'To' => $mto, 'Subject' => 'hii' ); $smtp = Mail::factory('smtp', array( 'host' => 'bh-59.webhostbox.net', 'port' => '587', 'auth' => true, 'username' => 'pradeep@prasadjadhav.org', 'password' => '123456' )); $mail=$smtp->send($mto, $headers, $body); if (PEAR::isError($mail)) { echo('<p>' . $mail->getMessage() . '</p>'); } else { echo('<p>Message successfully sent!</p>'); } ?>

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.40.0090.00618.83
8.3.30.0000.01418.59
8.3.20.0040.00420.36
8.3.10.0030.00520.48
8.3.00.0050.00321.89
8.2.170.0140.00022.96
8.2.160.0070.00722.11
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00521.03
8.2.120.0050.00326.35
8.2.110.0060.01621.15
8.2.100.0070.00718.22
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0050.00318.09
8.2.40.0040.00420.52
8.2.30.0000.00719.36
8.2.20.0050.00217.81
8.2.10.0040.00418.06
8.2.00.0040.00418.00
8.1.270.0040.00422.18
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00321.48
8.1.230.0000.01017.70
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0060.00316.99
8.1.180.0000.00818.10
8.1.170.0030.00718.55
8.1.160.0040.00420.71
8.1.150.0040.00418.88
8.1.140.0000.00819.39
8.1.130.0030.00317.64
8.1.120.0000.00717.31
8.1.110.0030.00517.29
8.1.100.0050.00217.46
8.1.90.0040.00417.33
8.1.80.0030.00317.46
8.1.70.0030.00317.32
8.1.60.0050.00317.51
8.1.50.0090.00017.53
8.1.40.0050.00317.49
8.1.30.0030.00617.57
8.1.20.0040.00417.55
8.1.10.0050.00317.44
8.1.00.0000.00817.52
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00818.39
8.0.270.0000.00717.26
8.0.260.0000.00717.19
8.0.250.0040.00417.03
8.0.240.0050.00316.85
8.0.230.0050.00216.84
8.0.220.0030.00316.78
8.0.210.0000.00716.90
8.0.200.0030.00316.82
8.0.190.0070.00016.96
8.0.180.0070.00416.83
8.0.170.0000.00816.85
8.0.160.0000.00816.80
8.0.150.0070.00016.75
8.0.140.0040.00416.79
8.0.130.0030.00313.36
8.0.120.0000.00816.89
8.0.110.0080.00016.82
8.0.100.0040.00416.76
8.0.90.0020.00516.91
8.0.80.0000.01816.83
8.0.70.0050.00316.91
8.0.60.0070.00016.89
8.0.50.0000.01016.93
8.0.30.0130.00316.99
8.0.20.0090.01017.40
8.0.10.0070.00017.05
8.0.00.0080.00916.75
7.4.330.0000.00516.79
7.4.320.0000.00616.39
7.4.300.0000.00616.52
7.4.290.0050.00316.61
7.4.280.0070.00016.39
7.4.270.0000.00716.49
7.4.260.0080.00016.60
7.4.250.0080.00016.61
7.4.240.0060.00316.63
7.4.230.0000.00716.69
7.4.220.0150.00316.50
7.4.210.0140.00616.63
7.4.200.0000.00716.44
7.4.160.0070.01316.39
7.4.150.0090.01217.40
7.4.140.0110.00817.86
7.4.130.0070.01216.62
7.4.120.0090.00716.48
7.4.110.0090.00916.61
7.4.100.0120.00616.58
7.4.90.0110.00716.51
7.4.80.0070.01019.39
7.4.70.0100.01116.45
7.4.60.0090.00916.71
7.4.50.0040.01516.65
7.4.40.0040.01516.63
7.4.30.0090.01216.61
7.4.00.0040.01214.98
7.3.330.0030.00313.27
7.3.320.0000.00513.17
7.3.310.0000.00716.18
7.3.300.0000.00816.36
7.3.290.0060.00916.34
7.3.280.0110.00616.32
7.3.270.0060.01017.40
7.3.260.0100.00816.44
7.3.250.0070.01016.46
7.3.240.0080.01016.44
7.3.230.0030.01516.75
7.3.210.0160.00016.37
7.3.200.0040.01816.33
7.3.190.0080.00816.48
7.3.180.0100.01316.54
7.3.170.0100.00616.59
7.3.160.0160.00616.32
7.2.330.0140.00316.38
7.2.320.0080.00816.59
7.2.310.0090.00616.49
7.2.300.0030.01716.21
7.2.290.0060.00916.67
7.2.60.0070.00716.77
7.2.00.0070.00719.48
7.1.200.0040.01115.71
7.1.100.0150.00417.97
7.1.70.0040.00417.06
7.1.60.0140.01119.19
7.1.50.0000.02216.86
7.1.00.0100.07022.36
7.0.200.1730.00714.45
7.0.60.0030.07721.81
7.0.50.0030.04017.89
7.0.40.0030.05320.19
7.0.30.0300.03720.10
7.0.20.0200.08320.18
7.0.10.0030.05720.13
7.0.00.0070.07020.19
5.6.280.0000.03321.07
5.6.210.0100.05320.68
5.6.200.0070.07718.22
5.6.190.0000.04320.43
5.6.180.0200.04720.56
5.6.170.0130.04720.51
5.6.160.0130.03320.30
5.6.150.0070.04318.21
5.6.140.0070.07018.16
5.6.130.0070.07018.08
5.6.120.0100.07721.11
5.6.110.0130.09021.02
5.6.100.0070.05321.04
5.6.90.0030.05720.87
5.6.80.0130.07320.53
5.5.350.0170.05020.41
5.5.340.0070.05318.02
5.5.330.0130.08020.21
5.5.320.0430.07720.28
5.5.310.0370.07020.27
5.5.300.0070.06718.00
5.5.290.0030.04017.98
5.5.280.0030.07020.88
5.5.270.0130.07020.96
5.5.260.0030.09020.88
5.5.250.0030.08320.59
5.5.240.0070.05020.35

preferences:
35.71 ms | 400 KiB | 5 Q