3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = preg_quote("\دد"); echo preg_replace('#(?:^[^\pL]*)|(?:[^\pL]*$)#u','',$string);

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.20.0170.00318.05
8.4.10.0030.00617.72
8.3.150.0140.00416.75
8.3.140.0030.00617.36
8.3.130.0060.00318.68
8.3.120.0110.00718.74
8.3.110.0080.00518.68
8.3.100.0000.00920.55
8.3.90.0060.00326.77
8.3.80.0090.00019.36
8.3.70.0140.00718.47
8.3.60.0120.00816.63
8.3.50.0120.00822.04
8.3.40.0070.00719.04
8.3.30.0110.00719.14
8.3.20.0040.00420.35
8.3.10.0080.00023.65
8.3.00.0080.00417.75
8.2.260.0140.00418.35
8.2.250.0040.01117.09
8.2.240.0030.00617.42
8.2.230.0030.00620.94
8.2.220.0050.00537.54
8.2.210.0000.00726.77
8.2.200.0090.00018.88
8.2.190.0110.00418.67
8.2.180.0110.01116.75
8.2.170.0060.00922.96
8.2.160.0070.01320.38
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00021.04
8.2.110.0030.00622.22
8.2.100.0040.00718.03
8.2.90.0030.00617.88
8.2.80.0050.00317.97
8.2.70.0090.00017.75
8.2.60.0060.00317.88
8.2.50.0040.00417.63
8.2.40.0060.00319.44
8.2.30.0030.00618.14
8.2.20.0060.00317.96
8.2.10.0080.00018.08
8.2.00.0070.00317.76
8.1.310.0070.01018.44
8.1.300.0000.00718.10
8.1.290.0090.00330.84
8.1.280.0120.00325.92
8.1.270.0030.00623.84
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0030.00623.92
8.1.230.0060.00622.82
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0000.00817.62
8.1.160.0040.00419.01
8.1.150.0060.00318.66
8.1.140.0040.00417.59
8.1.130.0040.00317.68
8.1.120.0050.00317.52
8.1.110.0070.00117.55
8.1.100.0020.00617.49
8.1.90.0040.00417.52
8.1.80.0010.00617.55
8.1.70.0050.00317.45
8.1.60.0010.00717.68
8.1.50.0070.00117.62
8.1.40.0020.00617.74
8.1.30.0000.00817.71
8.1.20.0050.00317.66
8.1.10.0050.00317.61
8.1.00.0060.00217.54
8.0.300.0000.00921.96
8.0.290.0030.00516.88
8.0.280.0070.00018.46
8.0.270.0070.00017.18
8.0.260.0060.00217.27
8.0.250.0070.00217.23
8.0.240.0030.00617.27
8.0.230.0020.00517.22
8.0.220.0020.00517.22
8.0.210.0040.00417.23
8.0.200.0070.00217.25
8.0.190.0030.00717.26
8.0.180.0080.00117.24
8.0.170.0080.00117.20
8.0.160.0090.00017.23
8.0.150.0090.00417.13
8.0.140.0040.00317.16
8.0.130.0010.00615.40
8.0.120.0060.00417.15
8.0.110.0040.00717.13
8.0.100.0060.00317.11
8.0.90.0060.00317.24
8.0.80.0060.01017.21
8.0.70.0010.00817.19
8.0.60.0040.00417.23
8.0.50.0040.00417.16
8.0.30.0040.01217.23
8.0.20.0050.01117.38
8.0.10.0040.00417.24
8.0.00.0120.00617.09
7.4.330.0060.00616.16
7.4.320.0160.00216.96
7.4.300.0110.00217.02
7.4.290.0100.00316.95
7.4.280.0130.00217.08
7.4.270.0100.00216.99
7.4.260.0120.00117.06
7.4.250.0070.00817.06
7.4.240.0090.00216.95
7.4.230.0110.00216.94
7.4.220.0130.00717.08
7.4.210.0100.00616.95
7.4.200.0070.00316.94
7.4.190.0090.00116.92
7.4.180.0110.00317.33
7.4.160.0090.00917.13
7.4.150.0090.00717.37
7.4.140.0130.00617.68
7.4.130.0060.00916.83
7.4.120.0130.00616.87
7.4.110.0080.00717.10
7.4.100.0110.00816.92
7.4.90.0160.00416.92
7.4.80.0140.00618.36
7.4.70.0120.00317.04
7.4.60.0160.00317.02
7.4.50.0080.00417.04
7.4.40.0080.00620.05
7.4.30.0110.00317.09
7.4.20.0100.00517.33
7.4.10.0050.00816.89
7.4.00.0120.00316.30
7.3.330.0060.00415.25
7.3.320.0110.00015.27
7.3.310.0040.00716.87
7.3.300.0050.00616.83
7.3.290.0070.00916.83
7.3.280.0080.01016.59
7.3.270.0140.00217.37
7.3.260.0130.00416.95
7.3.250.0090.00916.81
7.3.240.0120.00416.98
7.3.230.0110.00816.99
7.3.220.0100.00517.33
7.3.210.0110.00516.89
7.3.200.0110.01018.36
7.3.190.0070.01216.94
7.3.180.0080.00816.93
7.3.170.0100.00616.88
7.3.160.0080.00616.89
7.3.150.0100.00517.33
7.3.140.0070.00717.33
7.3.130.0060.01016.83
7.3.120.0080.00716.15
7.3.110.0100.00516.94
7.3.100.0080.00716.95
7.3.90.0040.01116.95
7.3.80.0060.01016.79
7.3.70.0030.01116.89
7.3.60.0050.01216.93
7.3.50.0100.00616.92
7.3.40.0090.00816.86
7.3.30.0110.00416.83
7.3.20.0110.00617.78
7.3.10.0140.00517.78
7.3.00.0130.00517.72
7.2.340.0080.00817.33
7.2.330.0070.01016.97
7.2.320.0100.00817.00
7.2.310.0140.00217.01
7.2.300.0090.00717.00
7.2.290.0090.01017.11
7.2.280.0160.00017.33
7.2.270.0120.00317.33
7.2.260.0060.01117.06
7.2.250.0080.00817.03
7.2.240.0080.00717.04
7.2.230.0080.00816.95
7.2.220.0090.00617.06
7.2.210.0050.01116.99
7.2.200.0060.01016.99
7.2.190.0110.00517.00
7.2.180.0100.00517.01
7.2.170.0070.00916.92
7.2.160.0080.00816.98
7.2.150.0160.00317.99
7.2.140.0120.00418.00
7.2.130.0110.00617.92
7.2.120.0080.01018.02
7.2.110.0100.00617.88
7.2.100.0080.00917.87
7.2.90.0100.00817.84
7.2.80.0080.01017.86
7.2.70.0110.00817.87
7.2.60.0200.00917.51
7.2.50.0080.00917.99
7.2.40.0080.00917.87
7.2.30.0100.00818.01
7.2.20.0130.00417.96
7.2.10.0090.01117.94
7.2.00.0100.00817.83
7.1.330.0080.00317.41
7.1.320.0080.00617.32
7.1.310.0090.00617.38
7.1.300.0110.00317.40
7.1.290.0090.00717.41
7.1.280.0090.00717.44
7.1.270.0070.00717.41
7.1.260.0080.00717.34
7.1.250.0050.00917.38
7.1.240.0090.00517.42
7.1.230.0090.00517.30
7.1.220.0110.00617.36
7.1.210.0060.00817.32
7.1.200.0110.00716.89
7.1.190.0100.00717.30
7.1.180.0250.00917.38
7.1.170.0070.00817.41
7.1.160.0100.00817.42
7.1.150.0120.00617.37
7.1.140.0150.00317.33
7.1.130.0110.00717.30
7.1.120.0060.01017.40
7.1.110.0070.00917.40
7.1.100.0050.01017.60
7.1.90.0110.00317.31
7.1.80.0080.00817.38
7.1.70.0060.00717.20
7.1.60.0070.01218.02
7.1.50.0080.01217.26
7.1.40.0100.00517.30
7.1.30.0050.01217.38
7.1.20.0150.00517.40
7.1.10.0130.00117.40
7.1.00.0020.03719.03
7.0.330.0090.00517.21
7.0.320.0110.00517.21
7.0.310.0050.00717.18
7.0.300.0160.00917.20
7.0.290.0090.00717.16
7.0.280.0090.00717.20
7.0.270.0100.00717.24
7.0.260.0100.00717.28
7.0.250.0060.01017.22
7.0.240.0090.00617.21
7.0.230.0060.00917.31
7.0.220.0190.00117.23
7.0.210.0060.00917.12
7.0.200.0030.01017.04
7.0.190.0100.00617.24
7.0.180.0110.00717.30
7.0.170.0120.00317.23
7.0.160.0070.00817.29
7.0.150.0070.00817.29
7.0.140.0070.02718.82
7.0.130.0050.01217.24
7.0.120.0080.01017.22
7.0.110.0110.00617.24
7.0.100.0090.00817.20
7.0.90.0130.00717.21
7.0.80.0290.00717.10
7.0.70.0130.00517.16
7.0.60.0100.02018.19
7.0.50.0120.02517.41
7.0.40.0120.03217.54
7.0.30.0150.02417.55
7.0.20.0170.03117.42
7.0.10.0130.03617.57
7.0.00.0130.03017.55
5.6.400.0060.00816.50
5.6.390.0110.00516.61
5.6.380.0090.00416.62
5.6.370.0120.00316.63
5.6.360.0090.00716.55
5.6.350.0110.00716.66
5.6.340.0060.01116.54
5.6.330.0050.00916.53
5.6.320.0080.00916.42
5.6.310.0040.00916.71
5.6.300.0090.00616.57
5.6.290.0060.01116.51
5.6.280.0090.02918.02
5.6.270.0090.00916.60
5.6.260.0110.00716.53
5.6.250.0150.00116.65
5.6.240.0120.00516.53
5.6.230.0060.01116.53
5.6.220.0130.00716.59
5.6.210.0080.03317.91
5.6.200.0070.03717.01
5.6.190.0110.03017.91
5.6.180.0130.02117.87
5.6.170.0150.02317.85
5.6.160.0150.02517.83
5.6.150.0150.02617.08
5.6.140.0070.02117.13
5.6.130.0100.03217.08
5.6.120.0090.03118.08
5.6.110.0050.03418.04
5.6.100.0130.01918.07
5.6.90.0120.02017.97
5.6.80.0080.03217.75
5.6.70.0080.02417.87
5.6.60.0070.00916.61
5.6.50.0090.00616.60
5.6.40.0070.00816.40
5.6.30.0050.01016.43
5.6.20.0060.00916.54
5.6.10.0100.00616.65
5.6.00.0060.00916.53
5.5.380.0090.00916.53
5.5.370.0150.00416.55
5.5.360.0080.01116.51
5.5.350.0160.02217.78
5.5.340.0100.02516.92
5.5.330.0090.03217.87
5.5.320.0150.01917.74
5.5.310.0140.03617.75
5.5.300.0110.03016.99
5.5.290.0090.02517.02
5.5.280.0090.03417.92
5.5.270.0110.03218.04
5.5.260.0100.03517.93
5.5.250.0080.03517.94
5.5.240.0110.02617.70
5.5.230.0120.00616.48
5.5.220.0120.00516.49
5.5.210.0080.01116.55
5.5.200.0130.00316.54
5.5.190.0070.01116.58
5.5.180.0100.00716.52
5.5.170.0090.00916.46
5.5.160.0140.00616.46
5.5.150.0080.01016.52
5.5.140.0090.01016.51
5.5.130.0080.01116.50
5.5.120.0050.01416.52
5.5.110.0130.00716.53
5.5.100.0110.00616.53
5.5.90.0100.01016.37
5.5.80.0070.01216.50
5.5.70.0070.00816.57
5.5.60.0100.00816.52
5.5.50.0120.00716.52
5.5.40.0080.01016.58
5.5.30.0070.01216.47
5.5.20.0100.00916.57
5.5.10.0060.01116.51
5.5.00.0120.00616.46
5.4.450.1190.01716.41
5.4.440.1170.02016.46
5.4.430.1190.01916.49
5.4.420.1140.02016.50
5.4.410.1070.01816.36
5.4.400.1140.01916.32
5.4.390.1170.01716.41
5.4.380.1460.01616.32
5.4.370.1170.01816.38
5.4.360.1160.01616.39
5.4.350.1220.01716.36
5.4.340.1110.02016.37
5.4.330.0020.01215.01
5.4.320.1180.02016.27
5.4.310.1180.01916.37
5.4.300.1310.01616.38
5.4.290.1170.01816.27
5.4.280.1160.01716.39
5.4.270.1230.01916.37
5.4.260.1210.01716.36
5.4.250.1120.01816.27
5.4.240.1130.01316.38
5.4.230.1100.01916.42
5.4.220.1190.01416.26
5.4.210.1160.01816.40
5.4.200.1140.01716.31
5.4.190.1210.01616.35
5.4.180.1110.01616.42
5.4.170.1130.01816.37
5.4.160.1190.01616.31
5.4.150.1190.02016.38
5.4.140.1190.01815.51
5.4.130.1080.02015.45
5.4.120.1340.01315.45
5.4.110.1150.01415.47
5.4.100.1120.01615.48
5.4.90.1180.01815.50
5.4.80.1170.01915.47
5.4.70.1170.01615.41
5.4.60.1130.01515.47
5.4.50.1200.01715.44
5.4.40.1270.01315.40
5.4.30.1220.01415.44
5.4.20.1150.01915.49
5.4.10.1190.01515.47
5.4.00.1230.01215.24
5.3.290.1760.02115.99
5.3.280.1520.02215.91
5.3.270.1750.03115.98
5.3.260.1640.02015.99
5.3.250.1710.02415.92
5.3.240.1770.02016.01
5.3.230.2160.02115.94
5.3.220.1850.02715.91
5.3.210.1700.02315.92
5.3.200.1720.02515.92
5.3.190.1640.02615.91
5.3.180.1800.02015.99
5.3.170.1670.01815.89
5.3.160.1780.01815.86
5.3.150.1760.02115.88
5.3.140.1720.02615.91
5.3.130.1720.02315.95
5.3.120.1890.02315.93
5.3.110.1740.02115.87
5.3.100.1730.02315.61
5.3.90.1690.02115.65
5.3.80.1760.02015.68
5.3.70.1700.02015.65
5.3.60.1830.02315.61
5.3.50.1500.02315.61
5.3.40.1800.01815.55
5.3.30.1580.01715.63
5.3.20.1800.01615.43
5.3.10.1750.02015.46
5.3.00.1580.01815.49

preferences:
42.41 ms | 403 KiB | 5 Q