3v4l.org

run code in 300+ PHP versions simultaneously
<?php function proxifyCSS($css, $baseURL) { return preg_replace_callback( '/url\((.*?)\)/i', function($matches) use ($baseURL) { $url = $matches[1]; //Remove any surrounding single or double quotes from the URL so it can be passed to rel2abs - the quotes are optional in CSS //Assume that if there is a leading quote then there should be a trailing quote, so just use trim() to remove them if (strpos($url, "'") === 0) { $url = trim($url, "'"); } if (strpos($url, "\"") === 0) { $url = trim($url, "\""); } if (stripos($url, "data:") === 0) return "url(" . $url . ")"; //The URL isn't an HTTP URL but is actual binary data. Don't proxify it. return "url(" . PROXY_PREFIX . rel2abs($url, $baseURL) . ")"; }, $css); }

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.0040.01116.25
8.3.50.0110.00717.32
8.3.40.0120.00318.71
8.3.30.0070.00718.57
8.3.20.0150.00018.27
8.3.10.0090.00018.64
8.3.00.0050.00318.88
8.2.180.0040.01216.32
8.2.170.0140.00422.96
8.2.160.0040.01118.61
8.2.150.0030.00624.18
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0050.00221.11
8.2.110.0080.00021.09
8.2.100.0100.00717.59
8.2.90.0060.00317.63
8.2.80.0040.00418.51
8.2.70.0050.00317.38
8.2.60.0000.00817.38
8.2.50.0000.00817.78
8.2.40.0050.00319.11
8.2.30.0080.00017.62
8.2.20.0080.00417.48
8.2.10.0000.00717.60
8.2.00.0030.00517.49
8.1.280.0080.00825.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00619.27
8.1.230.0110.00020.92
8.1.220.0030.00518.44
8.1.210.0040.00418.77
8.1.200.0030.00517.23
8.1.190.0030.00616.98
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0000.00718.99
8.1.150.0000.00718.55
8.1.140.0040.00417.26
8.1.130.0070.00017.24
8.1.120.0000.00717.27
8.1.110.0000.00717.25
8.1.100.0000.00717.25
8.1.90.0070.00017.34
8.1.80.0000.00817.34
8.1.70.0000.00717.31
8.1.60.0000.00817.38
8.1.50.0030.00617.32
8.1.40.0040.00817.39
8.1.30.0030.00617.42
8.1.20.0040.00417.44
8.1.10.0050.00217.42
8.1.00.0040.00417.32
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0030.00318.56
8.0.270.0000.00817.10
8.0.260.0070.00016.70
8.0.250.0040.00416.71
8.0.240.0000.00816.75
8.0.230.0040.00416.73
8.0.220.0030.00316.75
8.0.210.0030.00316.66
8.0.200.0070.00016.91
8.0.190.0040.00416.78
8.0.180.0040.00416.68
8.0.170.0000.00816.75
8.0.160.0000.00716.80
8.0.150.0040.00416.79
8.0.140.0070.00016.71
8.0.130.0000.00813.23
8.0.120.0030.00516.71
8.0.110.0070.00016.83
8.0.100.0000.00716.66
8.0.90.0050.00216.81
8.0.80.0150.00016.76
8.0.70.0040.00316.60
8.0.60.0030.00616.78
8.0.50.0000.00816.66
8.0.30.0060.01016.64
8.0.20.0160.00416.86
8.0.10.0000.00716.87
8.0.00.0090.00916.63
7.4.330.0050.00012.83
7.4.320.0000.00716.31
7.4.300.0030.00316.52
7.4.290.0030.00516.38
7.4.280.0040.00416.39
7.4.270.0030.00316.31
7.4.260.0050.00013.18
7.4.250.0090.00016.47
7.4.240.0070.00016.37
7.4.230.0030.00316.50
7.4.220.0110.01116.53
7.4.210.0090.00616.32
7.4.200.0000.00716.47
7.4.190.0020.00516.43
7.4.160.0120.00316.34
7.4.150.0160.00416.54
7.4.140.0120.00817.86
7.4.130.0100.01316.37
7.4.120.0090.00916.40
7.4.110.0110.00716.27
7.4.100.0110.00516.42
7.4.90.0070.01516.11
7.4.80.0060.01119.39
7.4.70.0000.01916.23
7.4.60.0110.00616.39
7.4.50.0000.00716.46
7.4.40.0000.01516.21
7.4.30.0030.01816.20
7.4.10.0030.01615.02
7.4.00.0030.01314.92
7.3.330.0000.00613.11
7.3.320.0030.00313.21
7.3.310.0000.00716.23
7.3.300.0030.00316.04
7.3.290.0100.00416.17
7.3.280.0040.01116.16
7.3.270.0110.00716.06
7.3.260.0110.00816.41
7.3.240.0110.01016.42
7.3.230.0070.01016.16
7.3.210.0080.00816.30
7.3.200.0110.01116.38
7.3.190.0140.00316.36
7.3.180.0090.00616.43
7.3.170.0090.00616.18
7.3.160.0100.00716.15
7.3.130.0130.00614.79
7.3.120.0090.00714.73
7.3.110.0080.00814.75
7.3.100.0070.00614.68
7.3.90.0070.00714.84
7.3.80.0000.01514.41
7.3.70.0050.00514.45
7.3.60.0030.00714.60
7.3.50.0060.00314.45
7.3.40.0070.00314.63
7.3.30.0090.00314.51
7.3.20.0070.00716.27
7.3.10.0040.00816.47
7.3.00.0040.00816.45
7.2.330.0170.00616.36
7.2.320.0110.00716.40
7.2.310.0040.01516.32
7.2.300.0120.00616.54
7.2.290.0090.00916.60
7.2.260.0070.01114.80
7.2.250.0090.00915.07
7.2.240.0040.01214.76
7.2.230.0040.00814.74
7.2.220.0110.00714.83
7.2.210.0070.00715.04
7.2.200.0030.01014.88
7.2.190.0090.00614.72
7.2.180.0090.00614.82
7.2.170.0050.00515.01
7.2.160.0060.00914.84
7.2.150.0120.00016.53
7.2.140.0070.00416.86
7.2.130.0040.00816.65
7.2.120.0030.01016.69
7.2.110.0060.00716.72
7.2.100.0060.00516.65
7.2.90.0050.00716.68
7.2.80.0090.00416.68
7.2.70.0050.00716.57
7.2.60.0010.01016.66
7.2.50.0050.00716.76
7.2.40.0060.00816.63
7.2.30.0050.00616.60
7.2.20.0060.00816.60
7.2.10.0050.00816.39
7.2.00.0030.01117.36
7.1.330.0070.00715.55
7.1.320.0030.01415.66
7.1.310.0060.00315.52
7.1.300.0060.00915.32
7.1.290.0030.00615.75
7.1.280.0030.00915.64
7.1.270.0060.00915.66
7.1.260.0030.01315.65
7.1.250.0050.00415.69
7.1.240.0060.00915.73
7.1.230.0060.00315.59
7.1.220.0040.00815.75
7.1.210.0000.00815.70
7.1.200.0000.01315.43
7.1.190.0030.00915.71
7.1.180.0100.00315.71
7.1.170.0110.00015.70
7.1.160.0090.00615.38
7.1.150.0040.00415.78
7.1.140.0070.00715.54
7.1.130.0030.00915.69
7.1.120.0090.00015.45
7.1.110.0030.00815.72
7.1.100.0040.00716.69
7.1.90.0040.01115.55
7.1.80.0030.00915.57
7.1.70.0030.01016.25
7.1.60.0080.00917.44
7.1.50.0060.01316.14
7.1.40.0000.00815.58
7.1.30.0000.01415.48
7.1.20.0040.00715.52
7.1.10.0030.01015.57
7.1.00.0070.02719.03
7.0.330.0120.00314.88
7.0.320.0060.00915.28
7.0.310.0000.01315.27
7.0.300.0040.00815.05
7.0.290.0000.00915.23
7.0.280.0040.00915.27
7.0.270.0000.01115.15
7.0.260.0030.01315.13
7.0.250.0090.00314.89
7.0.240.0070.00515.28
7.0.230.0060.00615.40
7.0.220.0070.01015.23
7.0.210.0040.00814.98
7.0.200.0070.00515.84
7.0.190.0000.01215.14
7.0.180.0040.00815.38
7.0.170.0070.00315.18
7.0.160.0000.01414.98
7.0.150.0000.01615.21
7.0.140.0050.04118.64
7.0.130.0030.01315.03
7.0.120.0100.03518.72
7.0.110.0060.01015.21
7.0.100.0070.00315.18
7.0.90.0090.00315.38
7.0.80.0030.01215.01
7.0.70.0070.00415.18
7.0.60.0050.03417.54
7.0.50.0030.02316.50
7.0.40.0050.03315.54
7.0.30.0000.02715.54
7.0.20.0030.02615.50
7.0.10.0050.04515.40
7.0.00.0050.03015.51
5.6.400.0060.00614.20
5.6.390.0070.00714.09
5.6.380.0000.01514.15
5.6.370.0080.00813.78
5.6.360.0040.01214.13
5.6.350.0030.00514.32
5.6.340.0000.01413.83
5.6.330.0070.00714.05
5.6.320.0000.00913.71
5.6.310.0070.00714.21
5.6.300.0060.00614.04
5.6.290.0060.00614.27
5.6.280.0090.00314.46
5.6.270.0040.01214.02
5.6.260.0070.01014.21
5.6.250.0060.00614.16
5.6.240.0000.01214.16
5.6.230.0030.00913.98
5.6.220.0060.00314.30
5.6.210.0050.04417.50
5.6.200.0070.03716.07
5.6.190.0080.03316.21
5.6.180.0020.02616.13
5.6.170.0070.03216.25
5.6.160.0130.03516.10
5.6.150.0080.03816.15
5.6.140.0070.04016.18
5.6.130.0130.04116.09
5.6.120.0050.03216.02
5.6.110.0070.04216.19
5.6.100.0070.03516.05
5.6.90.0060.04416.01
5.6.80.0070.03115.81
5.6.70.0030.03015.73
5.6.60.0040.02815.69
5.6.50.0090.04015.82
5.6.40.0070.04315.83
5.6.30.0030.04515.61
5.6.20.0030.02615.77
5.6.10.0020.02815.69
5.6.00.0050.02815.71
5.5.380.0000.00914.02
5.5.370.0140.00014.04
5.5.360.0090.00314.01
5.5.350.2160.02117.19
5.5.340.0070.04216.00
5.5.330.0100.03815.90
5.5.320.0020.02815.89
5.5.310.0050.02415.83
5.5.300.0030.04415.89
5.5.290.0110.04016.05
5.5.280.0080.02215.95
5.5.270.0070.04216.05
5.5.260.0060.03115.89
5.5.250.0040.04815.96
5.5.240.0080.03815.66
5.5.230.0070.03915.49
5.5.220.0050.02715.61
5.5.210.0050.03115.70
5.5.200.0050.04315.69
5.5.190.0090.04315.66
5.5.180.0070.04215.72
5.5.170.0070.00413.77
5.5.160.0050.02615.66
5.5.150.0050.02715.64
5.5.140.0020.02515.68
5.5.130.0030.02415.58
5.5.120.0050.02415.53
5.5.110.0020.02415.65
5.5.100.0060.01815.42
5.5.90.0030.03215.63
5.5.80.0080.02215.62
5.5.70.0030.02315.42
5.5.60.0080.01615.49
5.5.50.0050.02215.42
5.5.40.0070.02015.40
5.5.30.0040.02515.45
5.5.20.0050.02315.59
5.5.10.0040.02015.59
5.5.00.0030.02415.57
5.4.450.0060.04415.01
5.4.440.0050.04115.10
5.4.430.0030.03014.98
5.4.420.0010.02614.92
5.4.410.0030.04615.12
5.4.400.0060.03714.88
5.4.390.0080.03814.82
5.4.380.0100.04014.77
5.4.370.0060.03814.98
5.4.360.0060.02814.84
5.4.350.0070.03514.86
5.4.340.0050.03514.86
5.4.330.0030.00610.77
5.4.320.0020.04714.82
5.4.310.0070.02515.07
5.4.300.0080.01814.91
5.4.290.0030.02314.84
5.4.280.0000.02614.82
5.4.270.0020.02314.72
5.4.260.0000.02614.76
5.4.250.0030.02314.77
5.4.240.0060.01814.96
5.4.230.0020.02314.77
5.4.220.0070.02014.87
5.4.210.0050.02114.84
5.4.200.0030.02314.81
5.4.190.0030.02314.71
5.4.180.0080.01814.97
5.4.170.0050.01914.81
5.4.160.0030.02214.93
5.4.150.0050.02014.90
5.4.140.0030.02013.61
5.4.130.0040.02013.51
5.4.120.0050.01813.53
5.4.110.0040.02013.50
5.4.100.0020.02513.53
5.4.90.0020.02213.55
5.4.80.0000.02313.50
5.4.70.0030.02113.46
5.4.60.0060.01713.40
5.4.50.0020.02013.69
5.4.40.0040.02013.45
5.4.30.0050.01713.47
5.4.20.0030.02013.59
5.4.10.0080.01813.39
5.4.00.0030.02513.17
5.3.290.0100.02212.57
5.3.280.0050.01812.44
5.3.270.0020.02212.54
5.3.260.0080.01712.53
5.3.250.0030.02312.41
5.3.240.0030.02012.46
5.3.230.0060.02012.47
5.3.220.0070.01712.39
5.3.210.0050.02012.45
5.3.200.0090.01612.43
5.3.190.0040.02412.47
5.3.180.0030.01812.43
5.3.170.0050.01812.54
5.3.160.0020.02212.44
5.3.150.0060.01812.56
5.3.140.0050.02112.40
5.3.130.0010.02312.36
5.3.120.0020.02112.45
5.3.110.0070.02512.38
5.3.100.0030.04012.22
5.3.90.0060.03812.12
5.3.80.0070.02712.06
5.3.70.0030.02212.12
5.3.60.0030.02012.05
5.3.50.0030.02212.09
5.3.40.0070.03812.01
5.3.30.0080.02212.13
5.3.20.0030.02411.97
5.3.10.0020.02111.98
5.3.00.0040.04211.87
5.2.170.0030.03711.18
5.2.160.0100.05711.18
5.2.150.0030.06311.18
5.2.140.0000.04011.18
5.2.130.0000.03311.16
5.2.120.0000.03311.18
5.2.110.0100.02011.21
5.2.100.0070.03311.00
5.2.90.0030.06011.13
5.2.80.0070.04711.06
5.2.70.0030.03711.29
5.2.60.0030.06311.09
5.2.50.0070.02711.03
5.2.40.0000.03010.98
5.2.30.0030.04010.99
5.2.20.0070.06310.99
5.2.10.0070.05710.80
5.2.00.0100.04710.77
5.1.60.0130.05010.05
5.1.50.0130.03010.00
5.1.40.0030.04710.02
5.1.30.0030.06310.32
5.1.20.0070.05710.38
5.1.10.0000.05710.29
5.1.00.0100.05010.14
5.0.50.0000.0508.59
5.0.40.0030.0478.41
5.0.30.0100.0608.29
5.0.20.0070.0308.29
5.0.10.0100.0408.16
5.0.00.0070.0608.36
4.4.90.0030.0337.99
4.4.80.0070.0137.99
4.4.70.0070.0307.99
4.4.60.0070.0337.99
4.4.50.0030.0337.99
4.4.40.0030.0577.99
4.4.30.0000.0377.99
4.4.20.0070.0337.99
4.4.10.0000.0407.99
4.4.00.0030.0337.99
4.3.110.0000.0277.99
4.3.100.0000.0377.99
4.3.90.0000.0237.99
4.3.80.0070.0537.99
4.3.70.0030.0277.99
4.3.60.0000.0277.99
4.3.50.0030.0377.99
4.3.40.0070.0477.99
4.3.30.0000.0377.99
4.3.20.0000.0307.99
4.3.10.0000.0377.99
4.3.00.0000.0377.99

preferences:
82.87 ms | 400 KiB | 5 Q