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.3.60.0100.00716.63
8.3.50.0150.00517.39
8.3.40.0070.00718.80
8.3.30.0110.00718.97
8.3.20.0040.00418.94
8.3.10.0000.00820.65
8.3.00.0080.00817.63
8.2.180.0150.00316.50
8.2.170.0130.00622.96
8.2.160.0090.00622.39
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0080.00019.89
8.2.110.0070.00421.06
8.2.100.0040.00718.03
8.2.90.0000.00919.08
8.2.80.0040.00417.80
8.2.70.0120.00017.88
8.2.60.0040.00417.68
8.2.50.0030.00618.07
8.2.40.0040.00420.13
8.2.30.0040.00418.14
8.2.20.0040.00417.74
8.2.10.0020.00517.77
8.2.00.0040.00417.87
8.1.280.0070.01425.92
8.1.270.0000.00724.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0030.00620.75
8.1.230.0030.00920.89
8.1.220.0030.00617.74
8.1.210.0000.00918.92
8.1.200.0060.00317.48
8.1.190.0050.00317.51
8.1.180.0040.00418.10
8.1.170.0020.00518.84
8.1.160.0080.00018.96
8.1.150.0000.01018.70
8.1.140.0000.01117.60
8.1.130.0000.00717.80
8.1.120.0000.00717.62
8.1.110.0040.00417.50
8.1.100.0070.00017.55
8.1.90.0000.00717.61
8.1.80.0020.00517.62
8.1.70.0070.00017.46
8.1.60.0000.00917.60
8.1.50.0050.00217.64
8.1.40.0040.00417.70
8.1.30.0000.00717.77
8.1.20.0090.00017.83
8.1.10.0030.00517.52
8.1.00.0000.00817.64
8.0.300.0040.00419.89
8.0.290.0000.00716.75
8.0.280.0000.00718.42
8.0.270.0030.00317.21
8.0.260.0030.00318.46
8.0.250.0070.00017.14
8.0.240.0050.00317.13
8.0.230.0030.00317.00
8.0.220.0020.00516.93
8.0.210.0030.00316.93
8.0.200.0050.00317.09
8.0.190.0060.00317.16
8.0.180.0070.00016.99
8.0.170.0030.00516.94
8.0.160.0000.00817.11
8.0.150.0000.00816.93
8.0.140.0000.00816.97
8.0.130.0000.00513.43
8.0.120.0040.00417.04
8.0.110.0040.00416.90
8.0.100.0000.00716.93
8.0.90.0000.00816.86
8.0.80.0090.00617.00
8.0.70.0020.00516.90
8.0.60.0050.00317.01
8.0.50.0000.00816.88
8.0.30.0080.01217.13
8.0.20.0120.00917.12
8.0.10.0000.00717.08
8.0.00.0090.01116.71
7.4.330.0050.00014.93
7.4.320.0000.00616.73
7.4.300.0000.00616.64
7.4.290.0030.00316.70
7.4.280.0030.00616.64
7.4.270.0000.00816.64
7.4.260.0000.00513.41
7.4.250.0040.00416.56
7.4.240.0000.00816.73
7.4.230.0040.00416.60
7.4.220.0060.00916.81
7.4.210.0090.00816.67
7.4.200.0040.00416.55
7.4.190.0030.00516.75
7.4.160.0060.00916.73
7.4.150.0070.01117.07
7.4.140.0160.00317.25
7.4.130.0080.00916.73
7.4.120.0140.00416.64
7.4.110.0070.01016.54
7.4.100.0120.01216.57
7.4.90.0040.01416.60
7.4.80.0130.00918.63
7.4.70.0060.01016.49
7.4.60.0100.00616.52
7.4.50.0000.00519.83
7.4.40.0070.00721.69
7.4.30.0090.00816.76
7.4.00.0080.00815.27
7.3.330.0030.00313.14
7.3.320.0050.00013.29
7.3.310.0070.00016.42
7.3.300.0070.00016.41
7.3.290.0090.00616.43
7.3.280.0050.01316.42
7.3.270.0100.01017.07
7.3.260.0090.00618.24
7.3.250.0100.01016.52
7.3.240.0080.00816.98
7.3.230.0030.01316.52
7.3.210.0060.01216.40
7.3.200.0150.00919.39
7.3.190.0070.01616.54
7.3.180.0160.00016.85
7.3.170.0120.00616.37
7.3.160.0040.01216.66
7.3.120.0050.01214.86
7.3.110.0100.00515.06
7.3.100.0110.00514.89
7.3.90.0060.00614.72
7.3.80.0070.00714.91
7.3.70.0050.00914.73
7.3.60.0080.00814.97
7.3.50.0080.00614.84
7.3.40.0050.00714.85
7.3.30.0000.01414.83
7.3.20.0080.00716.83
7.3.10.0130.00016.62
7.3.00.0020.01316.77
7.2.330.0070.01117.02
7.2.320.0100.01016.75
7.2.310.0070.01116.79
7.2.300.0030.01316.92
7.2.290.0130.00316.80
7.2.250.0100.01015.35
7.2.240.0050.01615.27
7.2.230.0020.01315.31
7.2.220.0030.01315.11
7.2.210.0080.00815.11
7.2.200.0030.00915.04
7.2.190.0010.01215.11
7.2.180.0030.01115.26
7.2.170.0020.01114.94
7.2.160.0100.00715.12
7.2.150.0000.01416.93
7.2.140.0070.01117.05
7.2.130.0040.01117.03
7.2.120.0060.01016.98
7.2.110.0050.00816.70
7.2.100.0060.00917.01
7.2.90.0030.01217.01
7.2.80.0030.01517.21
7.2.70.0040.01516.98
7.2.60.0000.01617.07
7.2.50.0110.00816.95
7.2.40.0070.00716.89
7.2.30.0060.00616.77
7.2.20.0080.00817.23
7.2.10.0060.00617.18
7.2.00.0030.01117.18
7.1.330.0060.00915.97
7.1.320.0030.01016.13
7.1.310.0070.00715.80
7.1.300.0080.00715.88
7.1.290.0050.00515.94
7.1.280.0030.01016.04
7.1.270.0030.01316.07
7.1.260.0050.00715.81
7.1.250.0060.00616.01
7.1.100.0040.00718.16
7.1.70.0030.01217.14
7.1.60.0130.01319.40
7.1.50.0170.01434.93
7.1.00.0100.07022.52
7.0.200.0020.00517.05
7.0.140.0030.07322.12
7.0.120.0000.03322.01
7.0.60.0200.06720.00
7.0.50.0100.03317.80
7.0.40.0070.08020.22
7.0.30.0230.04320.08
7.0.20.0230.04020.19
7.0.10.0130.08320.14
7.0.00.0000.04320.13
5.6.210.0100.04720.62
5.6.200.0000.06018.15
5.6.190.0100.06320.41
5.6.180.0330.06020.63
5.6.170.0230.03720.47
5.6.160.0030.06720.38
5.6.150.0100.07718.17
5.6.140.0030.04318.12
5.6.130.0000.04318.16
5.6.120.0100.08021.02
5.6.110.0100.05320.88
5.6.100.0000.04320.97
5.6.90.0030.05721.07
5.6.80.0100.05720.36
5.6.70.4330.03720.36
5.5.350.0000.07320.39
5.5.340.0070.06318.03
5.5.330.0030.04320.57
5.5.320.0230.07720.20
5.5.310.0170.08020.29
5.5.300.0100.03018.02
5.5.290.0000.05317.92
5.5.280.0130.07320.87
5.5.270.0070.05020.79
5.5.260.0000.06020.66
5.5.250.0170.08320.79
5.5.240.0270.05720.26
5.4.450.0330.07019.46
5.4.440.0300.07319.21
5.4.430.0170.05319.25
5.4.420.0100.04719.39
5.4.410.0200.06719.48
5.4.400.0270.05319.17
5.4.390.0400.02719.10
5.4.380.0270.03719.10
5.4.370.0170.06019.16
5.4.360.0230.05019.13
5.4.350.0270.04019.13
5.4.340.0300.06318.88
5.4.320.0130.07319.10
5.4.310.0230.07018.79
5.4.300.0170.07019.24
5.4.290.0400.04718.93
5.4.280.0270.05018.80
5.4.270.0230.07319.07
5.4.260.0300.06019.08
5.4.250.0170.05719.12
5.4.240.0330.04019.05
5.4.230.0300.06019.23
5.4.220.0200.07719.15
5.4.210.0230.06019.09
5.4.200.0270.04719.05
5.4.190.0130.05019.05
5.4.180.0230.03019.12
5.4.170.0200.04719.23
5.4.160.0300.06318.86
5.4.150.0270.05719.07
5.4.140.0170.03716.27
5.4.130.0230.03716.44
5.4.120.0230.06716.18
5.4.110.0200.08016.50
5.4.100.0270.06316.39
5.4.90.0200.03716.45
5.4.80.0300.06016.18
5.4.70.0230.06716.42
5.4.60.0300.05316.18
5.4.50.0270.06016.36
5.4.40.0200.05716.38
5.4.30.0100.04316.43
5.4.20.0070.05016.40
5.4.10.0170.03316.36
5.4.00.0200.03715.75
5.3.290.0270.07714.51
5.3.280.0270.07014.53
5.3.270.0270.04014.44
5.3.260.0330.03314.47
5.3.250.0230.04714.55
5.3.240.0200.05314.46
5.3.230.0200.04314.45
5.3.220.0200.05714.46
5.3.210.0230.06314.42
5.3.200.0170.06714.40
5.3.190.0370.05714.43
5.3.180.0300.07014.39
5.3.170.0230.07314.49
5.3.160.0230.07314.51
5.3.150.0300.05314.42
5.3.140.0130.04014.61
5.3.130.0130.04014.38
5.3.120.0200.03314.49
5.3.110.0130.04314.63
5.3.100.0100.04013.95
5.3.90.0170.03314.00
5.3.80.0170.04013.87
5.3.70.0170.04013.90
5.3.60.0130.04013.83
5.3.50.0270.03313.79
5.3.40.0170.03314.03
5.3.30.0030.04313.70
5.3.20.0170.03313.48
5.3.10.0100.03713.56
5.3.00.0100.03713.59
5.2.170.0130.02712.17
5.2.160.0130.02712.17
5.2.150.0070.03312.17
5.2.140.0100.03012.17
5.2.130.0130.02712.17
5.2.120.0130.03312.17
5.2.110.0100.02712.17
5.2.100.0170.02012.17
5.2.90.0070.03012.17
5.2.80.0170.05312.17
5.2.70.0130.03012.17
5.2.60.0100.03012.17
5.2.50.0100.03012.17
5.2.40.0130.02312.17
5.2.30.0070.03012.17
5.2.20.0130.02312.17
5.2.10.0130.02312.17
5.2.00.0130.02312.17
5.1.60.0070.02712.17
5.1.50.0070.02712.17
5.1.40.0130.02012.17
5.1.30.0100.02312.17
5.1.20.0070.02712.17
5.1.10.0030.03012.17
5.1.00.0130.02012.17
5.0.50.0070.02012.17
5.0.40.0030.02012.17
5.0.30.0070.02712.17
5.0.20.0130.01012.17
5.0.10.0070.01712.17
5.0.00.0070.02712.17
4.4.90.0030.01712.17
4.4.80.0100.01012.17
4.4.70.0070.01312.17
4.4.60.0030.01712.17
4.4.50.0030.01712.17
4.4.40.0030.02312.17
4.4.30.0070.01312.17
4.4.20.0070.01312.17
4.4.10.0100.01312.17
4.4.00.0000.02712.17
4.3.110.0030.01712.17
4.3.100.0030.01312.17
4.3.90.0000.01712.17
4.3.80.0070.02312.17
4.3.70.0130.02712.17
4.3.60.0100.02012.17
4.3.50.0100.02012.17
4.3.40.0070.05312.17
4.3.30.0030.02312.17
4.3.20.0070.03312.17
4.3.10.0030.01712.17
4.3.00.0000.03312.17

preferences:
39.05 ms | 401 KiB | 5 Q