3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<tag>i dont know what is here</tag> don't remove this text"; $string = preg_replace('|^<([a-z]*).*|', '<$1></$1>', $string); echo $string; // <tag></tag>

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.0130.00318.55
8.3.50.0140.00718.55
8.3.40.0140.00319.00
8.3.30.0060.00918.83
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0040.00426.16
8.2.180.0040.01125.92
8.2.170.0070.01119.02
8.2.160.0170.00022.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0040.00419.33
8.2.100.0040.00817.84
8.2.90.0050.00318.16
8.2.80.0040.00419.16
8.2.70.0060.00317.75
8.2.60.0090.00017.93
8.2.50.0040.00418.07
8.2.40.0090.00020.13
8.2.30.0000.00717.99
8.2.20.0060.00320.53
8.2.10.0050.00218.14
8.2.00.0000.00719.21
8.1.280.0140.00425.92
8.1.270.0000.00723.99
8.1.260.0030.00626.35
8.1.250.0000.00828.09
8.1.240.0040.00422.14
8.1.230.0100.00321.04
8.1.220.0040.00417.74
8.1.210.0000.00918.92
8.1.200.0000.00917.35
8.1.190.0000.00917.23
8.1.180.0060.00318.10
8.1.170.0000.00818.62
8.1.160.0000.00818.86
8.1.150.0040.00418.73
8.1.140.0040.00417.54
8.1.130.0000.00718.86
8.1.120.0050.00317.59
8.1.110.0040.00417.48
8.1.100.0000.00717.55
8.1.90.0000.00717.54
8.1.80.0000.00717.51
8.1.70.0060.00317.41
8.1.60.0070.00017.68
8.1.50.0000.01317.44
8.1.40.0110.00717.56
8.1.30.0130.00617.74
8.1.20.0190.00017.71
8.1.10.0040.01117.66
8.1.00.0070.00717.58
8.0.300.0060.00320.15
8.0.290.0080.00016.88
8.0.280.0040.00418.48
8.0.270.0000.00818.07
8.0.260.0060.00018.39
8.0.250.0000.00717.13
8.0.240.0000.00817.00
8.0.230.0020.00817.02
8.0.220.0070.00017.01
8.0.210.0030.00316.97
8.0.200.0150.00016.90
8.0.190.0110.00316.98
8.0.180.0040.01216.88
8.0.170.0080.00816.93
8.0.160.0090.00616.90
8.0.150.0090.00416.81
8.0.140.0160.00016.89
8.0.130.0080.00816.72
8.0.120.0110.00416.76
8.0.110.0080.00416.85
8.0.100.0120.00316.98
8.0.90.0110.00417.00
8.0.80.0050.01016.93
8.0.70.0030.01216.95
8.0.60.0150.00016.83
8.0.50.0140.00316.79
8.0.30.0070.00716.90
8.0.20.0030.00816.89
8.0.10.0140.00017.14
7.4.330.0060.00258.07
7.4.320.0000.00616.55
7.4.300.0090.00916.69
7.4.290.0190.00016.72
7.4.280.0120.00516.56
7.4.270.0110.00616.67
7.4.260.0090.00916.66
7.4.250.0140.00316.58
7.4.240.0050.01416.69
7.4.230.0120.00316.74
7.4.220.0150.00016.56
7.4.210.0120.00316.62
7.4.200.0100.00616.72
7.4.190.0120.00416.76
7.4.180.0110.00516.61
7.4.160.0080.00816.73
7.4.150.0110.00416.71
7.4.140.0130.00316.70
7.4.130.0150.00016.63
7.4.120.0110.00416.66
7.4.110.0110.00416.54
7.4.100.0070.00716.74
7.4.90.0070.00716.52
7.4.80.0120.00316.67
7.4.70.0120.00316.71
7.4.60.0080.00516.67
7.4.50.0080.00516.51
7.4.40.0000.00716.50
7.4.30.0080.00016.54
7.4.20.0040.00416.66
7.4.10.0040.00416.47
7.4.00.0030.00316.66
5.4.290.0080.00079.33

preferences:
54.11 ms | 400 KiB | 5 Q