3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = "huub.van.baal@planet.nl"; $subject = "This is subject"; $message = "<b>This is HTML message.</b>"; $message .= "<h1>This is headline.</h1>"; $header = "From: "Huub van Baal" <huub@workinmall.nl>\r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html\r\n"; $retval = mail ($to,$subject,$message,$header); if( $retval == true ) { echo "Message sent successfully..."; } else { echo "Message could not be sent..."; } ?>

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.6.140.0130.07318.14
5.6.130.0070.07318.27
5.6.120.0070.08721.09
5.6.110.0030.06020.97
5.6.100.0070.05320.97
5.6.90.0100.08720.96
5.6.80.0030.08320.25
5.5.300.0070.08317.98
5.5.290.0100.03717.98
5.5.280.0000.04320.87
5.5.270.0130.06320.83
5.5.260.0070.08020.64
5.5.250.0030.05720.61
5.5.240.0070.07320.27
5.4.450.0800.08319.20
5.4.440.0700.06719.34
5.4.430.0830.07319.69
5.4.420.0830.05019.45
5.4.410.0800.05719.35
5.4.400.0730.06719.16
5.4.390.0700.06319.28
5.4.380.0700.06019.06
5.4.370.0700.05719.14
5.4.360.1000.06019.15
5.4.350.0770.06719.36
5.4.340.0870.05718.87
5.4.320.0700.07319.23
5.4.310.0700.05719.26
5.4.300.0830.05319.24
5.4.290.0830.06319.14
5.4.280.0870.08019.25
5.4.270.0730.05719.16
5.4.260.0800.06019.25
5.4.250.0670.06319.29
5.4.240.0830.04718.87
5.4.230.0800.06019.12
5.4.220.0930.05719.28
5.4.210.0870.05019.27
5.4.200.0900.05018.83
5.4.190.0700.06719.27
5.4.180.0870.04719.14
5.4.170.0730.04719.14
5.4.160.0630.05719.21
5.4.150.0670.07318.96
5.4.140.0830.05716.34
5.4.130.0770.05016.31
5.4.120.0700.05316.40
5.4.110.0700.05316.60
5.4.100.0770.04716.45
5.4.90.0670.05316.58
5.4.80.0730.05016.41
5.4.70.0270.04716.45
5.4.60.0130.05016.51
5.4.50.0230.05716.53
5.4.40.0270.06716.17
5.4.30.0130.07316.48
5.4.20.0270.03716.16
5.4.10.0330.06016.57

preferences:
131.03 ms | 1398 KiB | 7 Q