3v4l.org

run code in 300+ PHP versions simultaneously
<?php $js_date = "12.12.2013"; $js_time = "10.00"; $str = 'http://www.abctehno.ee'; function auto_link($str, $type = 'both', $popup = FALSE) { if ($type != 'email') { if (preg_match_all("#(^|\s|\()((http(s?)://)|(www\.))(\w+[^\s\)\<]+)#i", $str, $matches)) { $pop = ($popup == TRUE) ? " target=\"_blank\" " : ""; for ($i = 0; $i < sizeof($matches['0']); $i++) { $period = ''; if (preg_match("|\.$|", $matches['6'][$i])) { $period = '.'; $matches['6'][$i] = substr($matches['6'][$i], 0, -1); } $str = str_replace($matches['0'][$i], $matches['1'][$i].'<a href="http'. $matches['4'][$i].'://'. $matches['5'][$i]. $matches['6'][$i].'"'.$pop.'>http'. $matches['4'][$i].'://'. $matches['5'][$i]. $matches['6'][$i].'</a>'. $period, $str); } } } if ($type != 'url') { if (preg_match_all("/([a-zA-Z0-9_\.\-]+)@([a-zA-Z0-9\-]+)\.([a-zA-Z0-9\-\.]*)/i", $str, $matches)) { for ($i = 0; $i < sizeof($matches['0']); $i++) { $period = ''; if (preg_match("|\.$|", $matches['3'][$i])) { $period = '.'; $matches['3'][$i] = substr($matches['3'][$i], 0, -1); } $str = str_replace($matches['0'][$i], safe_mailto($matches['1'][$i].'@'.$matches['2'][$i].'.'.$matches['3'][$i]).$period, $str); } } } return $str; } $email_message ="\n Lugupeetud klient, \n \n teile broneeritud ülevaatuse aeg on ".$js_date." kell ".$js_time.". \n ABC Tehno asub aadressil Sõpruse pst 27, tel: 6 999 227, email: ".$str.".\n Tuletame meelde, et hilinemisel kaotab broneering kehtivuse. \n \n Kohtumiseni, \n ABC Tehno";; echo $email_message; ?>

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.0070.01416.75
8.3.50.0110.00818.32
8.3.40.0070.01418.71
8.3.30.0150.00018.77
8.3.20.0000.00718.78
8.3.10.0040.00420.36
8.3.00.0070.00419.26
8.2.180.0150.00316.63
8.2.170.0000.01522.96
8.2.160.0140.00321.99
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00219.79
8.2.110.0030.00720.98
8.2.100.0070.00417.78
8.2.90.0040.00421.21
8.2.80.0000.00819.32
8.2.70.0050.00317.63
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0050.00318.22
8.2.30.0040.00417.98
8.2.20.0040.00417.61
8.2.10.0000.00817.70
8.2.00.0000.00817.65
8.1.280.0090.00625.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0070.00328.09
8.1.240.0040.00423.97
8.1.230.0040.00720.89
8.1.220.0080.00017.74
8.1.210.0100.00019.03
8.1.200.0030.00617.25
8.1.190.0050.00317.40
8.1.180.0080.00018.10
8.1.170.0000.00818.96
8.1.160.0000.00718.85
8.1.150.0000.00718.71
8.1.140.0060.00317.41
8.1.130.0000.00817.90
8.1.120.0000.00717.48
8.1.110.0040.00417.39
8.1.100.0070.00017.52
8.1.90.0040.00417.43
8.1.80.0000.00817.52
8.1.70.0000.00717.38
8.1.60.0040.00417.50
8.1.50.0000.00717.41
8.1.40.0000.00717.54
8.1.30.0040.00417.59
8.1.20.0030.00517.61
8.1.10.0060.00317.53
8.1.00.0040.00417.30
8.0.300.0040.00420.08
8.0.290.0030.00616.75
8.0.280.0040.00418.49
8.0.270.0070.00017.30
8.0.260.0030.00316.89
8.0.250.0040.00417.04
8.0.240.0070.00417.00
8.0.230.0000.00716.81
8.0.220.0000.00716.81
8.0.210.0050.00216.82
8.0.200.0000.00616.97
8.0.190.0030.00317.03
8.0.180.0070.00016.98
8.0.170.0040.00416.83
8.0.160.0040.00416.94
8.0.150.0030.00616.81
8.0.140.0070.00416.92
8.0.130.0000.00613.39
8.0.120.0000.00816.90
8.0.110.0040.00416.90
8.0.100.0050.00216.93
8.0.90.0000.00716.94
8.0.80.0100.00616.92
8.0.70.0000.00716.83
8.0.60.0050.00216.73
8.0.50.0060.00316.95
8.0.30.0130.00816.97
8.0.20.0100.01017.18
8.0.10.0050.00316.98
8.0.00.0060.01316.64
7.4.330.0050.00013.04
7.4.320.0000.00616.47
7.4.300.0030.00316.45
7.4.290.0070.00016.58
7.4.280.0000.00816.53
7.4.270.0030.00316.64
7.4.260.0030.00313.30
7.4.250.0060.00316.67
7.4.240.0040.00416.64
7.4.230.0040.00416.59
7.4.220.0060.01316.51
7.4.210.0060.00916.56
7.4.200.0050.00316.58
7.4.190.0000.00816.64
7.4.160.0130.01016.55
7.4.150.0070.01116.54
7.4.140.0050.01416.50
7.4.130.0050.01316.43
7.4.120.0080.00916.45
7.4.110.0100.00716.46
7.4.100.0110.00616.41
7.4.90.0080.01016.49
7.4.80.0100.00716.25
7.4.70.0100.00716.36
7.4.60.0030.01416.39
7.4.50.0040.00416.59
7.4.40.0170.00016.55
7.4.30.0130.00616.62
7.4.10.0060.01215.07
7.4.00.0040.01114.87
7.3.330.0030.00313.28
7.3.320.0060.00013.22
7.3.310.0020.00516.38
7.3.300.0000.00816.27
7.3.290.0040.01016.32
7.3.280.0140.00516.36
7.3.270.0130.00316.30
7.3.260.0070.01016.43
7.3.250.0040.01316.38
7.3.240.0160.00316.39
7.3.230.0070.01016.71
7.3.210.0070.01016.45
7.3.200.0120.00819.39
7.3.190.0100.00716.38
7.3.180.0080.00916.28
7.3.170.0100.00716.50
7.3.160.0000.01616.38
7.3.130.0040.01214.57
7.3.120.0090.00714.84
7.3.110.0140.00414.37
7.3.100.0140.00014.73
7.3.90.0030.01314.76
7.3.80.0090.00015.01
7.3.70.0060.00914.96
7.3.60.0030.01214.86
7.3.50.0030.01414.41
7.3.40.0100.00314.51
7.3.30.0070.00314.39
7.3.20.0070.00716.70
7.3.10.0040.01216.55
7.3.00.0030.01316.57
7.2.330.0090.00916.75
7.2.320.0120.00616.32
7.2.310.0180.00016.73
7.2.300.0190.00316.77
7.2.290.0090.00916.48
7.2.260.0110.00714.64
7.2.250.0060.01014.52
7.2.240.0070.01015.15
7.2.230.0100.00715.16
7.2.220.0000.01015.30
7.2.210.0070.00315.17
7.2.200.0030.01414.96
7.2.190.0070.00714.85
7.2.180.0120.00614.78
7.2.170.0090.00614.99
7.2.160.0040.01114.91
7.2.150.0110.00416.55
7.2.140.0030.01016.60
7.2.130.0110.00716.77
7.2.120.0060.01016.67
7.2.110.0070.00716.96
7.2.100.0060.00916.54
7.2.90.0040.01116.65
7.2.80.0100.00016.72
7.2.70.0030.01416.82
7.2.60.0070.00416.76
7.2.50.0030.01416.94
7.2.40.0070.00716.84
7.2.30.0040.01116.88
7.2.20.0030.01316.89
7.2.10.0040.00816.82
7.2.00.0090.00718.19
7.1.330.0070.00815.65
7.1.320.0030.01215.69
7.1.310.0060.00615.73
7.1.300.0050.00515.55
7.1.290.0060.00615.74
7.1.280.0040.00415.64
7.1.270.0000.01115.69
7.1.260.0000.00915.62
7.1.250.0070.01015.75
7.1.240.0090.00615.61
7.1.230.0060.00915.68
7.1.220.0070.00315.44
7.1.210.0090.00915.69
7.1.200.0030.00615.41
7.1.190.0040.01115.83
7.1.180.0070.00315.45
7.1.170.0070.00715.79
7.1.160.0040.00715.69
7.1.150.0100.00315.55
7.1.140.0110.00415.71
7.1.130.0040.00715.69
7.1.120.0070.00315.73
7.1.110.0030.01315.71
7.1.100.0030.01116.86
7.1.90.0070.00715.88
7.1.80.0000.01115.76
7.1.70.0020.01116.24
7.1.60.0070.00917.56
7.1.50.0050.01216.22
7.1.40.0030.01215.69
7.1.30.0070.01015.39
7.1.20.0030.00915.73
7.1.10.0070.00715.66
7.1.00.0060.04119.06
7.0.330.0030.01215.16
7.0.320.0050.00515.00
7.0.310.0080.00614.94
7.0.300.0140.00015.05
7.0.290.0040.00815.15
7.0.280.0030.00615.03
7.0.270.0030.00915.25
7.0.260.0070.00715.31
7.0.250.0070.00315.40
7.0.240.0090.00615.14
7.0.230.0040.01215.31
7.0.220.0070.00715.05
7.0.210.0030.01015.29
7.0.200.0050.00515.90
7.0.190.0070.00715.44
7.0.180.0070.01015.48
7.0.170.0090.00315.02
7.0.160.0000.01015.39
7.0.150.0000.01515.14
7.0.140.0090.03718.55
7.0.130.0040.00415.13
7.0.120.0020.03718.56
7.0.110.0040.01115.30
7.0.100.0060.00315.23
7.0.90.0000.00915.31
7.0.80.0100.00314.99
7.0.70.0070.01015.17
7.0.60.0070.02717.65
7.0.50.0060.03016.70
7.0.40.0000.03216.60
7.0.30.0070.03416.64
7.0.20.0100.02516.83
7.0.10.0100.04216.74
7.0.00.0050.02516.55
5.6.400.0120.00314.29
5.6.390.0040.00814.20
5.6.380.0040.01014.20
5.6.370.0060.00914.40
5.6.360.0070.00713.88
5.6.350.0030.00614.18
5.6.340.0040.01114.11
5.6.330.0080.00014.25
5.6.320.0000.00814.20
5.6.310.0030.00614.16
5.6.300.0070.00714.26
5.6.290.0030.00914.09
5.6.280.0050.03817.47
5.6.270.0070.00714.18
5.6.260.0090.00614.31
5.6.250.0050.00514.14
5.6.240.0000.01314.21
5.6.230.0030.00614.42
5.6.220.0070.00714.30
5.6.210.0090.04417.21
5.6.200.0010.02916.17
5.6.190.0030.02417.32
5.6.180.0030.04817.36
5.6.170.0050.03517.53
5.6.160.0050.03717.29
5.6.150.0050.03017.37
5.6.140.0070.02317.29
5.6.130.0070.04417.33
5.6.120.0050.04517.27
5.6.110.0070.04417.26
5.6.100.0080.04017.14
5.6.90.0080.04317.06
5.6.80.0030.03816.69
5.6.70.0080.02017.02
5.6.60.0020.03416.87
5.6.50.0050.04816.98
5.6.40.0070.02116.93
5.6.30.0160.03516.85
5.6.20.0050.03116.85
5.6.10.0080.03716.73
5.6.00.0100.04316.82
5.5.380.0060.00613.93
5.5.370.0070.00714.35
5.5.360.0070.00314.44
5.5.350.0000.03017.25
5.5.340.0070.04516.03
5.5.330.0070.02317.36
5.5.320.0050.03417.35
5.5.310.0050.03517.24
5.5.300.0060.03917.12
5.5.290.0100.02017.29
5.5.280.0020.03617.21
5.5.270.0050.03317.27
5.5.260.0050.04017.33
5.5.250.0070.04317.03
5.5.240.0100.02016.99
5.5.230.0120.03816.83
5.5.220.0020.02816.83
5.5.210.0070.04616.86
5.5.200.0080.02516.75
5.5.190.0070.04616.84
5.5.180.0100.02316.97
5.5.170.0000.01414.22
5.5.160.0070.04416.78
5.5.150.0070.04716.62
5.5.140.0050.02816.84
5.5.130.0000.03416.64
5.5.120.0120.02216.81
5.5.110.0030.03016.74
5.5.100.0030.02816.61
5.5.90.0050.04616.95
5.5.80.0070.04016.69
5.5.70.0070.03016.56
5.5.60.0130.02316.78
5.5.50.0050.02916.88
5.5.40.0100.04116.78
5.5.30.0040.03316.59
5.5.20.0090.02816.70
5.5.10.0050.04416.33
5.5.00.0070.02516.78
5.4.450.0050.02415.03
5.4.440.0080.04115.09
5.4.430.0030.03215.17
5.4.420.0030.03715.22
5.4.410.0070.04015.15
5.4.400.0020.02214.94
5.4.390.0050.02015.13
5.4.380.0080.03815.02
5.4.370.0050.04014.98
5.4.360.0060.03114.76
5.4.350.0090.02214.78
5.4.340.0030.03814.91
5.4.330.0030.00310.77
5.4.320.0070.03915.09
5.4.310.0110.02315.08
5.4.300.0080.03714.91
5.4.290.0030.04515.07
5.4.280.0060.03814.90
5.4.270.0070.03915.04
5.4.260.0070.04214.74
5.4.250.0070.03914.88
5.4.240.0100.02015.10
5.4.230.0050.02615.19
5.4.220.0080.04314.94
5.4.210.0020.03714.88
5.4.200.0080.02314.84
5.4.190.0070.03715.01
5.4.180.0030.04014.92
5.4.170.0030.02314.84
5.4.160.0030.03814.84
5.4.150.0070.02015.09
5.4.140.0020.02813.67
5.4.130.0070.01913.67
5.4.120.0050.03413.71
5.4.110.0030.02613.55
5.4.100.0050.02513.60
5.4.90.0070.03513.64
5.4.80.0030.04013.56
5.4.70.0050.02013.77
5.4.60.0030.02313.72
5.4.50.0050.02813.62
5.4.40.0090.03413.74
5.4.30.0080.03913.52
5.4.20.0030.04213.59
5.4.10.0100.03513.63
5.4.00.0060.02013.33
5.3.290.0040.04012.55
5.3.280.0040.02712.62
5.3.270.0060.02312.50
5.3.260.0080.03712.45
5.3.250.0040.04012.64
5.3.240.0080.02212.63
5.3.230.0050.02612.39
5.3.220.0040.04012.49
5.3.210.0040.03512.34
5.3.200.0080.04012.46
5.3.190.0130.03012.51
5.3.180.0030.04312.58
5.3.170.0030.02112.46
5.3.160.0050.04112.59
5.3.150.0070.04012.57
5.3.140.0020.03212.56
5.3.130.0030.03312.54
5.3.120.0080.03612.39
5.3.110.0020.04012.59
5.3.100.0060.03812.27
5.3.90.0070.02812.35
5.3.80.0090.03812.10
5.3.70.0070.03012.12
5.3.60.0030.04012.24
5.3.50.0060.02112.11
5.3.40.0080.03312.22
5.3.30.0100.03512.18
5.3.20.0030.03312.07
5.3.10.0030.02211.99
5.3.00.0050.03911.96
5.2.170.0170.04711.13
5.2.160.0000.03311.33
5.2.150.0000.06311.19
5.2.140.0100.04311.33
5.2.130.0030.03011.13
5.2.120.0070.05011.08
5.2.110.0070.05311.05
5.2.100.0070.03011.05
5.2.90.0070.06011.02
5.2.80.0070.05711.19
5.2.70.0070.05311.07
5.2.60.0030.04711.14
5.2.50.0070.03310.93
5.2.40.0030.04710.96
5.2.30.0030.04710.91
5.2.20.0100.05711.14
5.2.10.0100.05710.77
5.2.00.0100.03310.70
5.1.60.0030.02710.07
5.1.50.0100.04010.16
5.1.40.0100.03710.04
5.1.30.0000.03010.37
5.1.20.0030.05310.45
5.1.10.0030.03710.08
5.1.00.0070.05010.17
5.0.50.0070.0478.56
5.0.40.0100.0378.40
5.0.30.0000.0578.32
5.0.20.0070.0408.28
5.0.10.0000.0208.18
5.0.00.0030.0678.21
4.4.90.0030.0376.75
4.4.80.0070.0306.75
4.4.70.0070.0176.75
4.4.60.0000.0306.75
4.4.50.0030.0306.75
4.4.40.0030.0336.75
4.4.30.0030.0376.75
4.4.20.0030.0206.75
4.4.10.0000.0406.75
4.4.00.0030.0376.75
4.3.110.0000.0206.75
4.3.100.0000.0306.75
4.3.90.0030.0206.75
4.3.80.0000.0576.75
4.3.70.0000.0176.75
4.3.60.0030.0176.75
4.3.50.0000.0176.75
4.3.40.0000.0236.75
4.3.30.0000.0206.75
4.3.20.0000.0376.75
4.3.10.0030.0276.75
4.3.00.0000.0376.75

preferences:
46.52 ms | 401 KiB | 5 Q