3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Porcupines\nare\n\n\n\nporcupiney."; echo preg_replace('/(?:(?:\r\n|\r|\n)\s*){2}/s', "<br /><br />", $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.0040.01116.63
8.3.50.0090.00616.26
8.3.40.0140.00020.34
8.3.30.0120.00918.63
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.180.0120.00325.92
8.2.170.0060.00919.07
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0100.00326.35
8.2.110.0060.00321.02
8.2.100.0080.00617.91
8.2.90.0040.00419.28
8.2.80.0040.00419.10
8.2.70.0000.00817.63
8.2.60.0020.00517.93
8.2.50.0040.00418.10
8.2.40.0030.00618.22
8.2.30.0000.00718.15
8.2.20.0040.00417.96
8.2.10.0000.00719.09
8.2.00.0070.00019.27
8.1.280.0130.00625.92
8.1.270.0040.00423.99
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0030.01020.96
8.1.230.0090.00320.96
8.1.220.0030.00617.74
8.1.210.0050.00318.96
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00718.71
8.1.160.0000.00718.98
8.1.150.0050.00218.87
8.1.140.0040.00418.80
8.1.130.0040.00419.33
8.1.120.0000.00717.49
8.1.110.0080.00017.45
8.1.100.0000.00717.59
8.1.90.0000.00717.52
8.1.80.0030.00917.61
8.1.70.0070.00017.43
8.1.60.0000.00817.55
8.1.50.0030.00617.53
8.1.40.0090.00017.52
8.1.30.0030.00617.79
8.1.20.0080.00017.70
8.1.10.0040.00417.71
8.1.00.0000.00917.57
8.0.300.0040.00420.09
8.0.290.0090.00016.73
8.0.280.0000.00718.47
8.0.270.0000.00718.16
8.0.260.0000.00718.77
8.0.250.0000.00917.01
8.0.240.0040.00417.00
8.0.230.0030.00316.93
8.0.220.0000.00716.93
8.0.210.0000.00716.81
8.0.200.0030.00317.00
8.0.190.0040.00417.08
8.0.180.0040.00416.89
8.0.170.0000.01017.01
8.0.160.0000.00716.90
8.0.150.0060.00316.89
8.0.140.0060.00316.99
8.0.130.0000.00513.42
8.0.120.0000.00716.92
8.0.110.0000.00817.00
8.0.100.0070.00016.88
8.0.90.0030.00517.10
8.0.80.0090.00616.96
8.0.70.0040.00417.04
8.0.60.0050.00316.94
8.0.50.0030.00517.00
8.0.30.0040.01216.89
8.0.20.0140.00817.33
8.0.10.0000.00716.97
8.0.00.0190.00416.92
7.4.330.0050.00015.55
7.4.320.0040.00416.65
7.4.300.0030.00316.74
7.4.290.0030.00516.57
7.4.280.0030.00516.77
7.4.270.0050.00316.67
7.4.260.0020.00213.43
7.4.250.0030.00616.67
7.4.240.0000.00816.73
7.4.230.0030.00316.73
7.4.220.0050.00216.50
7.4.210.0050.00916.75
7.4.200.0070.00016.41
7.4.130.0090.01016.49
7.4.120.0130.01016.73
7.4.110.0070.01016.67
7.4.100.0180.00016.51
7.4.90.0150.00316.55
7.4.80.0130.00816.26
7.4.70.0100.01316.62
7.4.60.0160.00716.59
7.4.50.0120.00916.59
7.4.40.0030.01416.47
7.4.30.0000.01716.69
7.4.20.0100.00716.66
7.4.10.0030.01416.47
7.4.00.0030.01416.54
7.3.330.0040.00416.36
7.3.320.0030.00513.21
7.3.310.0030.00316.38
7.3.300.0030.00316.29
7.3.290.0050.01116.30
7.3.260.0060.01116.41
7.3.230.0110.00616.70
7.3.220.0140.00316.39
7.3.210.0120.00616.44
7.3.200.0070.01016.74
7.3.190.0030.01816.38
7.3.180.0030.01916.60
7.3.170.0110.00516.54
7.3.160.0060.01016.54
7.3.150.0090.00616.55
7.3.140.0170.00016.39
7.3.130.0090.00916.38
7.3.120.0120.00616.30
7.3.110.0060.01016.14
7.3.100.0090.01216.28
7.3.90.0030.01516.38
7.3.80.0060.01116.62
7.3.70.0210.00016.33
7.3.60.0080.01616.44
7.3.50.0100.00716.31
7.3.40.0100.00616.42
7.3.30.0080.00816.42
7.3.20.0130.01016.48
7.3.10.0080.01416.54
7.3.00.0120.01216.29
7.2.330.0070.01016.48
7.2.320.0110.00616.79
7.2.310.0100.00716.46
7.2.300.0070.01316.64
7.2.290.0150.00916.77
7.2.280.0080.01216.51
7.2.270.0060.01316.68
7.2.260.0090.01516.61
7.2.250.0130.00316.60
7.2.240.0150.00316.77
7.2.230.0070.01016.58
7.2.220.0070.01416.60
7.2.210.0100.00716.57
7.2.200.0110.01016.52
7.2.190.0120.01316.44
7.2.180.0030.01316.75
7.2.170.0000.01616.50
7.2.160.0160.00616.74
7.2.150.0090.00916.71
7.2.140.0190.00016.53
7.2.130.0070.01116.71
7.2.120.0070.01516.67
7.2.110.0110.00716.66
7.2.100.0180.00616.61
7.2.90.0620.01316.67
7.2.80.0140.00416.50
7.2.70.0070.01116.52
7.2.60.0160.00316.60
7.2.50.0110.00716.80
7.2.40.0120.00616.73
7.2.30.0090.00916.68
7.2.20.0080.01216.69
7.2.10.0140.00616.60
7.2.00.0070.01716.62

preferences:
75.95 ms | 401 KiB | 5 Q