3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "/[^<>agt](.*)[^g<a\/t>]/"; $replace = "your new inner text"; $string = "thanks <tag>i dont know what is here</tag>"; echo preg_replace($search,$replace,$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.3.60.0150.00018.30
8.3.50.0080.00818.30
8.3.40.0110.00418.70
8.3.30.0110.00418.88
8.3.20.0120.00620.79
8.3.10.0070.00023.48
8.3.00.0050.00320.58
8.2.180.0070.00718.43
8.2.170.0070.00722.96
8.2.160.0090.00621.31
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.30
8.2.110.0060.00322.20
8.2.100.0060.00617.97
8.2.90.0050.00317.91
8.2.80.0030.00617.75
8.2.70.0040.00417.75
8.2.60.0060.00317.93
8.2.50.0030.00618.07
8.2.40.0050.00318.03
8.2.30.0000.00718.13
8.2.20.0040.00417.98
8.2.10.0050.00218.92
8.2.00.0040.00419.11
8.1.270.0090.00623.85
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00624.03
8.1.230.0040.00822.77
8.1.220.0060.00317.74
8.1.210.0080.00018.87
8.1.200.0060.00317.36
8.1.190.0000.00917.36
8.1.180.0040.00418.10
8.1.170.0030.00518.64
8.1.160.0040.00418.72
8.1.150.0000.00718.79
8.1.140.0070.00018.83
8.1.130.0000.00720.01
8.1.120.0030.00317.60
8.1.110.0080.00017.45
8.1.100.0050.00317.48
8.1.90.0040.00417.42
8.1.80.0000.00817.53
8.1.70.0030.00317.53
8.1.60.0070.00317.66
8.1.50.0060.00517.61
8.1.40.0040.00417.64
8.1.30.0050.00517.74
8.1.20.0000.00817.75
8.1.10.0030.00617.59
8.1.00.0060.00317.60
8.0.300.0020.00519.96
8.0.290.0070.00016.75
8.0.280.0040.00418.45
8.0.270.0040.00417.40
8.0.260.0060.00020.14
8.0.250.0030.00317.13
8.0.240.0070.00017.11
8.0.230.0000.00817.02
8.0.220.0030.00316.98
8.0.210.0000.00717.01
8.0.200.0060.00017.02
8.0.190.0000.00816.88
8.0.180.0080.00017.01
8.0.170.0040.00416.99
8.0.160.0040.00416.96
8.0.150.0000.00816.91
8.0.140.0050.00516.98
8.0.130.0030.00313.44
8.0.120.0000.00716.94
8.0.110.0030.00516.88
8.0.100.0040.00416.88
8.0.90.0000.00917.04
8.0.80.0140.00016.92
8.0.70.0040.00416.87
8.0.60.0000.00716.96
8.0.50.0030.00516.98
8.0.30.0250.01217.38
8.0.20.0030.01417.11
8.0.10.0090.00917.26
8.0.00.0140.00816.94
7.4.330.0050.00015.55
7.4.320.0060.00016.65
7.4.300.0000.00716.79
7.4.290.0000.00816.54
7.4.280.0030.00516.73
7.4.270.0030.00316.71
7.4.260.0000.00613.40
7.4.250.0000.00716.70
7.4.240.0050.00316.70
7.4.230.0070.00016.50
7.4.220.0050.00216.71
7.4.210.0090.00916.73
7.4.200.0000.00716.77
7.4.140.0030.01616.74
7.4.130.0100.01216.53
7.4.120.0110.00916.63
7.4.110.0100.01016.59
7.4.100.0150.00716.65
7.4.90.0120.00716.51
7.4.80.0080.01217.99
7.4.70.0080.01016.38
7.4.60.0060.01216.51
7.4.50.0070.01116.51
7.4.40.0070.00916.52
7.4.30.0160.00316.49
7.4.20.0060.01516.34
7.4.10.0070.01116.45
7.4.00.0060.01015.62
7.3.330.0000.00816.18
7.3.320.0030.00313.02
7.3.310.0030.00316.13
7.3.300.0000.00716.25
7.3.290.0000.00716.29
7.3.260.0130.00716.40
7.3.250.0110.00716.63
7.3.240.0150.00316.61
7.3.230.0070.01016.59
7.3.220.0120.00616.39
7.3.210.0100.00816.53
7.3.200.0130.00816.24
7.3.190.0100.00716.26
7.3.180.0110.00616.65
7.3.170.0130.00816.33
7.3.160.0090.00816.33
7.3.150.0100.00716.29
7.3.140.0070.01016.32
7.3.130.0140.00816.25
7.3.120.0100.00715.45
7.3.110.0050.01015.12
7.3.100.0060.00915.16
7.3.90.0100.00615.20
7.3.80.0070.00815.14
7.3.70.0060.00915.16
7.3.60.0090.00815.07
7.3.50.0120.00615.16
7.3.40.0140.00515.15
7.3.30.0100.00915.03
7.3.20.0100.00915.38
7.3.10.0120.00515.45
7.3.00.0140.00715.49
7.2.340.0240.01216.67
7.2.330.0190.00516.75
7.2.320.0150.01116.65
7.2.310.0150.00916.70
7.2.300.0220.00416.65
7.2.290.0160.01016.57
7.2.280.0190.01216.70
7.2.270.0230.00816.55
7.2.260.0210.00916.59
7.2.250.0170.00815.89
7.2.240.0110.01015.28
7.2.230.0140.00715.28
7.2.220.0130.00615.26
7.2.210.0060.01315.38
7.2.200.0110.00915.37
7.2.190.0100.00915.27
7.2.180.0110.01015.35
7.2.170.0100.01015.20
7.2.160.0110.01015.46
7.2.150.0130.01115.47
7.2.140.0140.01115.38
7.2.130.0130.00915.35
7.2.120.0260.00515.41
7.2.110.0100.01015.45
7.2.100.0080.01315.32
7.2.90.0160.00815.48
7.2.80.0110.01315.59
7.2.70.0120.00815.52
7.2.60.0120.01015.38
7.2.50.0150.00915.54
7.2.40.0150.00915.47
7.2.30.0130.00915.45
7.2.20.0160.00615.38
7.2.10.0140.00715.39
7.2.00.0110.01215.36
7.1.330.0110.00714.60
7.1.320.0110.00514.77
7.1.310.0070.01114.79
7.1.300.0100.00914.67
7.1.290.0110.00914.75
7.1.280.0130.00414.59
7.1.270.0120.00914.62
7.1.260.0110.00914.63
7.1.250.0160.00814.37
7.1.240.0130.01414.45
7.1.230.0160.00914.45
7.1.220.0200.01014.44
7.1.210.0160.01314.47
7.1.200.0180.01114.61
7.1.190.0160.01214.40
7.1.180.0200.00414.48
7.1.170.0180.00914.44
7.1.160.0140.01414.49
7.1.150.0300.01114.64
7.1.140.0150.01114.54
7.1.130.0230.00514.60
7.1.120.0190.01014.47
7.1.110.0160.00914.51
7.1.100.0190.00814.65
7.1.90.0170.00914.49
7.1.80.0200.00614.56
7.1.70.0250.00514.51
7.1.60.0140.01114.46
7.1.50.0160.01214.51
7.1.40.0200.00714.55
7.1.30.0180.00714.63
7.1.20.0200.00614.48
7.1.10.0130.01014.50
7.1.00.0310.00914.60

preferences:
69.4 ms | 400 KiB | 5 Q