3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'First%20sentence.%0D%0ASecond%20Sentence.', 'Just%20one%20sentence.', ]; foreach ($strings as $string) { echo "\n---\n"; echo preg_replace('/(?:%0D|%0A).*/', '', $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.120.0090.00120.59
8.4.110.0110.00918.54
8.4.100.0120.00918.02
8.4.90.0050.00620.64
8.4.80.0070.00218.77
8.4.70.0110.00818.61
8.4.60.0090.01218.59
8.4.50.0110.00917.91
8.4.40.0130.00717.98
8.4.30.0070.01120.55
8.4.20.0150.00617.87
8.4.10.0000.00819.70
8.3.250.0060.00417.17
8.3.240.0120.00916.66
8.3.230.0100.00516.81
8.3.220.0110.00218.97
8.3.210.0110.00716.79
8.3.200.0030.00616.82
8.3.190.0050.00417.19
8.3.180.0120.00718.45
8.3.170.0040.01116.67
8.3.160.0070.01017.13
8.3.150.0160.00319.03
8.3.140.0000.00820.71
8.3.130.0050.00318.55
8.3.120.0090.00018.95
8.3.110.0050.00320.94
8.3.100.0060.00316.51
8.3.90.0070.00426.77
8.3.80.0090.00318.55
8.3.70.0120.00318.43
8.3.60.0090.01318.55
8.3.50.0140.00716.68
8.3.40.0070.00722.04
8.3.30.0140.00020.29
8.3.20.0180.00425.66
8.3.10.0000.02025.66
8.3.00.0130.00925.66
8.2.290.0040.00418.73
8.2.280.0120.00722.27
8.2.270.0150.00318.48
8.2.260.0070.01116.61
8.2.250.0070.01118.70
8.2.240.0060.01017.34
8.2.230.0090.00022.58
8.2.220.0030.00624.06
8.2.210.0030.00626.77
8.2.200.0090.00318.41
8.2.190.0140.00018.66
8.2.180.0130.00616.38
8.2.170.0180.00019.03
8.2.160.0130.00022.96
8.2.150.0100.01025.66
8.2.140.0140.00325.66
8.2.130.0100.00725.66
8.2.120.0060.01225.66
8.2.110.0170.00025.66
8.2.100.0120.00625.66
8.2.90.0180.00025.66
8.2.80.0070.01125.66
8.2.70.0190.00325.66
8.2.60.0070.01425.66
8.2.50.0150.00625.66
8.2.40.0120.00825.66
8.2.30.0150.00325.66
8.2.20.0140.00425.66
8.2.10.0110.00725.66
8.2.00.0130.00325.66
8.1.330.0120.00816.54
8.1.320.0090.01018.11
8.1.310.0140.00316.43
8.1.300.0070.00418.24
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0110.00425.66
8.1.260.0120.00325.66
8.1.250.0090.00625.66
8.1.240.0110.00425.66
8.1.230.0120.00325.66
8.1.220.0110.00725.66
8.1.210.0130.00325.66
8.1.200.0090.00625.66
8.1.190.0080.00825.66
8.1.180.0090.00625.66
8.1.170.0110.00425.66
8.1.160.0110.00425.66
8.1.150.0140.00325.66
8.1.140.0110.00425.66
8.1.130.0070.00725.66
8.1.120.0110.00325.66
8.1.110.0030.01625.66
8.1.100.0120.00625.66
8.1.90.0090.00925.66
8.1.80.0040.01225.66
8.1.70.0150.00025.66
8.1.60.0070.01025.66
8.1.50.0100.00725.66
8.1.40.0150.00325.66
8.1.30.0170.00325.66
8.1.20.0040.01125.66
8.1.10.0090.00625.66
8.1.00.0040.01225.66

preferences:
26.82 ms | 403 KiB | 5 Q