3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<ul><li><a href="">Test</a>(10)</li>'; $string = str_replace('</a>',' ', $string); // output <ul><li><a href="">Test'(10)</li> $string = str_replace('</li>','</a></li>', $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.0070.00716.75
8.3.50.0150.00316.18
8.3.40.0040.01118.40
8.3.30.0170.00018.51
8.3.20.0000.00720.13
8.3.10.0080.00021.65
8.3.00.0040.00419.26
8.2.180.0030.01416.38
8.2.170.0040.01122.96
8.2.160.0100.00320.38
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00721.00
8.2.120.0040.00426.35
8.2.110.0030.00620.53
8.2.100.0040.00817.72
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0080.00017.38
8.2.60.0030.00517.93
8.2.50.0060.00318.10
8.2.40.0070.00020.77
8.2.30.0030.00620.98
8.2.20.0060.00318.05
8.2.10.0030.00317.96
8.2.00.0000.00717.95
8.1.280.0100.00725.92
8.1.270.0040.00422.06
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00523.98
8.1.230.0040.00817.70
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0030.00617.11
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0000.00718.86
8.1.160.0000.00718.98
8.1.150.0000.00720.61
8.1.140.0050.00519.43
8.1.130.0070.00018.81
8.1.120.0000.00717.29
8.1.110.0000.00717.33
8.1.100.0040.00417.41
8.1.90.0090.00017.27
8.1.80.0070.00017.27
8.1.70.0000.00817.32
8.1.60.0040.00417.39
8.1.50.0040.00417.34
8.1.40.0000.00817.45
8.1.30.0000.00817.66
8.1.20.0000.00717.59
8.1.10.0080.00017.28
8.1.00.0070.00017.42
8.0.300.0080.00018.77
8.0.290.0070.00016.63
8.0.280.0030.00318.38
8.0.270.0050.00317.20
8.0.260.0000.00716.62
8.0.250.0030.00316.91
8.0.240.0040.00416.75
8.0.230.0070.00016.74
8.0.220.0000.00716.86
8.0.210.0030.00316.72
8.0.200.0030.00316.91
8.0.190.0080.00016.92
8.0.180.0050.00216.79
8.0.170.0080.00016.83
8.0.160.0040.00416.82
8.0.150.0070.00016.82
8.0.140.0000.00716.79
8.0.130.0060.00013.23
8.0.120.0000.00816.73
8.0.110.0030.00316.70
8.0.100.0050.00216.79
8.0.90.0030.00516.82
8.0.80.0150.00616.80
8.0.70.0050.00316.87
8.0.60.0040.00416.72
8.0.50.0050.00216.79
8.0.30.0160.00617.11
8.0.20.0120.00617.40
8.0.10.0040.00416.83
8.0.00.0040.01516.60
7.4.330.0030.00315.55
7.4.320.0060.00016.49
7.4.300.0000.00616.38
7.4.290.0030.00316.54
7.4.280.0030.00716.52
7.4.270.0030.00316.54
7.4.260.0090.00016.55
7.4.250.0030.00316.49
7.4.240.0070.00016.38
7.4.230.0070.00016.27
7.4.220.0070.01116.53
7.4.210.0090.00816.50
7.4.200.0000.00716.57
7.4.160.0080.00816.51
7.4.150.0120.00617.40
7.4.140.0090.01117.86
7.4.130.0140.00316.37
7.4.120.0080.01216.36
7.4.110.0120.00316.43
7.4.100.0050.01116.48
7.4.90.0000.01716.51
7.4.80.0090.00919.39
7.4.70.0060.00916.52
7.4.60.0060.01316.34
7.4.50.0130.00316.28
7.4.40.0030.01316.50
7.4.30.0100.00716.60
7.4.00.0140.00014.81
7.3.330.0050.00012.97
7.3.320.0050.00013.07
7.3.310.0000.00716.10
7.3.300.0070.00016.12
7.3.290.0030.00316.12
7.3.280.0090.00816.10
7.3.270.0090.00917.40
7.3.260.0110.00616.41
7.3.250.0110.00916.18
7.3.240.0100.01016.41
7.3.230.0070.01016.46
7.3.210.0100.00716.54
7.3.200.0100.01016.13
7.3.190.0030.01316.45
7.3.180.0100.00716.46
7.3.170.0060.01116.13
7.3.160.0040.01216.39
7.2.330.0170.00016.51
7.2.320.0070.01016.51
7.2.310.0160.00616.61
7.2.300.0040.01216.54
7.2.290.0090.00816.44
7.2.60.0130.00316.72
7.2.00.0040.01119.23
7.1.200.0030.00715.82
7.1.100.0000.01018.10
7.1.70.0070.00716.96
7.1.60.0110.01834.73
7.1.50.0130.01634.75
7.1.40.0200.01034.24
7.1.30.0250.00334.34
7.1.20.0220.01034.72
7.1.10.0060.00916.70
7.1.00.0060.00916.68
7.0.200.0100.00316.63
7.0.190.0110.00316.34
7.0.180.0030.01316.34
7.0.170.0030.01016.39
7.0.160.0060.00916.06
7.0.150.0100.00715.94
7.0.140.0040.01416.30
7.0.130.0000.01316.57
7.0.120.0070.01116.35
7.0.110.0070.01016.16
7.0.100.0090.00616.29
7.0.90.0080.00816.10
7.0.80.0060.00916.42
7.0.70.0030.01116.11
7.0.60.0000.01516.14
7.0.50.0000.01416.44
7.0.40.0040.01116.30
7.0.30.0070.00716.58
7.0.20.0070.00716.38
7.0.10.0050.00916.26
7.0.00.0140.00016.39

preferences:
53.74 ms | 401 KiB | 5 Q