3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST['submit'])) { $name= $_POST['name']; $email = $_POST['email']; $comments = $_POST['comments']; $to = "YOUR EMAIL HERE"; $subject = "Message from $email"; $message = "$comments \n Name: $name \n Email: $email \n"; if ($name) { if($email) { if($comments) { mail ($to, $subject, $message); } } } } else { ?> <form action="contact.php" method="POST"> Name:<br /> <input type="text" name="name" /><br /><br /> Email:<br /> <input type="text" name="email" /><br /><br /> Comments:<br /> <textarea cols="5" rows="10" name="comments"></textarea><br /><br /> <input type="submit" value="Send Message" name="submit" /> </form>

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)
5.4.150.0260.06112.33
5.4.140.0160.06412.01
5.4.130.0180.04812.00
5.4.120.0190.05611.96
5.4.110.0200.05611.96
5.4.100.0210.05311.96
5.4.90.0180.06011.96
5.4.80.0180.05611.96
5.4.70.0180.05711.95
5.4.60.0170.05711.95
5.4.50.0220.05411.95
5.4.40.0140.04211.94
5.4.30.0230.05711.93
5.4.20.0180.05811.93
5.4.10.0120.04311.93
5.4.00.0140.04311.43
5.3.250.0070.03712.72
5.3.240.0120.04712.72
5.3.230.0120.04612.71
5.3.220.0200.05512.68
5.3.210.0120.04612.68
5.3.200.0260.07112.68
5.3.190.0240.05512.68
5.3.180.0260.06212.67
5.3.170.0160.04112.67
5.3.160.0150.04112.67
5.3.150.0130.04512.68
5.3.140.0320.06712.66
5.3.130.0200.05512.66
5.3.120.0230.06012.66
5.3.110.0170.04312.66
5.3.100.0330.06512.12
5.3.90.0220.05212.08
5.3.80.0140.04112.07
5.3.70.0250.05512.08
5.3.60.0250.06812.06
5.3.50.0190.06112.00
5.3.40.0210.05812.00
5.3.30.0220.05611.95
5.3.20.0190.05611.72
5.3.10.0210.05611.68
5.3.00.0170.04911.66
5.2.170.0100.0369.17
5.2.160.0170.0479.17
5.2.150.0100.0359.17
5.2.140.0130.0319.17
5.2.130.0120.0329.13
5.2.120.0120.0319.13
5.2.110.0190.0559.13
5.2.100.0150.0409.14
5.2.90.0190.0449.13
5.2.80.0110.0339.12
5.2.70.0180.0499.12
5.2.60.0100.0339.08
5.2.50.0140.0399.05
5.2.40.0150.0399.02
5.2.30.0100.0349.00
5.2.20.0090.0349.00
5.2.10.0120.0308.92
5.2.00.0100.0418.77
5.1.60.0100.0268.06
5.1.50.0130.0448.06
5.1.40.0130.0448.05
5.1.30.0100.0288.39
5.1.20.0140.0458.42
5.1.10.0170.0528.14
5.1.00.0100.0298.14
5.0.50.0160.0356.63
5.0.40.0070.0236.48
5.0.30.0110.0426.30
5.0.20.0100.0306.27
5.0.10.0070.0226.25
5.0.00.0070.0346.24
4.4.90.0060.0174.78
4.4.80.0060.0184.75
4.4.70.0130.0324.75
4.4.60.0050.0184.75
4.4.50.0090.0344.77
4.4.40.0050.0284.71
4.4.30.0090.0344.76
4.4.20.0110.0234.84
4.4.10.0060.0174.85
4.4.00.0120.0414.76
4.3.110.0040.0204.67
4.3.100.0070.0154.67
4.3.90.0050.0174.63
4.3.80.0070.0254.58
4.3.70.0100.0224.63
4.3.60.0040.0194.63
4.3.50.0100.0254.63
4.3.40.0060.0294.53
4.3.30.0120.0313.31
4.3.20.0030.0183.29
4.3.10.0030.0183.25
4.3.00.0030.0208.13

preferences:
140.91 ms | 1394 KiB | 7 Q