3v4l.org

run code in 500+ PHP versions simultaneously
<?php $xml = <<<EOT <loc>https://subdomain.example.com</loc> <loc>https://subdomain.example.com/s/queen-katwe-2016-720p-hd-480p-hd/</loc> <loc>https://subdomain.example.com/s/justice-league-dark-2017-720p-hd-480p-hd/</loc> <loc>https://subdomain.example.com/s/edge-seventeen-2016-720p-hd-480p-hd/</loc> EOT; var_dump( preg_replace_callback( '/<loc>(?<value>[^<]+)<\/loc>/', static function($matches) { return sprintf('<loc>%1$s</loc>', mb_strimwidth($matches['value'], 0, 15)); }, $xml ) );

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.70.0130.00416.82
8.5.60.0120.00716.81
8.5.50.0100.00716.61
8.5.30.0120.00619.11
8.5.20.0130.00619.46
8.5.10.0090.00820.05
8.5.00.0130.01122.02
8.4.210.0100.01021.65
8.4.180.0130.00925.63
8.4.170.0140.00923.88
8.4.160.0110.01123.75
8.4.150.0060.00716.95
8.4.140.0190.00317.70
8.4.130.0090.01117.98
8.4.120.0060.00720.71
8.4.110.0050.00619.05
8.4.100.0050.00518.04
8.4.90.0120.00920.77
8.4.80.0120.00718.85
8.4.70.0100.00622.29
8.4.60.0140.00720.72
8.4.50.0130.00717.96
8.4.40.0140.00720.09
8.4.30.0120.00618.78
8.4.20.0030.01317.80
8.4.10.0100.01022.03
8.3.300.0120.00822.53
8.3.290.0100.01320.88
8.3.280.0100.01118.54
8.3.270.0110.00916.79
8.3.260.0120.00716.57
8.3.250.0110.00718.89
8.3.240.0120.00616.67
8.3.230.0110.00816.53
8.3.220.0030.00418.89
8.3.210.0110.00916.50
8.3.200.0070.00516.59
8.3.190.0050.01017.34
8.3.180.0110.01218.74
8.3.170.0070.01117.14
8.3.160.0120.00318.54
8.3.150.0100.01017.03
8.3.140.0060.00317.18
8.3.130.0040.00418.41
8.3.120.0090.00020.69
8.3.110.0050.00320.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00618.30
8.3.70.0090.00616.58
8.3.60.0150.00318.56
8.3.50.0070.01318.55
8.3.40.0030.01020.50
8.3.30.0140.00018.88
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.300.0130.00718.44
8.2.290.0030.00517.35
8.2.280.0060.00820.49
8.2.270.0120.00616.63
8.2.260.0040.00416.96
8.2.250.0140.00417.45
8.2.240.0120.00618.97
8.2.230.0090.00022.58
8.2.220.0050.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00616.88
8.2.190.0090.00617.00
8.2.180.0140.00725.92
8.2.170.0100.00719.08
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.90
8.2.110.0030.00622.24
8.2.100.0080.00418.03
8.2.90.0000.00818.00
8.2.80.0040.00418.99
8.2.70.0060.00317.63
8.2.60.0040.00418.16
8.2.50.0060.00318.07
8.2.40.0050.00320.20
8.2.30.0050.00318.14
8.2.20.0000.00819.41
8.2.10.0040.00418.04
8.2.00.0050.00319.26
8.1.340.0110.01119.82
8.1.330.0050.00516.57
8.1.320.0100.00918.30
8.1.310.0150.00318.52
8.1.300.0100.01018.18
8.1.290.0030.00730.84
8.1.280.0110.00425.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.73
8.1.230.0040.00717.89
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.47
8.1.190.0060.00317.48
8.1.180.0030.00618.10
8.1.170.0090.00018.75
8.1.160.0070.00018.91
8.1.150.0040.00418.78
8.1.140.0040.00417.62
8.1.130.0030.00617.71
8.1.120.0000.00717.73
8.1.110.0000.00717.53
8.1.100.0060.00617.61
8.1.90.0140.00017.70
8.1.80.0130.00317.65
8.1.70.0090.00617.70
8.1.60.0140.00717.81
8.1.50.0210.00317.66
8.1.40.0170.00017.74
8.1.30.0140.00417.90
8.1.20.0130.00417.82
8.1.10.0120.00617.61
8.1.00.0170.00017.71
8.0.300.0040.00418.77
8.0.290.0000.00817.00
8.0.280.0040.00420.20
8.0.270.0030.00318.21
8.0.260.0030.00317.04
8.0.250.0040.00417.20
8.0.240.0000.00717.10
8.0.230.0070.00717.17
8.0.220.0120.00317.14
8.0.210.0140.00016.95
8.0.200.0070.00717.24
8.0.190.0090.00517.13
8.0.180.0080.00417.04
8.0.170.0050.00517.00
8.0.160.0050.00517.12
8.0.150.0070.00717.12
8.0.140.0110.00217.00
8.0.130.0070.00516.98
8.0.120.0150.00017.02
8.0.110.0070.00717.13
8.0.100.0090.00517.18
8.0.90.0120.00317.01
8.0.80.0110.00417.16
8.0.70.0140.00017.14
8.0.60.0030.01117.00
8.0.50.0110.00417.14
8.0.30.0080.00817.09
8.0.20.0110.00617.11
8.0.10.0160.00017.19
7.4.330.0030.00315.55
7.4.320.0000.00616.87
7.4.300.0120.00516.88
7.4.290.0060.00616.66
7.4.280.0110.00316.64
7.4.270.0150.00316.86
7.4.260.0130.00416.84
7.4.250.0130.00516.79
7.4.240.0160.00016.80
7.4.230.0080.00816.82
7.4.220.0090.00616.75
7.4.210.0110.00316.85
7.4.200.0070.00716.71
7.4.190.0100.00316.87
7.4.180.0120.00016.80
7.4.160.0100.00316.92
7.4.150.0100.00516.80
7.4.140.0090.00516.74
7.4.130.0100.00216.61
7.4.120.0060.00616.56
7.4.110.0090.00316.61
7.4.100.0100.00016.88
7.4.90.0070.00516.55
7.4.80.0070.00416.50
7.4.70.0070.00416.75
7.4.60.0000.00916.45
7.4.50.0000.00716.46
7.4.40.0000.00716.50
7.4.30.0030.00316.53
7.4.20.0000.00716.55
7.4.10.0030.00316.72
7.4.00.0000.00716.71

preferences:
85.42 ms | 1271 KiB | 5 Q