3v4l.org

run code in 300+ PHP versions simultaneously
<?php function convert_instagram_links( $instagram_caption_a_title ) { // Create links from @mentions, #hashtags and regular links. $instagram_caption_a_title = preg_replace( '~https?://[^<>\s]+~i', '<a href="$0" target="_blank">$0</a>', $instagram_caption_a_title ); $instagram_caption = preg_replace( '/#+(\w+)/u', '<a href="https://www.instagram.com/explore/tags/$1" target="_blank">$0</a>', $instagram_caption_a_title ); $instagram_caption = preg_replace( '/@+(\w+)/u', '<a href="https://www.instagram.com/$1" target="_blank">@$1</a>', $instagram_caption ); return $instagram_caption; } echo convert_instagram_links('@tags_underscore or #hashtags_underscore');

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.70.0120.00918.40
8.3.60.0100.00716.75
8.3.50.0120.00918.47
8.3.40.0070.00718.96
8.3.30.0120.00618.78
8.3.20.0040.00420.90
8.3.10.0040.00423.61
8.3.00.0080.00022.44
8.2.190.0110.00418.56
8.2.180.0140.00016.75
8.2.170.0060.01222.96
8.2.160.0030.01022.26
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0080.00021.20
8.2.120.0070.00026.35
8.2.110.0070.00321.02
8.2.100.0030.00918.16
8.2.90.0030.00518.22
8.2.80.0040.00420.40
8.2.70.0060.00317.63
8.2.60.0030.00517.75
8.2.50.0040.00417.98
8.2.40.0030.00518.20
8.2.30.0000.00718.24
8.2.20.0070.00018.17
8.2.10.0040.00419.17
8.2.00.0030.00517.98
8.1.280.0070.00725.92
8.1.270.0040.00422.64
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.14
8.1.230.0040.00720.90
8.1.220.0050.00317.79
8.1.210.0050.00318.96
8.1.200.0000.00817.35
8.1.190.0070.00317.38
8.1.180.0050.00518.10
8.1.170.0000.00917.62
8.1.160.0070.00018.98
8.1.150.0040.00418.86
8.1.140.0040.00420.35
8.1.130.0000.00717.62
8.1.120.0060.00317.48
8.1.110.0040.00417.49
8.1.100.0000.00717.60
8.1.90.0030.00517.52
8.1.80.0000.00717.59
8.1.70.0030.00317.61
8.1.60.0030.00617.77
8.1.50.0030.00517.58
8.1.40.0030.00517.57
8.1.30.0000.00817.65
8.1.20.0000.00817.80
8.1.10.0000.00817.55
8.1.00.0070.00017.51
8.0.300.0050.00320.29
8.0.290.0040.00417.00
8.0.280.0040.00418.41
8.0.270.0030.00317.38
8.0.260.0000.00716.97
8.0.250.0000.00817.19
8.0.240.0000.00717.14
8.0.230.0030.00317.08
8.0.220.0070.00017.04
8.0.210.0070.00017.18
8.0.200.0000.00717.08
8.0.190.0000.00716.99
8.0.180.0040.00417.03
8.0.170.0000.00916.99
8.0.160.0040.00417.09
8.0.150.0040.00416.89
8.0.140.0070.00017.00
8.0.130.0060.00013.50
8.0.120.0000.00917.00
8.0.110.0040.00417.07
8.0.100.0070.00017.11
8.0.90.0050.00317.04
8.0.80.0040.01017.10
8.0.70.0040.00417.05
8.0.60.0040.00417.02
8.0.50.0020.00517.12
8.0.30.0090.00917.16
8.0.20.0130.00617.20
8.0.10.0000.00817.23
8.0.00.0110.00816.89
7.4.330.0000.00515.55
7.4.320.0000.00716.70
7.4.300.0000.00716.81
7.4.290.0040.00416.89
7.4.280.0040.00416.90
7.4.270.0000.00716.80
7.4.260.0030.00316.87
7.4.250.0040.00416.68
7.4.240.0000.00716.89
7.4.230.0040.00416.90
7.4.220.0030.00516.98
7.4.210.0080.00616.85
7.4.200.0070.00016.60
7.4.160.0100.00916.71
7.4.140.0080.01017.86
7.4.130.0090.00916.58
7.4.120.0100.00716.65
7.4.110.0030.01416.69
7.4.100.0130.01016.89
7.4.90.0030.01316.54
7.4.80.0150.00919.39
7.4.70.0070.01016.80
7.4.60.0110.01416.48
7.4.50.0070.01016.50
7.4.40.0090.00816.74
7.4.00.0060.01015.46
7.3.330.0020.00213.41
7.3.320.0050.00013.47
7.3.310.0030.00316.50
7.3.300.0000.00716.48
7.3.290.0040.00416.51
7.3.280.0090.00816.43
7.3.260.0090.00916.76
7.3.240.0100.00716.49
7.3.230.0100.00916.64
7.3.210.0100.00716.58
7.3.200.0030.01316.45
7.3.190.0130.00316.69
7.3.180.0130.00316.72
7.3.170.0140.00316.59
7.3.160.0100.00616.55
7.3.30.0090.00914.89
7.3.20.1780.00314.88
7.3.10.0120.00514.80
7.3.00.5930.00714.86
7.2.330.0100.00716.68
7.2.320.0100.00716.92
7.2.310.0100.00716.73
7.2.300.0100.00716.63
7.2.290.0040.01916.88
7.2.160.0160.01315.19
7.2.150.5880.00715.10
7.2.140.0220.02015.21
7.2.130.6060.00315.18
7.2.120.7200.01715.03
7.2.110.4650.02315.16
7.2.100.5330.01015.05
7.2.90.6110.01015.08
7.2.80.5410.00715.05
7.2.70.5920.01015.00
7.2.60.7870.01315.01
7.2.50.5450.01014.91
7.2.40.5610.00714.98
7.2.30.5190.00315.02
7.2.20.7060.01314.93
7.2.10.4920.02015.09
7.2.00.0260.00315.16
7.1.270.6010.01313.72
7.1.260.0440.01014.07
7.1.250.5760.00313.72

preferences:
17.8 ms | 401 KiB | 5 Q