3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings[] = "http://t.me/tm_factory_bot"; //0 $strings[] = "https://telegram.me/tm_factory_bot"; //1 $strings[] = "https://telegram.me/tm_factory_bot?start=123"; //2 $strings[] = "tg://resolve?domain=buy_this"; //3 $strings[] = "tg://resolve?domain=buy_this&start=123"; //4 $strings[] = "https://t.me/joinchat/AAAAAEOI5lHxvYlMxwHGSA"; //5 $strings[] = "https://web.telegram.org/#/im?tgaddr=tg%3A%2F%2Fjoin%3Finvite%3DAAAAAEOI5lHxvYlMxwH-GSA"; //6 $strings[] = "https://web.telegram.org/#/im?tgaddr=tg%3A%2F%2Fresolve%3Fdomain%3Dbuy_this"; //7 $strings[] = "https://web.telegram.org/#/im?tgaddr=tg%3A%2F%2Fresolve%3Fdomain%3Dtm_factory_bot%26start%3D123"; //8 $strings[] = "https://web.telegram.org/#/im?p=@funny_images"; //9 $strings[] = "@funny_images"; //10 $strings[] = "funny_images"; //11 $strings[] = "tg://join?invite=AAAAAEOI5lHxvYlMxwHGSA"; //12 foreach ($strings as $key=>$string) { $tgType = true; if ($tgType) { $private = "tg://join?invite="; $public = "tg://resolve?domain="; $sep = "&"; } else { $private = "https://t.me/joinchat/"; $public = "https://t.me/"; $sep = "?"; } $value = urldecode($string); preg_match('#[^&\?]??([a-z_0-9]+)[&\?]??(start=[a-z0-9]*?)?$#i', $value, $preg); if (preg_match("#(invite=|joinchat/)#i", $value)) { $link = $private . $preg[1]; } else { $link = $public . $preg[1]; } if (isset($preg[2])) { $link .= $sep . $preg[2]; } echo "\r\n" . $key . " - " . $link; }

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.0070.01518.80
8.3.60.0150.00018.68
8.3.50.0070.00716.80
8.3.40.0100.01019.11
8.3.30.0070.00718.92
8.3.20.0050.00319.27
8.3.10.0030.00619.11
8.3.00.0050.00319.91
8.2.180.0170.00316.88
8.2.170.0040.01122.96
8.2.160.0080.00819.25
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0090.00020.01
8.2.120.0000.00826.35
8.2.110.0080.00321.22
8.2.100.0060.00617.97
8.2.90.0050.00318.00
8.2.80.0000.00819.07
8.2.70.0030.00517.93
8.2.60.0060.00317.93
8.2.50.0080.00018.10
8.2.40.0050.00219.59
8.2.30.0040.00419.53
8.2.20.0000.00818.36
8.2.10.0000.00818.30
8.2.00.0050.00221.33
8.1.280.0070.01125.92
8.1.270.0050.00323.88
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0080.00319.13
8.1.220.0030.00617.91
8.1.210.0060.00318.77
8.1.200.0070.00317.60
8.1.190.0030.00517.60
8.1.180.0080.00018.10
8.1.170.0080.00018.84
8.1.160.0000.00719.03
8.1.150.0040.00419.07
8.1.140.0000.00817.83
8.1.130.0040.00419.08
8.1.120.0000.00717.62
8.1.110.0000.00717.66
8.1.100.0040.00417.65
8.1.90.0000.01117.66
8.1.80.0040.00417.64
8.1.70.0000.00717.70
8.1.60.0050.00317.79
8.1.50.0000.00917.67
8.1.40.0040.00417.70
8.1.30.0050.00317.77
8.1.20.0100.00017.87
8.1.10.0000.00817.67
8.1.00.0030.00617.60
8.0.300.0030.00518.77
8.0.290.0060.00316.88
8.0.280.0040.00418.51
8.0.270.0040.00417.32
8.0.260.0000.01017.32
8.0.250.0000.00717.11
8.0.240.0040.00417.08
8.0.230.0000.00717.13
8.0.220.0040.00417.14
8.0.210.0070.00017.12
8.0.200.0000.00816.99
8.0.190.0040.00417.16
8.0.180.0040.00417.08
8.0.170.0040.00417.11
8.0.160.0000.00717.04
8.0.150.0050.00317.11
8.0.140.0040.00416.93
8.0.130.0000.00613.53
8.0.120.0060.00317.04
8.0.110.0040.00417.11
8.0.100.0000.00717.07
8.0.90.0070.00017.14
8.0.80.0070.01017.13
8.0.70.0060.00317.09
8.0.60.0000.00717.17
8.0.50.0040.00417.09
8.0.30.0120.00717.10
8.0.20.0090.00917.40
8.0.10.0020.00517.27
8.0.00.0090.01617.14
7.4.330.0050.00015.55
7.4.320.0030.00316.79
7.4.300.0030.00316.82
7.4.290.0000.00716.91
7.4.280.0040.00416.71
7.4.270.0030.00316.73
7.4.260.0000.00716.89
7.4.250.0030.00516.86
7.4.240.0040.00416.81
7.4.230.0070.00016.85
7.4.220.0000.00816.92
7.4.210.0120.01016.95
7.4.200.0050.00216.92
7.4.160.0100.00616.78
7.4.140.0110.00917.86
7.4.130.0130.00716.81
7.4.120.0100.01016.83
7.4.110.0140.00716.81
7.4.100.0120.00616.92
7.4.90.0090.00916.76
7.4.80.0140.00519.39
7.4.70.0110.01116.78
7.4.60.0060.01016.83
7.4.50.0080.00816.48
7.4.40.0090.01516.54
7.4.00.0100.00715.17
7.3.330.0030.00313.33
7.3.320.0030.00313.37
7.3.310.0030.00316.33
7.3.300.0030.00316.41
7.3.290.0030.00316.34
7.3.280.0110.00916.45
7.3.260.0140.00516.77
7.3.240.0100.00816.59
7.3.230.0100.01016.73
7.3.210.0070.01416.72
7.3.200.0140.00716.68
7.3.190.0080.00816.89
7.3.180.0090.00616.58
7.3.170.0090.01216.68
7.3.160.0090.00916.76
7.2.330.0090.00916.96
7.2.320.0160.00416.88
7.2.310.0110.00816.82
7.2.300.0090.00916.84
7.2.290.0120.01016.85
7.2.60.1980.01015.35
7.2.50.1820.00915.14
7.2.40.1850.00915.45
7.2.30.0290.01115.63
7.2.20.1070.01115.62
7.2.10.0220.01015.49
7.2.00.3070.01015.61
7.1.200.0060.00616.03
7.1.170.0210.00914.08
7.1.160.0080.01416.77
7.1.150.2570.01316.99
7.1.140.0140.00916.98
7.1.130.3060.01316.96
7.1.120.3410.01417.25
7.1.110.3490.01016.36
7.1.100.0160.01116.45
7.1.90.0150.01316.53
7.1.80.0160.01316.64
7.1.70.0200.01315.51
7.1.60.0300.01433.47
7.1.50.1040.00733.29
7.1.40.0340.01032.98
7.1.30.4020.01733.13
7.1.20.4070.01533.04
7.1.10.4390.01315.03
7.1.00.3130.00715.12

preferences:
48.58 ms | 400 KiB | 5 Q