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.60.0090.00618.81
8.3.50.0070.00716.64
8.3.40.0060.01019.06
8.3.30.0070.00718.96
8.3.20.0080.00019.24
8.3.10.0040.00419.10
8.3.00.0080.00019.91
8.2.180.0140.00716.75
8.2.170.0140.00722.96
8.2.160.0130.00319.23
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.89
8.2.120.0070.00026.35
8.2.110.0030.00620.91
8.2.100.0100.00320.01
8.2.90.0000.00818.00
8.2.80.0050.00319.06
8.2.70.0030.00518.02
8.2.60.0050.00317.93
8.2.50.0040.00418.10
8.2.40.0080.00019.49
8.2.30.0040.00419.71
8.2.20.0070.00018.24
8.2.10.0050.00318.36
8.2.00.0070.00021.24
8.1.280.0180.00425.92
8.1.270.0040.00423.75
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00623.98
8.1.230.0080.00519.26
8.1.220.0060.00318.00
8.1.210.0060.00318.77
8.1.200.0000.00917.38
8.1.190.0080.00017.60
8.1.180.0050.00318.10
8.1.170.0030.00518.84
8.1.160.0040.00418.96
8.1.150.0000.00818.92
8.1.140.0000.00717.69
8.1.130.0000.00819.06
8.1.120.0040.00417.67
8.1.110.0000.00817.60
8.1.100.0070.00017.66
8.1.90.0070.00317.67
8.1.80.0070.00017.56
8.1.70.0050.00317.61
8.1.60.0040.00417.68
8.1.50.0050.00317.67
8.1.40.0020.00517.63
8.1.30.0020.00517.84
8.1.20.0050.00317.84
8.1.10.0040.00417.79
8.1.00.0080.00017.61
8.0.300.0050.00318.77
8.0.290.0060.00316.75
8.0.280.0070.00018.50
8.0.270.0030.00617.32
8.0.260.0040.00717.32
8.0.250.0030.00317.13
8.0.240.0030.00317.15
8.0.230.0030.00317.05
8.0.220.0000.00817.11
8.0.210.0030.00316.95
8.0.200.0060.00317.16
8.0.190.0040.00417.12
8.0.180.0040.00417.09
8.0.170.0000.00817.08
8.0.160.0060.00317.13
8.0.150.0070.00017.04
8.0.140.0020.00517.02
8.0.130.0000.00613.54
8.0.120.0040.00417.04
8.0.110.0040.00417.05
8.0.100.0040.00417.10
8.0.90.0040.00417.02
8.0.80.0030.01217.13
8.0.70.0000.00817.03
8.0.60.0040.00417.19
8.0.50.0000.00817.09
8.0.30.0140.00617.24
8.0.20.0140.00917.40
8.0.10.0030.00517.30
8.0.00.0180.00517.18
7.4.330.0060.00015.55
7.4.320.0050.00216.89
7.4.300.0060.00016.87
7.4.290.0040.00416.81
7.4.280.0030.00616.71
7.4.270.0050.00316.85
7.4.260.0040.00416.81
7.4.250.0050.00316.73
7.4.240.0040.00416.82
7.4.230.0030.00316.83
7.4.220.0040.00417.00
7.4.210.0100.00816.96
7.4.200.0040.00416.81
7.4.160.0140.00316.85
7.4.140.0110.00717.86
7.4.130.0070.01716.62
7.4.120.0100.00916.75
7.4.110.0110.01116.91
7.4.100.0060.01516.59
7.4.90.0120.00616.70
7.4.80.0110.00719.39
7.4.70.0140.00916.69
7.4.60.0090.00916.71
7.4.50.0100.00316.73
7.4.40.0110.00716.87
7.4.00.0110.00415.14
7.3.330.0050.00013.35
7.3.320.0030.00313.28
7.3.310.0040.00416.46
7.3.300.0040.00416.52
7.3.290.0070.00016.35
7.3.280.0080.00816.45
7.3.260.0110.00816.71
7.3.240.0090.00916.68
7.3.230.0140.00316.75
7.3.210.0090.00916.73
7.3.200.0160.00416.80
7.3.190.0160.00616.66
7.3.180.0130.00316.52
7.3.170.0060.01016.50
7.3.160.0130.00316.73
7.3.10.0110.01216.79
7.3.00.0160.00416.90
7.2.330.0180.00917.03
7.2.320.0100.01316.90
7.2.310.0110.00816.75
7.2.300.0120.00616.86
7.2.290.0180.00616.85
7.2.130.0070.01016.84
7.2.120.0180.00617.02
7.2.110.0210.00816.86
7.2.100.0120.01616.65
7.2.90.0110.00617.03
7.2.80.0240.00316.87
7.2.70.0040.01216.87
7.2.60.1460.01016.14
7.2.50.1560.01016.03
7.2.40.1530.00716.21
7.2.30.1870.00716.37
7.2.20.1550.00816.36
7.2.10.1980.00616.20
7.2.00.1930.00616.32
7.1.250.0160.00315.44
7.1.200.0030.01316.08
7.1.170.2480.00714.16
7.1.160.3490.01117.19
7.1.150.3190.01117.22
7.1.140.3110.01417.40
7.1.130.3780.01217.36
7.1.120.3730.01516.98
7.1.110.4020.00916.35
7.1.100.3460.01116.54
7.1.90.3120.01416.57
7.1.80.3830.01016.62
7.1.70.3310.01215.54
7.1.60.3880.01833.61
7.1.50.5020.01533.33
7.1.40.5900.01832.70
7.1.30.5920.01332.97
7.1.20.7350.01833.00
7.1.10.6050.01015.16
7.1.00.5910.01315.20

preferences:
55.94 ms | 400 KiB | 5 Q