3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/url(\(((?:[^()]+|(?1))+)\))/m'; $str = 'url(https://exemples.com/fonts/lato/lato/lato-regular-webfont.ttf) src:url(https://exemples.com/fonts/lato/lato-regular-webfont.eot?#iefix) background:url(https://exemples.com/product/header/img.png) background:url(/product/header/img.png) background:url("/product/header/img.png") background:url(\'/product/header/img.png\') background:url(/uploads/2019/03/0002-image(thumbnail_product).jpg) .card-thumb__img1{display:block;width:142px;height:62px;background:url(https://example.com/product01.jpg) center center no-repeat;background-size:contain}@media (max-width:1029px).card-thumb__img2{display:block;z-index:1;background:url(https://example.com/product02.jpg) center center no-repeat #000; background-image: url(/uploads/2019/03/product01-image(thumbnail_photo).jpg); '; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); foreach ($matches as $match) { if (preg_match('/^([\'"]?)[^"]+\1$/', $match[2])) { echo trim($match[2], "'\"") . PHP_EOL; } }

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.4.140.0240.01317.96
8.4.130.0130.00818.07
8.4.120.0100.01120.78
8.4.110.0120.00922.55
8.4.100.0140.00717.95
8.4.90.0070.00418.93
8.4.80.0040.00417.93
8.4.70.0140.00718.17
8.4.60.0050.00318.96
8.4.50.0130.00818.54
8.4.40.0030.00618.08
8.4.30.0100.01420.62
8.4.20.0060.00320.73
8.4.10.0060.00319.48
8.3.270.0140.00616.79
8.3.260.0120.00616.77
8.3.250.0110.00818.68
8.3.240.0100.00916.74
8.3.230.0140.00716.75
8.3.220.0110.00717.21
8.3.210.0070.01116.77
8.3.200.0030.00616.76
8.3.190.0120.00716.88
8.3.180.0070.00816.64
8.3.170.0180.00019.02
8.3.160.0040.00420.32
8.3.150.0080.01119.00
8.3.140.0040.00416.94
8.3.130.0030.00618.49
8.3.120.0060.01020.73
8.3.110.0130.00320.94
8.3.100.0090.00024.06
8.3.90.0090.00326.77
8.3.80.0060.00318.43
8.3.70.0070.00716.61
8.3.60.0150.00618.21
8.3.50.0070.00618.42
8.3.40.0100.01018.82
8.3.30.0040.01118.89
8.3.20.0100.00020.98
8.3.10.0040.00423.56
8.3.00.0040.00420.77
8.2.290.0080.01020.63
8.2.280.0060.00418.43
8.2.270.0120.00618.99
8.2.260.0070.01117.03
8.2.250.0030.00617.09
8.2.240.0100.00017.05
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0060.00318.42
8.2.190.0140.00018.79
8.2.180.0120.00318.42
8.2.170.0140.00422.96
8.2.160.0150.00020.52
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.08
8.2.110.0000.00919.36
8.2.100.0060.00618.16
8.2.90.0040.00418.16
8.2.80.0030.00518.05
8.2.70.0030.00518.05
8.2.60.0050.00318.16
8.2.50.0050.00318.10
8.2.40.0040.00419.47
8.2.30.0050.00219.38
8.2.20.0080.00018.18
8.2.10.0050.00219.22
8.2.00.0040.00418.03
8.1.330.0100.00922.10
8.1.320.0130.00716.31
8.1.310.0070.00018.48
8.1.300.0040.00418.09
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0000.00720.33
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00322.58
8.1.230.0040.00820.89
8.1.220.0040.00417.76
8.1.210.0000.00918.85
8.1.200.0030.00717.50
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0000.00918.77
8.1.160.0040.00419.00
8.1.150.0050.00319.04
8.1.140.0030.00319.02
8.1.130.0080.00020.34
8.1.120.0000.00817.61
8.1.110.0000.00717.62
8.1.100.0060.00517.57
8.1.90.0000.00717.62
8.1.80.0030.00517.59
8.1.70.0030.00317.56
8.1.60.0050.00317.72
8.1.50.0070.00017.57
8.1.40.0040.00417.65
8.1.30.0030.00517.66
8.1.20.0040.00417.73
8.1.10.0030.00617.82
8.1.00.0040.00417.68
8.0.300.0050.00220.11
8.0.290.0040.00416.88
8.0.280.0070.00018.52
8.0.270.0050.00317.34
8.0.260.0030.00518.39
8.0.250.0030.00317.11
8.0.240.0000.00717.10
8.0.230.0000.01017.13
8.0.220.0000.00717.11
8.0.210.0000.00716.94
8.0.200.0030.00317.00
8.0.190.0070.00017.00
8.0.180.0080.00017.07
8.0.170.0080.00016.98
8.0.160.0050.00217.09
8.0.150.0000.00816.91
8.0.140.0040.00417.01
8.0.130.0000.00713.43
8.0.120.0000.00917.20
8.0.110.0070.00017.09
8.0.100.0050.00216.98
8.0.90.0040.00417.02
8.0.80.0070.01017.18
8.0.70.0080.00017.08
8.0.60.0000.00817.18
8.0.50.0040.00417.10
8.0.30.0110.00717.04
8.0.20.0110.01217.26
8.0.10.0040.00417.05
8.0.00.0110.00916.93
7.4.330.0050.00016.80
7.4.320.0030.00316.76
7.4.300.0100.00016.89
7.4.290.0030.00316.77
7.4.280.0040.00416.83
7.4.270.0040.00416.65
7.4.260.0040.00416.78
7.4.250.0000.00716.85
7.4.240.0030.00316.73
7.4.230.0070.00016.87
7.4.220.0090.00016.89
7.4.210.0090.00816.87
7.4.200.0030.00316.70
7.4.160.0070.01016.80
7.4.140.0100.00717.86
7.4.130.0150.00316.77
7.4.120.0120.00916.67
7.4.110.0110.01216.77
7.4.100.0100.00916.74
7.4.90.0090.01516.83
7.4.80.0060.01119.39
7.4.70.0160.00516.75
7.4.60.0080.00816.60
7.4.50.0030.01016.52
7.4.40.0100.00616.76
7.4.00.0050.01315.09
7.3.330.0000.00513.32
7.3.320.0030.00313.37
7.3.310.0040.00416.48
7.3.300.0070.00016.44
7.3.290.0030.00316.40
7.3.280.0060.01116.40
7.3.260.0080.01116.73
7.3.240.0110.00916.57
7.3.230.0080.01316.73
7.3.210.0090.00816.84
7.3.200.0060.00916.48
7.3.190.0110.00616.74
7.3.180.0060.00916.54
7.3.170.0040.01216.49
7.3.160.0100.00716.83
7.3.120.0070.01115.21
7.3.110.0070.01115.04
7.3.100.0100.00315.17
7.3.90.0100.00315.03
7.3.80.0070.01015.32
7.3.70.0130.00615.03
7.3.60.0070.00714.98
7.3.50.0030.01015.23
7.3.40.0030.00815.01
7.3.30.0090.00314.89
7.3.20.0080.00716.82
7.3.10.0080.01016.90
7.3.00.0040.00816.87
7.2.330.0110.00716.88
7.2.320.0040.01316.78
7.2.310.0170.00016.64
7.2.300.0160.00416.80
7.2.290.0000.01616.71
7.2.250.0040.01415.38
7.2.240.0110.00715.43
7.2.230.0060.00915.00
7.2.220.0070.00715.41
7.2.210.0090.00615.02
7.2.200.0120.00315.14
7.2.190.0090.00615.20
7.2.180.0050.00815.19
7.2.170.0110.00514.96
7.2.160.0040.00715.03
7.2.150.0120.00017.06
7.2.140.0110.00317.01
7.2.130.0070.00417.13
7.2.120.0100.01317.13
7.2.110.0150.00817.27
7.2.100.0100.01316.92
7.2.90.0150.00016.95
7.2.80.0030.01417.15
7.2.70.0060.00617.12
7.2.60.0040.01117.23
7.2.50.0120.00017.21
7.2.40.0100.01317.24
7.2.30.0110.00316.96
7.2.20.0070.00717.04
7.2.10.0060.00617.09
7.2.00.0090.00617.20
7.1.330.0040.01216.11
7.1.320.0070.00716.25
7.1.310.0060.01015.79
7.1.300.0110.00415.97
7.1.290.0000.01216.20
7.1.280.0060.01015.80
7.1.270.0050.01215.92
7.1.260.0070.01216.02
7.1.250.0050.00516.07

preferences:
31.16 ms | 403 KiB | 5 Q