3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'hi test1="12c4 ab3d" blablabla test1="abcd 3456 sdfs 2435"'; echo preg_replace('~\btest1="[^"\s]*\K[^"]+~', '', $str);

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.0150.00617.63
8.4.130.0070.00217.80
8.4.120.0050.00320.73
8.4.110.0050.00418.97
8.4.100.0100.01117.89
8.4.90.0120.00917.59
8.4.80.0090.01117.98
8.4.70.0100.01019.71
8.4.60.0110.01018.81
8.4.50.0060.00218.19
8.4.40.0100.00620.44
8.4.30.0160.00320.31
8.4.20.0120.00620.64
8.4.10.0030.00619.56
8.3.260.0120.00616.68
8.3.250.0120.00718.81
8.3.240.0050.00416.51
8.3.230.0140.00516.54
8.3.220.0060.00216.69
8.3.210.0110.00516.63
8.3.200.0050.00516.74
8.3.190.0050.00317.22
8.3.180.0110.00816.48
8.3.170.0070.01117.21
8.3.160.0110.00716.66
8.3.150.0160.00320.53
8.3.140.0090.00916.50
8.3.130.0080.00016.43
8.3.120.0030.00618.89
8.3.110.0070.00418.23
8.3.100.0060.00616.60
8.3.90.0110.00726.77
8.3.80.0090.00018.43
8.3.70.0140.00716.63
8.3.60.0140.00718.41
8.3.50.0110.00418.14
8.3.40.0000.01418.71
8.3.30.0090.00618.84
8.3.20.0030.00724.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0090.00920.35
8.2.280.0120.00618.56
8.2.270.0120.00616.95
8.2.260.0080.00018.76
8.2.250.0030.00618.34
8.2.240.0040.01119.03
8.2.230.0090.00620.94
8.2.220.0040.00424.06
8.2.210.0150.00426.77
8.2.200.0040.00418.78
8.2.190.0130.00716.63
8.2.180.0120.00625.92
8.2.170.0120.00319.05
8.2.160.0130.00622.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.10
8.2.110.0060.00322.43
8.2.100.0090.00317.84
8.2.90.0040.00420.07
8.2.80.0030.00518.03
8.2.70.0050.00317.88
8.2.60.0030.00617.88
8.2.50.0000.00817.75
8.2.40.0060.00318.16
8.2.30.0030.00518.20
8.2.20.0000.00818.31
8.2.10.0000.00719.12
8.2.00.0000.00719.08
8.1.330.0050.01121.98
8.1.320.0110.00916.39
8.1.310.0070.00716.55
8.1.300.0130.00618.21
8.1.290.0060.00330.84
8.1.280.0120.00625.92
8.1.270.0100.01023.77
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00323.91
8.1.230.0070.00419.17
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00817.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0080.00017.62
8.1.160.0000.00718.91
8.1.150.0000.00718.83
8.1.140.0030.00518.96
8.1.130.0000.00720.22
8.1.120.0000.00717.45
8.1.110.0000.00717.43
8.1.100.0000.00717.44
8.1.90.0070.00017.43
8.1.80.0040.00817.43
8.1.70.0030.00617.52
8.1.60.0030.00617.67
8.1.50.0000.00817.49
8.1.40.0000.00817.45
8.1.30.0050.00317.64
8.1.20.0040.00417.63
8.1.10.0060.00417.62
8.1.00.0040.00717.63
8.0.300.0060.00319.91
8.0.290.0000.00716.63
8.0.280.0030.00318.37
8.0.270.0030.00418.16
8.0.260.0030.00318.59
8.0.250.0040.00417.12
8.0.240.0040.00417.10
8.0.230.0030.00317.02
8.0.220.0080.00016.99
8.0.210.0070.00016.91
8.0.200.0000.00617.01
8.0.190.0040.00417.01
8.0.180.0000.00717.02
8.0.170.0000.00816.93
8.0.160.0050.00316.98
8.0.150.0100.00316.90
8.0.140.0130.00016.92
8.0.130.0060.00615.08
8.0.120.0070.00816.90
8.0.110.0120.00317.00
8.0.100.0080.00616.95
8.0.90.0090.00516.99
8.0.80.0080.01216.96
8.0.70.0130.00816.96
8.0.60.0110.00816.89
8.0.50.0100.01016.93
8.0.30.0080.01016.92
8.0.20.0140.00516.96
8.0.10.0120.00517.09
8.0.00.0110.00617.09
7.4.330.0040.00015.55
7.4.320.0000.00616.75
7.4.300.0060.00016.66
7.4.290.0000.00716.63
7.4.280.0070.00016.78
7.4.270.0070.00716.68
7.4.260.0110.00416.69
7.4.250.0150.00216.66
7.4.240.0100.00716.68
7.4.230.0120.00416.76
7.4.220.0120.00216.66
7.4.210.0080.00916.73
7.4.200.0140.00416.69
7.4.190.0120.00716.77
7.4.180.0140.00516.73
7.4.160.0090.00816.83
7.4.150.0080.01016.73
7.4.140.0110.00716.60
7.4.130.0170.00116.62
7.4.120.0140.00416.60
7.4.110.0110.00916.65
7.4.100.0130.00816.72
7.4.90.0070.01316.66
7.4.80.0130.00616.57
7.4.70.0120.00916.58
7.4.60.0110.00916.52
7.4.50.0110.00816.59
7.4.40.0070.00916.60
7.4.30.0150.00516.51
7.4.20.0140.00916.56
7.4.10.0120.01016.64
7.4.00.0170.00316.67
7.3.330.0110.00516.20
7.3.320.0100.00414.73
7.3.310.0100.00416.28
7.3.300.0150.00316.10
7.3.290.0150.00716.29
7.3.280.0120.00716.31
7.3.270.0180.00416.33
7.3.260.0130.00716.24
7.3.250.0170.00316.32
7.3.240.0130.00516.23
7.3.230.0120.00716.23
7.3.220.0110.01116.19
7.3.210.0110.00816.18
7.3.200.0140.00716.26
7.3.190.0150.00416.17
7.3.180.0080.01116.17
7.3.170.0110.00816.22
7.3.160.0120.00716.29
7.3.150.0150.00316.22
7.3.140.0160.00516.25
7.3.130.0120.00716.24
7.3.120.0140.00516.14
7.3.110.0110.00616.19
7.3.100.0100.01016.07
7.3.90.0100.00716.48
7.3.80.0130.00516.18
7.3.70.0120.00916.35
7.3.60.0120.00516.50
7.3.50.0120.00616.51
7.3.40.0110.00716.36
7.3.30.0070.01216.41
7.3.20.0160.00416.35
7.3.10.0170.00816.25
7.3.00.0110.01016.32

preferences:
134.68 ms | 403 KiB | 5 Q