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('/%0[AD].*/', '', $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.01120.52
8.4.110.0100.01022.48
8.4.100.0130.00817.89
8.4.90.0110.00718.73
8.4.80.0120.00718.16
8.4.70.0060.00218.18
8.4.60.0090.01420.47
8.4.50.0120.00918.65
8.4.40.0160.00318.00
8.4.30.0090.00620.27
8.4.20.0130.00618.05
8.4.10.0060.00319.61
8.3.250.0070.01118.81
8.3.240.0050.00316.87
8.3.230.0040.00616.98
8.3.220.0120.00517.24
8.3.210.0090.01016.62
8.3.200.0070.00216.73
8.3.190.0120.00517.31
8.3.180.0130.00616.66
8.3.170.0180.00020.57
8.3.160.0100.00717.10
8.3.150.0110.00718.89
8.3.140.0110.00320.85
8.3.130.0090.00918.63
8.3.120.0070.00320.90
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0060.00318.68
8.3.70.0100.00718.43
8.3.60.0100.01018.51
8.3.50.0070.00718.30
8.3.40.0030.01021.86
8.3.30.0100.00720.21
8.3.20.0120.00425.66
8.3.10.0180.00325.66
8.3.00.0070.00725.66
8.2.290.0080.00420.72
8.2.280.0030.00516.93
8.2.270.0060.00917.44
8.2.260.0110.00716.49
8.2.250.0040.00416.68
8.2.240.0030.00617.13
8.2.230.0030.00622.58
8.2.220.0040.01137.54
8.2.210.0090.00626.77
8.2.200.0040.00418.53
8.2.190.0120.00316.58
8.2.180.0090.00616.88
8.2.170.0000.02119.01
8.2.160.0060.00922.96
8.2.150.0090.00625.66
8.2.140.0110.00425.66
8.2.130.0130.00725.66
8.2.120.0130.00925.66
8.2.110.0070.00725.66
8.2.100.0140.00725.66
8.2.90.0140.00725.66
8.2.80.0080.00825.66
8.2.70.0120.00925.66
8.2.60.0070.01525.66
8.2.50.0150.00625.66
8.2.40.0110.00725.66
8.2.30.0140.00425.66
8.2.20.0120.00625.66
8.2.10.0070.01125.66
8.2.00.0070.00725.66
8.1.330.0120.00621.93
8.1.320.0110.00816.39
8.1.310.0110.00416.30
8.1.300.0000.00818.66
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0120.00325.66
8.1.260.0000.01425.66
8.1.250.0070.00725.66
8.1.240.0060.01025.66
8.1.230.0040.01125.66
8.1.220.0070.00725.66
8.1.210.0100.00625.66
8.1.200.0040.01125.66
8.1.190.0120.00325.66
8.1.180.0070.00725.66
8.1.170.0040.01225.66
8.1.160.0030.01225.66
8.1.150.0070.01125.66
8.1.140.0120.00625.66
8.1.130.0070.01025.66
8.1.120.0100.00625.66
8.1.110.0100.01025.66
8.1.100.0070.01125.66
8.1.90.0150.00325.66
8.1.80.0040.01225.66
8.1.70.0070.00725.66
8.1.60.0110.00425.66
8.1.50.0150.00025.66
8.1.40.0060.00925.66
8.1.30.0100.00725.66
8.1.20.0110.00625.66
8.1.10.0000.01525.66
8.1.00.0120.00425.66

preferences:
27.49 ms | 403 KiB | 5 Q