3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST['email'])) { // EDIT THE 2 LINES BELOW AS REQUIRED $email_to = "galaxytrackercontact@yahoo.com"; $email_subject = "Galaxy Tracker Help"; function died($error) { // your error code can go here echo "<strong>Προέκυψε ένα ή περισσότερα σφάλματα κατα την αποστολή του μηνύματος σας!<br></strong>"; echo $error."<br/>"; echo "<strong>Παρακαλούμε διορθώστε τα και δοκιμάστε ξανά.<br /><br /></strong>"; die(); } // validation expected data exists if( !isset($_POST['email']) || !isset($_POST['telephone']) || !isset($_POST['comments'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); } $email_from = $_POST['email']; // required $telephone = $_POST['telephone']; // not required $comments = $_POST['comments']; // required $error_message = ""; $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/'; if(!preg_match($email_exp,$email_from)) { $error_message .= 'Παρακαλούμε συμπληρώστε σωστά το email σας.<br />'; } $string_exp = "/^[A-Za-z .'-]+$/"; if(strlen($comments) < 2) { $error_message .= 'Ξέχασες να μας γράψεις το πρόβλημα που αντιμετωπίζεις.<br />'; } if(strlen($error_message) > 0) { died($error_message); } $email_message = ""; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Email: ".clean_string($email_from)."\n"; $email_message .= "Username: ".clean_string($telephone)."\n"; $email_message .= "Πρόβλημα: ".clean_string($comments)."\n"; // create email headers $headers = 'From: '.$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . 'X-Mailer: PHP/' . phpversion(); @mail($email_to, $email_subject, $email_message, $headers); ?> <!-- include your own success html here --> Επιτυχία αποστολής!<br> <br> Ευχαριστούμε που επικοινωνήσατε μαζί μας.<br> Ένα μέλος της ομάδας μας έχει αναλάβει το μήνυμα σας!<br> Θα σας απαντήσουμε το συντομότερο δυνατό<br> <?php } ?>

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)
7.4.00.0020.01614.97
7.3.120.0070.01114.62
7.3.110.0070.00914.97
7.3.100.0080.00614.83
7.3.90.0030.00814.69
7.3.80.0070.00714.65
7.3.70.0070.00614.71
7.3.60.0090.00814.79
7.3.50.0020.01114.91
7.3.40.0050.00814.63
7.3.30.0110.00514.76
7.3.20.0050.01016.58
7.3.10.0040.01016.39
7.3.00.0040.01116.58
7.2.250.0120.00715.12
7.2.240.0080.01115.00
7.2.230.0050.01014.86
7.2.220.0050.01014.78
7.2.210.0030.01115.05
7.2.200.0050.01014.76
7.2.190.0080.00814.88
7.2.180.0070.00714.88
7.2.170.0100.00614.80
7.2.130.0090.00616.86
7.2.120.0070.00716.86
7.2.110.0070.00716.64
7.2.100.0060.00616.64
7.2.90.0090.00616.89
7.2.80.0030.01416.83
7.2.70.0050.00517.04
7.2.60.0060.00916.91
7.2.50.0000.01517.00
7.2.40.0030.00917.01
7.2.30.0040.01216.87
7.2.20.0080.00416.40
7.2.10.0090.00016.86
7.2.00.0020.01018.11
7.1.330.0010.01215.63
7.1.320.0050.00715.55
7.1.310.0030.00715.51
7.1.300.0090.00615.72
7.1.290.0040.01115.54
7.1.280.0030.01015.70
7.1.270.0080.00315.69
7.1.260.0040.01015.66
7.1.250.0000.00815.86
7.1.100.0060.00618.11
7.1.70.0060.01016.83
7.1.60.0120.01219.33
7.1.50.0040.01816.85
7.1.00.0030.07722.28
7.0.200.0000.00816.34
7.0.140.0070.07021.99
7.0.60.0030.08719.88
7.0.50.0030.04017.90
7.0.40.0030.08020.27
7.0.30.0630.05320.34
7.0.20.0170.04320.09
7.0.10.0030.07720.23
7.0.00.0070.08320.09
5.6.280.0030.07321.08
5.6.210.0070.08020.49
5.6.200.0030.08718.16
5.6.190.0130.08320.61
5.6.180.0330.06720.67
5.6.170.0230.04020.71
5.6.160.0100.08020.46
5.6.150.0130.03718.29
5.6.140.0070.04018.17
5.6.130.0070.05018.27
5.6.120.0030.08721.11
5.6.110.0170.07320.88
5.6.100.0100.04321.00
5.6.90.0000.09721.02
5.6.80.0100.07020.37
5.5.350.0070.07320.51
5.5.340.0030.03717.97
5.5.330.0030.07020.43
5.5.320.0400.07720.20
5.5.310.0230.04320.20
5.5.300.0000.04318.04
5.5.290.0070.04017.96
5.5.280.0070.08720.74
5.5.270.0070.05720.78
5.5.260.0130.07720.66
5.5.250.0100.06320.61
5.5.240.0130.08020.18
5.4.450.0670.02719.46
5.4.440.0900.03719.48
5.4.430.0030.03719.46
5.4.420.0900.05319.47
5.4.410.0930.04719.39
5.4.400.0770.03319.14
5.4.390.1000.02719.22
5.4.380.0500.04718.58
5.4.370.0430.05718.59
5.4.360.0330.06018.80
5.4.350.0370.06018.84
5.4.340.0670.06718.76
5.4.320.0080.04412.51
5.4.310.0050.05212.51
5.4.300.0090.04112.52
5.4.290.0070.04412.51
5.4.280.0050.05912.39
5.4.270.0070.05312.39
5.4.260.0130.05312.38
5.4.250.0120.05412.38
5.4.240.0100.05412.38
5.4.230.0140.05212.38
5.4.220.0150.04712.37
5.4.210.0150.04712.38
5.4.200.0120.05412.37
5.4.190.0100.05912.38
5.4.180.0100.05012.37
5.4.170.0090.05612.38
5.4.160.0090.05412.37
5.4.150.0110.04812.38
5.4.140.0120.05412.05
5.4.130.0090.05112.04
5.4.120.0070.04812.00
5.4.110.0120.05012.00
5.4.100.0110.04812.00
5.4.90.0110.05912.00
5.4.80.0220.04811.99
5.4.70.0120.04912.00
5.4.60.0090.05711.99
5.4.50.0090.06811.99
5.4.40.0110.05711.98
5.4.30.0120.05411.98
5.4.20.0110.05911.98
5.4.10.0110.05211.98
5.4.00.0090.04611.47
5.3.290.0040.04812.80
5.3.280.0110.05012.71
5.3.270.0110.05212.72
5.3.260.0050.06112.72
5.3.250.0130.05112.72
5.3.240.0090.05712.72
5.3.230.0090.05912.71
5.3.220.0130.05812.68
5.3.210.0130.05812.68
5.3.200.0110.05012.68
5.3.190.0110.05212.68
5.3.180.0090.05512.68
5.3.170.0130.05212.67
5.3.160.0110.05312.67
5.3.150.0070.05712.68
5.3.140.0100.04912.66
5.3.130.0090.05412.65
5.3.120.0100.05412.66
5.3.110.0110.05212.66
5.3.100.0120.04912.12
5.3.90.0080.05612.09
5.3.80.0110.04912.08
5.3.70.0110.04812.08
5.3.60.0120.04712.06
5.3.50.0130.05212.01
5.3.40.0120.04812.01
5.3.30.0120.04411.97
5.3.20.0100.05011.76
5.3.10.0070.05311.71
5.3.00.0130.04511.71
5.2.170.0080.0409.21
5.2.160.0090.0399.21
5.2.150.0110.0379.21
5.2.140.0050.0409.21
5.2.130.0100.0379.17
5.2.120.0120.0479.17
5.2.110.0100.0509.18
5.2.100.0080.0409.18
5.2.90.0080.0379.17
5.2.80.0080.0329.16
5.2.70.0090.0359.16
5.2.60.0090.0449.11
5.2.50.0070.0419.09
5.2.40.0040.0329.06
5.2.30.0040.0349.04
5.2.20.0060.0349.04
5.2.10.0050.0438.94
5.2.00.0050.0468.80
5.1.60.0100.0348.09
5.1.50.0030.0308.09
5.1.40.0050.0268.07
5.1.30.0090.0438.41
5.1.20.0040.0298.45
5.1.10.0050.0268.17
5.1.00.0030.0288.16
5.0.50.0050.0216.64
5.0.40.0050.0196.51
5.0.30.0040.0326.32
5.0.20.0090.0156.28
5.0.10.0020.0226.27
5.0.00.0030.0326.25
4.4.90.0040.0164.78
4.4.80.0040.0154.75
4.4.70.0030.0174.75
4.4.60.0040.0164.76
4.4.50.0050.0144.77
4.4.40.0040.0264.71
4.4.30.0070.0134.76
4.4.20.0050.0154.85
4.4.10.0040.0164.85
4.4.00.0090.0234.76
4.3.110.0040.0184.67
4.3.100.0030.0174.66
4.3.90.0080.0124.63
4.3.80.0040.0254.59
4.3.70.0040.0194.63
4.3.60.0080.0194.63
4.3.50.0060.0204.63
4.3.40.0060.0314.54
4.3.30.0050.0213.31
4.3.20.0020.0243.30
4.3.10.0050.0203.26
4.3.00.0130.02013.47

preferences:
31.94 ms | 401 KiB | 5 Q