3v4l.org

run code in 300+ PHP versions simultaneously
<?php function autolink($str, $attributes=array()) { $attrs = ''; foreach ($attributes as $attribute => $value) { $attrs .= " {$attribute}=\"{$value}\""; } $str = ' ' . $str; $str = preg_replace( '`([^"=\'>])(((http|https|ftp)://|www.)[^\s<]+[^\s<\.)])`i', '$1<a href="$2"'.$attrs.'>$2</a>', $str ); $str = substr($str, 1); $str = preg_replace('`href=\"www`','href="http://www',$str); // fügt http:// hinzu, wenn nicht vorhanden return $str; } $text="PHP-Infos finden sich auf http://www.php.net und zu preg_replace()auf http://www.php.net/manual/de/function.preg-replace.php"; echo $text; echo "<br>"; echo autolink($text); ?>

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.0140.00716.88
8.3.50.0070.01122.26
8.3.40.0170.00318.84
8.3.30.0100.00318.95
8.3.20.0080.00020.21
8.3.10.0040.00423.65
8.3.00.0040.00420.85
8.2.180.0070.01118.54
8.2.170.0040.01122.96
8.2.160.0160.00320.35
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0080.00020.38
8.2.110.0100.00022.20
8.2.100.0080.00617.97
8.2.90.0030.00619.28
8.2.80.0040.00417.97
8.2.70.0100.00017.75
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0000.00820.20
8.2.30.0000.00918.18
8.2.20.0040.00417.86
8.2.10.0040.00418.02
8.2.00.0000.01018.05
8.1.280.0090.00925.92
8.1.270.0090.00023.68
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00423.96
8.1.230.0110.00019.22
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0050.00317.36
8.1.180.0060.00319.13
8.1.170.0040.00418.75
8.1.160.0000.00722.05
8.1.150.0000.00818.80
8.1.140.0080.00417.63
8.1.130.0000.00717.82
8.1.120.0000.00717.68
8.1.110.0070.00417.62
8.1.100.0050.00217.63
8.1.90.0040.00417.49
8.1.80.0060.00317.67
8.1.70.0030.00317.51
8.1.60.0060.00317.65
8.1.50.0050.00317.68
8.1.40.0120.00017.70
8.1.30.0030.00517.85
8.1.20.0000.00717.81
8.1.10.0040.00417.70
8.1.00.0040.00417.67
8.0.300.0070.00018.77
8.0.290.0030.00617.16
8.0.280.0050.00218.40
8.0.270.0030.00317.30
8.0.260.0030.00317.36
8.0.250.0000.00717.14
8.0.240.0040.00417.02
8.0.230.0030.00317.04
8.0.220.0030.00317.02
8.0.210.0000.00717.00
8.0.200.0080.00017.04
8.0.190.0050.00317.00
8.0.180.0050.00317.00
8.0.170.0040.00417.08
8.0.160.0000.00717.04
8.0.150.0070.00016.88
8.0.140.0040.00417.09
8.0.130.0060.00013.54
8.0.120.0030.00516.99
8.0.110.0040.00417.01
8.0.100.0000.00817.12
8.0.90.0000.00716.94
8.0.80.0140.00316.99
8.0.70.0030.00516.96
8.0.60.0080.00016.91
8.0.50.0000.00716.89
8.0.30.0090.01117.19
8.0.20.0150.00817.40
8.0.10.0030.00517.13
8.0.00.0090.00916.88
7.4.330.0050.00015.00
7.4.320.0050.00216.80
7.4.300.0070.00016.75
7.4.290.0030.00316.73
7.4.280.0000.00816.83
7.4.270.0070.00016.67
7.4.260.0030.00516.81
7.4.250.0000.00816.76
7.4.240.0050.00316.80
7.4.230.0000.00716.93
7.4.220.0100.01016.87
7.4.210.0100.00616.83
7.4.200.0030.00516.87
7.4.190.0000.00816.79
7.4.160.0090.00616.61
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0100.00816.68
7.4.120.0080.01116.84
7.4.110.0070.01116.68
7.4.100.0160.00316.91
7.4.90.0160.00316.86
7.4.80.0150.00819.39
7.4.70.0090.01316.71
7.4.60.0160.00616.69
7.4.50.0000.00716.62
7.4.40.0070.01416.61
7.4.30.0080.00816.70
7.4.00.0050.01315.35
7.3.330.0050.00013.29
7.3.320.0000.00513.42
7.3.310.0040.00416.50
7.3.300.0000.00716.54
7.3.290.0060.01016.55
7.3.280.0120.00616.45
7.3.270.0140.00517.40
7.3.260.0160.00716.70
7.3.250.0160.00316.70
7.3.240.0170.00316.58
7.3.230.0130.00416.67
7.3.210.0120.01216.76
7.3.200.0110.01219.39
7.3.190.0150.00616.50
7.3.180.0090.00616.72
7.3.170.0110.01116.59
7.3.160.0100.00716.75
7.3.120.0090.00815.13
7.3.110.0110.00715.18
7.3.100.0030.00615.22
7.3.90.0060.00314.86
7.3.80.0030.01214.89
7.3.70.0000.01514.91
7.3.60.0000.01214.86
7.3.50.0070.00715.08
7.3.40.0030.00614.82
7.3.30.0060.00315.00
7.3.20.0090.00416.71
7.3.10.0000.01116.79
7.3.00.0100.00016.75
7.2.330.0120.00616.92
7.2.320.0100.00716.68
7.2.310.0090.00916.98
7.2.300.0030.01416.68
7.2.290.0130.00616.70
7.2.250.0120.00615.23
7.2.240.0100.01015.29
7.2.230.0060.00915.29
7.2.220.0030.01015.19
7.2.210.0060.00915.14
7.2.200.0030.00715.33
7.2.190.0000.01015.41
7.2.180.0030.00715.32
7.2.170.0090.00015.18
7.2.00.0000.01419.65
7.1.330.0070.00716.07
7.1.320.0060.00615.85
7.1.310.0030.01215.86
7.1.300.0030.01015.98
7.1.290.0000.01515.96
7.1.280.0070.00715.94
7.1.270.0000.01315.97
7.1.260.0060.00316.11
7.1.100.0060.00918.28
7.1.70.0000.00917.41
7.1.60.0100.01619.46
7.1.50.0190.01117.23
7.1.00.0030.07722.29
7.0.200.0040.00416.94
7.0.140.0100.06722.08
7.0.110.0030.07019.85
7.0.100.0100.08019.88
7.0.90.0100.06020.00
7.0.80.0070.05019.89
7.0.70.0000.04719.92
7.0.60.0070.06020.08
7.0.50.0030.04020.06
7.0.40.0030.06319.64
7.0.30.0000.08719.65
7.0.20.0100.07719.85
7.0.10.0000.04319.72
7.0.00.0100.03319.77
5.6.280.0000.07720.79
5.6.260.0070.03320.68
5.6.250.0070.05020.75
5.6.240.0170.07020.48
5.6.230.0030.04020.55
5.6.220.0070.08020.65
5.6.210.0070.06720.56
5.6.200.0070.07020.66
5.6.190.0030.08320.71
5.6.180.0070.08020.57
5.6.170.0070.04020.57
5.6.160.0030.07020.66
5.6.150.0070.07020.59
5.6.140.0100.07720.55
5.6.130.0130.07320.71
5.6.120.0030.04720.60
5.6.110.0070.04020.60
5.6.100.0200.06720.54
5.6.90.0030.04020.63
5.6.80.0070.04320.00
5.6.70.0030.07719.84
5.6.60.0030.08319.96
5.6.50.0030.04320.00
5.6.40.0070.06719.98
5.6.30.0130.03020.07
5.6.20.0100.08019.97
5.6.10.0000.06319.82
5.6.00.0100.06020.00
5.5.380.0070.03017.59
5.5.370.0030.04017.68
5.5.360.0030.08017.68
5.5.350.0030.04017.53
5.5.340.0070.07018.10
5.5.330.0000.07318.10
5.5.320.0130.06717.92
5.5.310.0070.07017.93
5.5.300.0330.05717.83
5.5.290.0030.05018.09
5.5.280.0070.08017.92
5.5.270.0030.04318.22
5.5.260.0030.08718.08
5.5.250.0000.04717.89
5.5.240.0070.03717.32
5.5.230.0100.05017.31
5.5.220.0070.07317.43
5.5.210.0030.08017.29
5.5.200.0000.05017.43
5.5.190.0070.07717.58
5.5.180.0170.03317.48
5.5.160.0100.03317.29
5.5.150.0070.05317.14
5.5.140.0100.06017.26
5.5.130.0070.07717.28
5.5.120.0030.07717.59
5.5.110.0030.07317.18
5.5.100.0100.05317.16
5.5.90.0030.05017.18
5.5.80.0070.07717.47
5.5.70.0030.04017.37
5.5.60.0130.03317.16
5.5.50.0100.06017.46
5.5.40.0070.07317.34
5.5.30.0130.07317.16
5.5.20.0100.04017.17
5.5.10.0100.06017.49
5.5.00.0030.05717.33
5.4.450.0070.08019.34
5.4.440.0070.06319.34
5.4.430.0070.06019.50
5.4.420.0100.06019.35
5.4.410.0070.07719.19
5.4.400.0030.05018.98
5.4.390.0030.04319.14
5.4.380.0070.08019.00
5.4.370.0070.04019.17
5.4.360.0070.07019.24
5.4.350.0100.07019.34
5.4.340.0100.04319.31
5.4.320.0100.07019.25
5.4.310.0100.04319.24
5.4.300.0070.07719.00
5.4.290.0030.07718.98
5.4.280.0100.04019.14
5.4.270.0070.04319.09
5.4.260.0070.04318.98
5.4.250.0100.03719.00
5.4.240.0070.04019.19
5.4.230.0070.07319.17
5.4.220.0170.04719.00
5.4.210.0130.07018.99
5.4.200.0000.08319.22
5.4.190.0170.05319.23
5.4.180.0070.07019.25
5.4.170.0070.07719.17
5.4.160.0030.04019.30
5.4.150.0100.07318.93
5.4.140.0130.06016.54
5.4.130.0130.06716.59
5.4.120.0030.03716.57
5.4.110.0070.05316.56
5.4.100.0100.06716.46
5.4.90.0030.07316.41
5.4.80.0000.05716.70
5.4.70.0000.04316.61
5.4.60.0000.07716.41
5.4.50.0000.03716.39
5.4.40.0030.07016.54
5.4.30.0030.03316.38
5.4.20.0030.04716.29
5.4.10.0130.05316.54
5.4.00.0070.07316.05
5.3.290.0130.06314.75
5.3.280.0030.04314.60
5.3.270.0100.07014.73
5.3.260.0000.08014.62
5.3.250.0000.07714.56
5.3.240.0070.07314.70
5.3.230.0130.07314.74
5.3.220.0030.07014.56
5.3.210.0100.07014.59
5.3.200.0100.07714.57
5.3.190.0100.05714.69
5.3.180.0030.04014.58
5.3.170.0030.03714.65
5.3.160.0070.04714.57
5.3.150.0000.05314.64
5.3.140.0070.06714.69
5.3.130.0000.04714.69
5.3.120.0000.03714.52
5.3.110.0100.05014.57
5.3.100.0030.07014.17
5.3.90.0030.05314.04
5.3.80.0070.06014.03
5.3.70.0100.06014.14
5.3.60.0030.04714.16
5.3.50.0070.03313.80
5.3.40.0070.06714.17
5.3.30.0070.03713.91
5.3.20.0000.03313.68
5.3.10.0000.06713.69
5.3.00.0030.06013.63
5.2.170.0030.05711.93
5.2.160.0000.06011.93
5.2.150.0030.05711.93
5.2.140.0030.03011.93
5.2.130.0030.02311.93
5.2.120.0100.05711.93
5.2.110.0000.03011.93
5.2.100.0030.02311.93
5.2.90.0030.04711.93
5.2.80.0000.06711.93
5.2.70.0070.06011.93
5.2.60.0030.06311.93
5.2.50.0030.06011.93
5.2.40.0070.06011.93
5.2.30.0000.03011.93
5.2.20.0030.02711.93
5.2.10.0070.04011.93
5.2.00.0030.02711.93
5.1.60.0030.02711.93
5.1.50.0030.03311.93
5.1.40.0000.02711.93
5.1.30.0000.02711.93
5.1.20.0030.02311.93
5.1.10.0000.03011.93
5.1.00.0030.02011.93
5.0.50.0030.04011.93
5.0.40.0100.00711.93
5.0.30.0000.03311.93
5.0.20.0000.03011.93
5.0.10.0000.02311.93
5.0.00.0000.03711.93
4.4.90.0030.02711.93
4.4.80.0000.01311.93
4.4.70.0030.02711.93
4.4.60.0000.02311.93
4.4.50.0030.02011.93
4.4.40.0030.02011.93
4.4.30.0000.01711.93
4.4.20.0070.01011.93
4.4.10.0070.01011.93
4.4.00.0000.03311.93
4.3.110.0000.01711.93
4.3.100.0000.01711.93
4.3.90.0030.01711.93
4.3.80.0000.05311.93
4.3.70.0000.03711.93
4.3.60.0000.02711.93
4.3.50.0000.03711.93
4.3.40.0030.02711.93
4.3.30.0030.03311.93
4.3.20.0000.03011.93
4.3.10.0030.03311.93
4.3.00.0000.03011.93

preferences:
47.15 ms | 401 KiB | 5 Q