3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = "zcxczczxc\nsdfzzcxzxc\nasfasfa"; $string = str_replace('<br>', '<br><br>', nl2br($strings)); echo $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.0110.00718.25
8.3.50.0050.01021.09
8.3.40.0110.00318.59
8.3.30.0040.01119.01
8.3.20.0070.00020.26
8.3.10.0040.00422.12
8.3.00.0050.00320.52
8.2.180.0100.01018.16
8.2.170.0070.00722.96
8.2.160.0070.00719.09
8.2.150.0060.00324.18
8.2.140.0070.00724.66
8.2.130.0000.00826.16
8.2.120.0000.00819.54
8.2.110.0130.00722.17
8.2.100.0040.00719.16
8.2.90.0030.00619.11
8.2.80.0050.00318.03
8.2.70.0000.00917.47
8.2.60.0050.00317.92
8.2.50.0080.00018.07
8.2.40.0050.00318.04
8.2.30.0050.00217.96
8.2.20.0070.00017.67
8.2.10.0040.00417.73
8.2.00.0070.00317.61
8.1.280.0080.00825.92
8.1.270.0080.00020.27
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00623.95
8.1.230.0080.00319.09
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0030.00517.39
8.1.180.0000.00818.57
8.1.170.0040.00418.48
8.1.160.0040.00422.05
8.1.150.0090.00018.44
8.1.140.0040.00417.29
8.1.130.0080.00019.08
8.1.120.0000.00717.40
8.1.110.0000.00817.23
8.1.100.0050.00217.32
8.1.90.0070.00017.39
8.1.80.0000.00817.31
8.1.70.0000.00717.29
8.1.60.0000.00817.52
8.1.50.0030.00617.33
8.1.40.0030.00617.39
8.1.30.0040.00417.47
8.1.20.0000.00817.63
8.1.10.0000.00717.41
8.1.00.0040.00417.43
8.0.300.0050.00318.77
8.0.290.0030.00317.05
8.0.280.0070.00018.34
8.0.270.0040.00417.15
8.0.260.0030.00318.50
8.0.250.0030.00316.86
8.0.240.0060.00316.90
8.0.230.0030.00316.90
8.0.220.0070.00016.84
8.0.210.0030.00316.77
8.0.200.0000.00616.83
8.0.190.0040.00416.79
8.0.180.0060.00316.77
8.0.170.0040.00416.92
8.0.160.0000.00716.80
8.0.150.0040.00416.72
8.0.140.0000.00716.81
8.0.130.0030.00313.25
8.0.120.0030.00516.69
8.0.110.0080.00016.77
8.0.100.0040.00416.80
8.0.90.0030.00416.82
8.0.80.0090.00616.83
8.0.70.0080.00016.71
8.0.60.0040.00416.84
8.0.50.0050.00216.79
8.0.30.0120.00717.14
8.0.20.0110.00817.40
8.0.10.0000.00816.94
8.0.00.0130.00616.74
7.4.330.0000.00615.00
7.4.320.0050.00216.29
7.4.300.0060.00016.41
7.4.290.0000.00716.37
7.4.280.0040.00416.46
7.4.270.0030.00316.48
7.4.260.0030.00316.43
7.4.250.0080.00016.47
7.4.240.0020.00516.49
7.4.230.0030.00316.48
7.4.220.0030.01416.45
7.4.210.0070.00716.48
7.4.200.0070.00016.32
7.4.190.0000.00716.62
7.4.160.0090.00616.59
7.4.150.0110.00617.40
7.4.140.0080.01117.86
7.4.130.0110.00916.48
7.4.120.0130.00316.47
7.4.110.0130.00316.64
7.4.100.0070.01016.59
7.4.90.0170.00016.50
7.4.80.0090.01319.39
7.4.70.0090.00616.42
7.4.60.0100.00616.54
7.4.50.0030.00516.57
7.4.40.0090.00622.77
7.4.30.0050.01116.38
7.4.00.0030.01414.74
7.3.330.0050.00013.04
7.3.320.0000.00513.04
7.3.310.0050.00216.02
7.3.300.0000.00616.15
7.3.290.0060.00716.19
7.3.280.0110.00816.23
7.3.270.0040.01317.40
7.3.260.0070.01016.48
7.3.250.0090.00916.41
7.3.240.0090.01416.49
7.3.230.0080.00816.39
7.3.210.0150.00316.48
7.3.200.0070.01019.39
7.3.190.0070.01116.11
7.3.180.0160.00616.30
7.3.170.0060.00916.47
7.3.160.0120.00416.16
7.3.120.0030.00714.38
7.2.330.0150.00316.57
7.2.320.0080.00816.39
7.2.310.0130.00616.58
7.2.300.0120.00916.57
7.2.290.0100.01016.30
7.2.00.0070.00719.55
7.1.200.0130.00015.62
7.1.100.0040.01218.20
7.1.70.0000.01017.02
7.1.60.0030.02019.82
7.1.50.0090.00916.86
7.1.00.0070.06322.45
7.0.200.0000.00916.78
7.0.140.0070.07022.11
7.0.60.0100.06319.95
7.0.50.0130.07717.72
7.0.40.0030.04320.24
7.0.30.0300.05720.30
7.0.20.0230.07720.11
7.0.10.0200.05320.00
7.0.00.0000.05020.13
5.6.280.0030.07321.09
5.6.210.0030.06320.50
5.6.200.0100.08318.21
5.6.190.0070.07320.32
5.6.180.3170.04020.77
5.6.170.0300.07320.48
5.6.160.0070.04020.50
5.6.150.0030.04018.15
5.6.140.0130.06318.07
5.6.130.0170.07018.07
5.6.120.0130.08021.08
5.6.110.0070.08021.08
5.6.100.0000.05721.10
5.6.90.0130.07321.02
5.6.80.0200.06720.52
5.6.70.0170.03720.34
5.5.350.0230.07320.40
5.5.340.0030.04017.96
5.5.330.0130.04720.36
5.5.320.0300.08020.30
5.5.310.0470.07020.29
5.5.300.0030.06318.00
5.5.290.0070.08317.91
5.5.280.0130.07720.80
5.5.270.0100.05720.96
5.5.260.0030.05320.75
5.5.250.0070.04720.50
5.5.240.0030.07720.06
5.4.450.0100.05719.65
5.4.440.0130.06019.47
5.4.430.0770.06019.46
5.4.420.0470.04019.48
5.4.410.0670.05319.34
5.4.400.0400.05018.75
5.4.390.0430.06718.59
5.4.380.0270.05318.79
5.4.370.0200.04318.61
5.4.360.0070.06018.69
5.4.350.0080.04711.97
5.4.340.0030.04011.96
5.4.320.0020.03912.45
5.4.310.0060.03712.45
5.4.300.0070.03912.45
5.4.290.0050.03812.45
5.4.280.0040.03612.35
5.4.270.0060.03712.35
5.4.260.0040.03812.35
5.4.250.0100.05018.66
5.4.240.0100.05018.99
5.4.230.0100.07718.66
5.4.220.0130.04718.84
5.4.210.0130.04318.82
5.4.200.0100.06318.88
5.4.190.0070.06318.86
5.4.180.0200.05718.71
5.4.170.0100.06718.95
5.4.160.0000.06018.70
5.4.150.0100.05318.99
5.4.140.0070.05316.25
5.4.130.0030.05316.49
5.4.120.0100.06016.53
5.4.110.0000.05716.42
5.4.100.0130.05316.52
5.4.90.0070.05716.45
5.4.80.0170.04016.31
5.4.70.0100.04316.45
5.4.60.0100.04316.30
5.4.50.0070.04716.45
5.4.40.0070.05016.17
5.4.30.0070.04716.43
5.4.20.0170.05716.19
5.4.10.0100.04716.15
5.4.00.0170.04015.94
5.3.290.0070.05212.80
5.3.280.0070.05014.59
5.3.270.0070.05014.60
5.3.260.0070.05014.62
5.3.250.0130.05714.46
5.3.240.0130.04714.64
5.3.230.0000.05714.61
5.3.220.0070.04714.55
5.3.210.0030.05314.40
5.3.200.0130.05314.57
5.3.190.0070.05714.45
5.3.180.0170.04014.58
5.3.170.0070.05014.26
5.3.160.0200.03714.55
5.3.150.0070.05014.58
5.3.140.0030.05014.54
5.3.130.0030.05714.32
5.3.120.0030.05314.60
5.3.110.0130.06314.54
5.3.100.0100.05013.92
5.3.90.0030.05014.16
5.3.80.0100.05014.16
5.3.70.0100.04314.03
5.3.60.0100.04713.77
5.3.50.0070.06013.83
5.3.40.0130.04013.81
5.3.30.0000.05014.00
5.3.20.0070.04713.84
5.3.10.0100.04313.66
5.3.00.0030.05313.65
5.2.170.0100.03711.07
5.2.160.0130.03311.14
5.2.150.0030.04311.23
5.2.140.0100.03711.14
5.2.130.0070.03711.11
5.2.120.0000.04011.05
5.2.110.0030.04311.11
5.2.100.0070.03711.02
5.2.90.0000.04311.09
5.2.80.0070.03711.02
5.2.70.0070.04011.23
5.2.60.0070.03710.96
5.2.50.0030.04010.91
5.2.40.0070.03710.99
5.2.30.0000.04310.97
5.2.20.0100.04711.06
5.2.10.0100.04010.69
5.2.00.0030.05310.64
5.1.60.0070.0309.76
5.1.50.0070.0309.91
5.1.40.0030.03710.20
5.1.30.0000.04310.50
5.1.20.0070.03310.28
5.1.10.0030.0339.83
5.1.00.0070.0309.91
5.0.50.0030.0278.46
5.0.40.0030.0238.42
5.0.30.0100.0378.28
5.0.20.0000.0278.33
5.0.10.0070.0238.13
5.0.00.0100.0338.11
4.4.90.0030.0206.99
4.4.80.0000.0236.99
4.4.70.0000.0236.99
4.4.60.0100.0176.99
4.4.50.0030.0206.99
4.4.40.0130.0236.99
4.4.30.0070.0176.99
4.4.20.0000.0236.99
4.4.10.0030.0206.99
4.4.00.0070.0276.99
4.3.110.0030.0206.99
4.3.100.0000.0206.99
4.3.90.0030.0176.99
4.3.80.0030.0306.99
4.3.70.0030.0206.99
4.3.60.0030.0206.99
4.3.50.0030.0206.99
4.3.40.0070.0276.99
4.3.30.0070.0176.99
4.3.20.0030.0206.99
4.3.10.0070.0176.99
4.3.00.0000.0237.58

preferences:
44.29 ms | 400 KiB | 5 Q