3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = 'this is my best <a href="http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characrs_heeeeeeeeere">http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characrs_heeeeeeeeere</a> and this is my some text'; preg_match('/<a href="(.+)">/', $link, $match); $shortenedLink = (strlen($match[1]) > 70) ? substr($match[1], 0, 20) . '...' : $match[1]; echo "this is my best <a href='http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characrs_heeeeeeeeer'>$shortenedLink</a> and this is my some 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.5.30.0060.01020.25
8.5.20.0100.00620.09
8.5.10.0030.00520.08
8.5.00.0120.00920.05
8.4.180.0110.01119.95
8.4.170.0120.01120.37
8.4.160.0130.00921.82
8.4.150.0100.00316.95
8.4.140.0120.00917.93
8.4.130.0130.00717.95
8.4.120.0120.00724.09
8.4.110.0130.00722.51
8.4.100.0130.00918.52
8.4.90.0110.00918.50
8.4.80.0060.00218.81
8.4.70.0120.00918.17
8.4.60.0070.01118.70
8.4.50.0110.00918.75
8.4.40.0060.01324.03
8.4.30.0160.00322.27
8.4.20.0070.01418.10
8.4.10.0120.00419.61
8.3.300.0100.01018.61
8.3.290.0100.01120.82
8.3.280.0100.01018.56
8.3.270.0160.00516.67
8.3.260.0060.01216.48
8.3.250.0110.00718.83
8.3.240.0050.00416.99
8.3.230.0110.00816.85
8.3.220.0040.00518.88
8.3.210.0070.00618.67
8.3.200.0060.00416.71
8.3.190.0120.00917.29
8.3.180.0120.00717.29
8.3.170.0140.00420.68
8.3.160.0060.01317.32
8.3.150.0150.00317.15
8.3.140.0080.00016.62
8.3.130.0050.00516.50
8.3.120.0030.00620.81
8.3.110.0040.00416.89
8.3.100.0030.00518.25
8.3.90.0050.00316.68
8.3.80.0030.00718.29
8.3.70.0090.00616.50
8.3.60.0090.00618.56
8.3.50.0100.01023.06
8.3.40.0070.01118.90
8.3.30.0000.01518.79
8.3.20.0000.00821.47
8.3.10.0060.00321.68
8.3.00.0040.00419.97
8.2.300.0100.00922.29
8.2.290.0110.00720.80
8.2.280.0110.00918.38
8.2.270.0150.00317.28
8.2.260.0070.01116.64
8.2.250.0040.01418.69
8.2.240.0000.01917.07
8.2.230.0000.00820.94
8.2.220.0110.00724.06
8.2.210.0080.00626.77
8.2.200.0060.00616.60
8.2.190.0120.00616.63
8.2.180.0090.00917.00
8.2.170.0170.00322.96
8.2.160.0070.00720.25
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00022.15
8.2.120.0000.00726.35
8.2.110.0070.00319.21
8.2.100.0060.00618.16
8.2.90.0000.00819.36
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0050.00318.04
8.2.50.0100.00518.10
8.2.40.0040.00422.09
8.2.30.0040.00419.31
8.2.20.0050.00317.88
8.2.10.0000.00718.19
8.2.00.0040.00418.12
8.1.340.0110.00917.70
8.1.330.0110.00822.09
8.1.320.0130.00716.32
8.1.310.0110.00416.85
8.1.300.0000.00918.54
8.1.290.0060.00318.88
8.1.280.0090.00625.92
8.1.270.0040.00423.96
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0080.00417.89
8.1.220.0090.00017.77
8.1.210.0050.00318.77
8.1.200.0050.00517.48
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0060.00318.78
8.1.160.0040.00422.16
8.1.150.0000.00718.87
8.1.140.0070.00019.59
8.1.130.0000.00717.76
8.1.120.0000.00717.52
8.1.110.0080.00017.60
8.1.100.0000.00717.61
8.1.90.0040.00417.51
8.1.80.0030.00517.51
8.1.70.0030.00317.51
8.1.60.0030.00517.79
8.1.50.0080.00017.62
8.1.40.0040.00417.57
8.1.30.0000.00817.63
8.1.20.0000.00817.76
8.1.10.0000.00817.73
8.1.00.0070.00017.54
8.0.300.0030.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.39
8.0.270.0000.00717.15
8.0.260.0000.00717.18
8.0.250.0030.00317.07
8.0.240.0060.00017.13
8.0.230.0030.00717.09
8.0.220.0040.00416.97
8.0.210.0000.00716.91
8.0.200.0000.00817.11
8.0.190.0050.00317.00
8.0.180.0000.00816.98
8.0.170.0070.00017.06
8.0.160.0040.00417.04
8.0.150.0040.00416.86
8.0.140.0050.00317.00
8.0.130.0000.00613.49
8.0.120.0040.00416.95
8.0.110.0000.00816.92
8.0.100.0040.00417.09
8.0.90.0000.00716.99
8.0.80.0150.00617.02
8.0.70.0000.00716.86
8.0.60.0000.00717.10
8.0.50.0000.00716.81
8.0.30.0080.01217.23
8.0.20.0090.00917.44
8.0.10.0040.00417.07
8.0.00.0060.01116.89
7.4.330.0020.00215.08
7.4.320.0030.00316.65
7.4.300.0030.00316.66
7.4.290.0030.00316.75
7.4.280.0050.00216.71
7.4.270.0030.00316.57
7.4.260.0000.00816.67
7.4.250.0040.00416.71
7.4.240.0040.00416.70
7.4.230.0030.00316.45
7.4.220.0050.01416.63
7.4.210.0150.00616.77
7.4.200.0030.00316.73
7.4.160.0050.01116.69
7.4.150.0060.01117.40
7.4.140.0120.00717.86
7.4.130.0070.01116.79
7.4.120.0050.01216.68
7.4.110.0140.00316.87
7.4.100.0070.01016.65
7.4.90.0120.00616.58
7.4.80.0070.01019.39
7.4.70.0110.00616.57
7.4.60.0060.01116.70
7.4.50.0080.00416.73
7.4.40.0120.00616.64
7.4.30.0100.00716.52
7.4.10.0100.00315.03
7.4.00.0050.01115.10
7.3.330.0050.00013.24
7.3.320.0030.00313.38
7.3.310.0030.00316.57
7.3.300.0070.00016.44
7.3.290.0070.00916.39
7.3.280.0090.01116.40
7.3.270.0130.01017.40
7.3.260.0140.00316.52
7.3.240.0070.01116.63
7.3.230.0110.00716.71
7.3.210.0270.03016.48
7.3.200.0070.01016.56
7.3.190.0070.01316.47
7.3.180.0000.01716.56
7.3.170.0090.00916.56
7.3.160.0090.00916.85
7.3.130.0100.00714.95
7.3.120.0080.00915.19
7.3.110.0130.00314.75
7.3.100.0080.00815.20
7.3.90.0030.01015.13
7.3.80.0030.00914.98
7.3.70.0110.00414.91
7.3.60.0030.01315.05
7.3.50.0080.00314.91
7.3.40.0030.01014.74
7.3.30.0040.01114.75
7.3.20.0110.00316.67
7.3.10.0090.00316.91
7.3.00.0100.00316.89
7.2.330.0160.00316.69
7.2.320.0160.00616.84
7.2.310.0090.01016.83
7.2.300.0060.01116.82
7.2.290.0060.01216.92
7.2.260.0100.01015.50
7.2.250.0110.00715.35
7.2.240.0070.00415.10
7.2.230.0090.00615.31
7.2.220.0060.01015.29
7.2.210.0030.00615.35
7.2.200.0070.00415.08
7.2.190.0100.00315.01
7.2.180.0110.00315.21
7.2.170.0030.01315.17
7.2.160.0090.00615.22
7.2.150.0100.00316.82
7.2.140.0070.01117.15
7.2.130.0070.00717.14
7.2.120.0040.01116.89
7.2.110.0110.00417.25
7.2.100.0030.01217.08
7.2.90.0060.01016.93
7.2.80.0000.01516.93
7.2.70.0060.00617.18
7.2.60.0070.00617.11
7.2.50.0000.01317.05
7.2.40.0040.01117.00
7.2.30.0080.00417.07
7.2.20.0040.01117.21
7.2.10.0030.01016.86
7.2.00.0030.01317.34
7.1.330.0030.01016.12
7.1.320.0000.01316.17
7.1.310.0000.01415.86
7.1.300.0130.00316.11
7.1.290.0070.00715.90
7.1.280.0030.01015.89
7.1.270.0000.01515.67
7.1.260.0000.01815.69
7.1.250.0060.00316.03
7.1.240.0070.00716.16
7.1.230.0120.00315.66
7.1.220.0060.00315.69
7.1.210.0070.00715.68
7.1.200.0050.00616.08
7.1.190.0070.00716.05
7.1.180.0100.00315.79
7.1.170.0060.00915.91
7.1.160.0060.00915.93
7.1.150.0040.00815.96
7.1.140.0070.00715.93
7.1.130.0140.00015.93
7.1.120.0070.00715.99
7.1.110.0000.01315.72
7.1.100.0060.00615.86
7.1.90.0000.01615.98
7.1.80.0040.00416.11
7.1.70.0050.00516.27
7.1.60.0100.00617.94
7.1.50.0070.00715.93
7.1.40.0110.00015.97
7.1.30.0050.00515.84
7.1.20.0060.00316.13
7.1.10.0070.00716.01
7.1.00.0080.04019.04
7.0.330.0080.00015.64
7.0.320.0030.00515.71
7.0.310.0000.01015.38
7.0.300.0070.00715.73
7.0.290.0000.01415.55
7.0.280.0070.00715.44
7.0.270.0030.00915.84
7.0.260.0000.01115.48
7.0.250.0030.00715.60
7.0.240.0040.00815.66
7.0.230.0060.01015.34
7.0.220.0060.00915.70
7.0.210.0100.00315.76
7.0.200.0210.00715.20
7.0.190.0060.00615.49
7.0.180.0080.00815.58
7.0.170.0030.00515.36
7.0.160.0040.01115.61
7.0.150.0030.01515.64
7.0.140.0110.00615.59
7.0.130.0000.01015.63
7.0.120.0060.00615.64
7.0.110.0060.00915.82
7.0.100.0150.00415.60
7.0.90.0130.04117.87
7.0.80.0050.03217.84
7.0.70.0070.04017.74
7.0.60.0140.02517.77
7.0.50.0080.04117.98
7.0.40.0190.03517.05
7.0.30.0150.03817.10
7.0.20.0100.03217.02
7.0.10.0150.03716.99
7.0.00.0080.03516.86
5.6.400.0060.00314.29
5.6.390.0070.00714.24
5.6.380.0090.00614.26
5.6.370.0120.00314.44
5.6.360.0040.01114.52
5.6.350.0110.00414.52
5.6.340.0030.00614.52
5.6.330.0070.00714.45
5.6.320.0000.01313.97
5.6.310.0040.00414.68
5.6.300.0030.01014.63
5.6.290.0100.00014.36
5.6.280.0000.01714.35
5.6.270.0040.01114.52
5.6.260.0060.00614.56
5.6.250.0130.00314.57
5.6.240.0080.03317.61
5.6.230.0080.03317.48
5.6.220.0050.03317.41
5.6.210.0050.03317.63
5.6.200.0190.02617.83
5.6.190.0100.04317.86
5.6.180.0120.04017.88
5.6.170.0030.04517.80
5.6.160.0070.03017.92
5.6.150.0060.03217.75
5.6.140.0100.03017.66
5.6.130.0040.03517.67
5.6.120.0140.02917.73
5.6.110.0090.03417.67
5.6.100.0070.03517.84
5.6.90.0100.03317.79
5.6.80.0070.03217.42
5.6.70.0110.02617.32
5.6.60.0120.02717.43
5.6.50.0100.02817.51
5.6.40.0050.03417.32
5.6.30.0120.02717.44
5.6.20.0170.02117.26
5.6.10.0050.03217.51
5.6.00.0080.02717.44

preferences:
110.75 ms | 1978 KiB | 5 Q