3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $dirnameCss = 'amoi'; $content = "url(../../toto.jpg);"; $content = preg_replace('`url\(("|\')?(?!(\'|"|)http)(?!(\'|"|)data)([^/])`', 'url(\\1' . $dirnameCss . '/\\4', $content); echo $content;

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.0.30.0110.01117.05
8.0.20.0100.01317.46
8.0.00.0070.01117.04
7.4.150.0140.00317.40
7.4.140.0140.00517.86
7.4.130.0120.00716.53
7.4.120.0110.00716.70
7.4.110.0100.00716.77
7.4.100.0070.01016.59
7.4.90.0120.00616.71
7.4.80.0130.00419.39
7.4.70.0130.00316.37
7.4.60.0090.00816.64
7.4.50.0000.00616.70
7.4.40.0080.00622.77
7.4.30.0070.01816.55
7.4.00.0110.00515.07
7.3.270.0070.01117.40
7.3.260.0110.00716.63
7.3.250.0110.00616.49
7.3.240.0040.01516.45
7.3.230.0100.01016.43
7.3.210.0080.01116.50
7.3.200.0100.00616.65
7.3.190.0140.00316.45
7.3.180.0080.00816.52
7.3.170.0100.00616.47
7.3.160.0030.01216.48
7.3.120.0080.00815.27
7.3.110.0110.00715.16
7.3.100.0040.00714.97
7.3.90.0090.00914.89
7.3.80.0070.00714.98
7.3.70.0080.00415.03
7.3.60.0040.01214.93
7.3.50.0030.00815.01
7.3.40.0000.01114.99
7.3.30.0000.01614.76
7.3.20.0100.00716.80
7.3.10.0030.00916.82
7.3.00.0090.00516.93
7.2.330.0090.00916.70
7.2.320.0130.00716.79
7.2.310.0100.00616.75
7.2.300.0120.00616.75
7.2.290.0070.01016.75
7.2.250.0110.00715.25
7.2.240.0000.02015.45
7.2.230.0030.01015.23
7.2.220.0060.00315.29
7.2.210.0100.00315.30
7.2.200.0040.01115.06
7.2.190.0090.00615.12
7.2.180.0040.00814.90
7.2.170.0030.01214.92
7.2.130.0030.01017.11
7.2.120.0030.00616.90
7.2.110.0070.00416.82
7.2.100.0030.00916.92
7.2.90.0040.00817.19
7.2.80.0060.00616.94
7.2.70.0090.00617.12
7.2.60.0000.01616.85
7.2.50.0040.00816.98
7.2.40.0030.00917.01
7.2.30.0030.01317.17
7.2.20.0040.00816.99
7.2.10.0130.00317.07
7.2.00.0060.00818.29
7.1.330.0030.01316.16
7.1.320.0030.01016.09
7.1.310.0070.00715.95
7.1.300.0120.00316.13
7.1.290.0060.00916.08
7.1.280.0090.00615.93
7.1.270.0130.00316.11
7.1.260.0080.00316.20
7.1.250.0060.00616.08
7.1.240.0030.00916.00
7.1.230.0090.00016.05
7.1.220.0100.00315.85
7.1.210.0000.01415.85
7.1.200.0070.00715.82
7.1.190.0030.01315.73
7.1.180.0030.00715.88
7.1.170.0000.01515.92
7.1.160.0040.01115.91
7.1.150.0040.00415.96
7.1.140.0080.00615.99
7.1.130.0100.00316.09
7.1.120.0030.01015.78
7.1.110.0040.00816.00
7.1.100.0080.00317.30
7.1.90.0090.00316.14
7.1.80.0000.01315.93
7.1.70.0050.00516.69
7.1.60.0070.01018.00
7.1.50.0060.01016.64
7.1.40.0000.01015.62
7.1.30.0040.01116.06
7.1.20.0060.00615.68
7.1.10.0030.00615.73
7.1.00.0070.01919.34
7.0.330.0000.00815.69
7.0.320.0060.00315.61
7.0.310.0070.00715.45
7.0.300.0090.00315.59
7.0.290.0040.01115.62
7.0.280.0030.01015.32
7.0.270.0000.01415.61
7.0.260.0000.01315.71
7.0.250.0110.00015.59
7.0.240.0030.01015.68
7.0.230.0060.00615.66
7.0.220.0040.00415.25
7.0.210.0030.01015.79
7.0.200.0030.00716.41
7.0.190.0060.00615.81
7.0.180.0120.00015.72
7.0.170.0030.00615.75
7.0.160.0000.00915.67
7.0.150.0090.00615.80
7.0.140.0060.03718.79
7.0.130.0130.00315.72
7.0.120.0130.00015.70
7.0.110.0060.00615.44
7.0.100.0030.01015.53
7.0.90.0070.00315.74
7.0.80.0030.00615.66
7.0.70.0000.01215.67
7.0.60.0070.03417.74
7.0.50.0080.04316.70
7.0.40.0100.04017.06
7.0.30.0170.03416.95
7.0.20.0170.04316.93
7.0.10.0180.03616.96
7.0.00.0130.03116.83
5.6.380.0030.00914.57
5.6.370.0030.01014.24
5.6.360.0000.01214.30
5.6.350.0030.01014.33
5.6.340.0040.00814.58
5.6.330.0000.01214.46
5.6.320.0070.00714.28
5.6.310.0000.01514.00
5.6.300.0070.00714.41
5.6.290.0050.00514.16
5.6.280.0070.03817.70
5.6.270.0030.01014.57
5.6.260.0080.00314.44
5.6.250.0040.00414.13
5.6.240.0060.00614.05
5.6.230.0000.01114.14
5.6.220.0100.00314.29
5.6.210.0100.03817.54
5.6.200.0090.02716.27
5.6.190.0030.02717.63
5.6.180.1810.02517.33
5.6.170.0170.04417.46
5.6.160.0150.03517.22
5.6.150.0060.02016.21
5.6.140.0080.01816.25
5.6.130.0170.03416.29
5.6.120.0070.03517.54
5.6.110.0080.04317.57
5.6.100.0030.05017.63
5.6.90.0070.04517.68
5.6.80.0130.03717.24
5.6.70.0120.04617.24
5.6.60.0040.00414.01
5.6.50.0080.00414.34
5.6.40.0000.01314.30
5.6.30.0050.00514.36
5.6.20.0040.00714.11
5.6.10.0040.01114.22
5.6.00.0040.01214.03
5.5.380.0040.00411.18
5.5.370.0030.00910.87
5.5.360.0030.00311.33
5.5.350.0120.04315.75
5.5.340.0030.04714.46
5.5.330.0050.04415.68
5.5.320.0200.03815.76
5.5.310.0180.03315.82
5.5.300.0070.03514.59
5.5.290.0020.02514.67
5.5.280.0060.02316.01
5.5.270.0050.04015.87
5.5.260.0040.02315.88
5.5.250.0050.02015.96
5.5.240.0030.04315.55
5.5.230.0030.00710.88
5.5.220.0030.00711.01
5.5.210.0040.00810.99
5.5.200.0060.00311.04
5.5.190.0060.00011.16
5.5.180.0030.00510.85
5.5.170.0000.00710.88
5.5.160.0040.00411.11
5.5.150.0000.00610.86
5.5.140.0040.00410.88
5.5.130.0000.01110.87
5.5.120.0030.00911.21
5.5.110.0060.00010.98
5.5.100.0000.00710.89
5.5.90.0050.00310.94
5.5.80.0070.00410.88
5.5.70.0030.00611.03
5.5.60.0030.00311.09
5.5.50.0000.01010.66
5.5.40.0000.01110.71
5.5.30.0030.00610.82
5.5.20.0060.00611.09
5.5.10.0070.00311.04
5.5.00.0000.00711.05
5.4.450.0030.03715.23
5.4.440.0040.02515.20
5.4.430.0030.03815.40
5.4.420.0050.02015.37
5.4.410.0050.02815.03
5.4.400.0030.04015.18
5.4.390.0030.03914.88
5.4.380.0040.03314.87
5.4.370.0070.02315.01
5.4.360.0100.02215.14
5.4.350.0000.03015.05
5.4.340.0020.02315.04
5.4.330.0070.00411.19
5.4.320.0030.04315.10
5.4.310.0060.02815.04
5.4.300.0070.03815.06
5.4.290.0020.04015.17
5.4.280.0060.02814.76
5.4.270.0050.03015.14
5.4.260.0030.04015.04
5.4.250.0050.02714.95
5.4.240.0020.03115.02
5.4.230.0050.02614.81
5.4.220.0030.02015.05
5.4.210.0000.02514.97
5.4.200.0010.02514.92
5.4.190.0030.03815.08
5.4.180.0030.02515.11
5.4.170.0050.02614.92
5.4.160.0030.02714.93
5.4.150.0060.02514.94
5.4.140.0020.04213.72
5.4.130.0020.04013.71
5.4.120.0000.04213.71
5.4.110.0060.03313.71
5.4.100.0070.03813.50
5.4.90.0050.03513.70
5.4.80.0020.04013.62
5.4.70.0080.02013.47
5.4.60.0020.03413.61
5.4.50.0050.03713.62
5.4.40.0020.03613.53
5.4.30.0040.03713.63
5.4.20.0070.02813.59
5.4.10.0070.02713.63
5.4.00.0000.04113.25
5.3.290.0060.03312.51
5.3.280.0040.04212.49
5.3.270.0030.02512.42
5.3.260.0020.03112.39
5.3.250.0060.03612.45
5.3.240.0020.04312.55
5.3.230.0030.04212.42
5.3.220.0030.03512.38
5.3.210.0000.03012.39
5.3.200.0020.03112.52
5.3.190.0040.04112.43
5.3.180.0020.03712.46
5.3.170.0020.04012.46
5.3.160.0030.03912.50
5.3.150.0030.03912.51
5.3.140.0060.03812.40
5.3.130.0030.04312.37
5.3.120.0050.04012.40
5.3.110.0020.02812.48
5.3.100.0030.03012.11
5.3.90.0030.04012.23
5.3.80.0050.03512.20
5.3.70.0030.03812.05
5.3.60.0050.02812.23
5.3.50.0140.01312.07
5.3.40.0040.02512.04
5.3.30.0070.02012.14
5.3.20.0020.03612.18
5.3.10.0040.03612.07
5.3.00.0040.02712.15
5.2.170.0020.02411.70
5.2.160.0020.03211.76
5.2.150.0030.03311.70
5.2.140.0030.01811.71
5.2.130.0030.01911.70
5.2.120.0020.03111.70
5.2.110.0030.02411.70
5.2.100.0080.01711.70
5.2.90.0040.03011.70
5.2.80.0020.02611.70
5.2.70.0000.03311.70
5.2.60.0030.03311.70
5.2.50.0030.03111.70
5.2.40.0030.03011.70
5.2.30.0020.03211.70
5.2.20.0020.02911.70
5.2.10.0060.01511.70
5.2.00.0030.03411.70
5.1.60.0000.02911.70
5.1.50.0030.02011.70
5.1.40.0030.02511.70
5.1.30.0020.02811.70
5.1.20.0030.02911.70
5.1.10.0020.03111.70
5.1.00.0020.03011.70
5.0.50.0000.02911.70
5.0.40.0040.02211.70
5.0.30.0030.01811.70
5.0.20.0040.01511.70
5.0.10.0040.01911.70
5.0.00.0040.03011.70
4.4.90.0000.01711.70
4.4.80.0030.01711.70
4.4.70.0020.01711.70
4.4.60.0000.01711.70
4.4.50.0030.01211.70
4.4.40.0020.02911.70
4.4.30.0000.02111.70
4.4.20.0020.02011.70
4.4.10.0000.02111.70
4.4.00.0010.02611.70
4.3.110.0050.01311.70
4.3.100.0030.01011.70
4.3.90.0010.01611.70
4.3.80.0030.02611.70
4.3.70.0030.01211.70
4.3.60.0020.02211.70
4.3.50.0010.01611.70
4.3.40.0000.02911.70
4.3.30.0000.01611.70
4.3.20.0020.01211.70
4.3.10.0010.01111.70
4.3.00.0000.02211.70