3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo nl2br("Hello<br />\nmy<br />\nfriend<br />\n\r", TRUE);

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.120.0030.00620.55
8.3.110.0110.00716.38
8.3.100.0110.00024.06
8.3.90.0040.01126.77
8.3.80.0030.00616.38
8.3.70.0040.01116.58
8.3.60.0070.00716.50
8.3.50.0110.00822.93
8.3.40.0110.00718.65
8.3.30.0100.00319.03
8.3.20.0000.00820.18
8.3.10.0070.00318.55
8.3.00.0080.00019.26
8.2.240.0060.00318.82
8.2.230.0000.00920.94
8.2.220.0080.00037.54
8.2.210.0120.00626.77
8.2.200.0090.00016.38
8.2.190.0090.00916.58
8.2.180.0090.00616.63
8.2.170.0040.01122.96
8.2.160.0100.00320.50
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00021.10
8.2.110.0100.00021.13
8.2.100.0080.00417.78
8.2.90.0030.00520.48
8.2.80.0000.00920.48
8.2.70.0000.00917.50
8.2.60.0050.00217.38
8.2.50.0000.00818.07
8.2.40.0070.00018.22
8.2.30.0030.00319.48
8.2.20.0060.00317.68
8.2.10.0000.00717.91
8.2.00.0050.00317.55
8.1.300.0070.00416.09
8.1.290.0090.00018.88
8.1.280.0060.00825.92
8.1.270.0050.00323.99
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0080.00022.14
8.1.230.0090.00320.89
8.1.220.0000.00817.74
8.1.210.0040.00418.82
8.1.200.0080.00417.10
8.1.190.0040.00417.39
8.1.180.0000.00818.10
8.1.170.0030.00518.23
8.1.160.0000.00721.84
8.1.150.0000.00718.66
8.1.140.0040.00417.32
8.1.130.0070.00017.71
8.1.120.0040.00317.37
8.1.110.0040.00417.35
8.1.100.0080.00017.29
8.1.90.0000.00717.33
8.1.80.0050.00217.38
8.1.70.0000.00717.24
8.1.60.0000.00917.46
8.1.50.0030.00617.35
8.1.40.0000.00717.25
8.1.30.0080.00017.47
8.1.20.0040.00417.49
8.1.10.0080.00017.46
8.1.00.0080.00017.33
8.0.300.0030.00520.03
8.0.290.0050.00216.63
8.0.280.0070.00018.28
8.0.270.0030.00317.12
8.0.260.0000.00617.09
8.0.250.0000.00716.82
8.0.240.0060.00316.89
8.0.230.0050.00316.79
8.0.220.0000.00716.66
8.0.210.0040.00416.63
8.0.200.0030.00316.70
8.0.190.0050.00316.82
8.0.180.0070.00016.75
8.0.170.0040.00416.78
8.0.160.0030.00316.76
8.0.150.0050.00316.53
8.0.140.0030.00316.70
8.0.130.0000.00513.19
8.0.120.0000.00816.63
8.0.110.0050.00316.73
8.0.100.0040.00416.70
8.0.90.0000.00716.61
8.0.80.0070.00816.75
8.0.70.0070.00016.70
8.0.60.0040.00416.65
8.0.50.0000.00816.64
8.0.30.0130.00816.96
8.0.20.0050.01417.40
8.0.10.0000.00716.71
8.0.00.0100.01116.58
7.4.330.0000.00615.00
7.4.320.0000.00616.35
7.4.300.0060.00016.38
7.4.290.0030.00316.46
7.4.280.0120.00016.27
7.4.270.0000.00716.49
7.4.260.0000.00716.33
7.4.250.0050.00216.40
7.4.240.0000.00716.36
7.4.230.0070.00016.25
7.4.220.0090.01016.34
7.4.210.0000.01516.48
7.4.200.0050.00216.35
7.4.160.0000.02116.57
7.4.150.0070.01117.40
7.4.140.0120.00817.86
7.4.130.0130.00416.50
7.4.120.0090.00816.37
7.4.110.0060.01916.18
7.4.100.0060.01416.46
7.4.90.0140.00216.46
7.4.80.0150.00319.39
7.4.70.0110.00716.42
7.4.60.0030.01216.38
7.4.50.0030.00316.43
7.4.40.0120.00316.62
7.4.30.0100.00716.36
7.4.00.0070.01214.82
7.3.330.0030.00313.01
7.3.320.0030.00312.80
7.3.310.0040.00416.12
7.3.300.0030.00316.14
7.3.290.0090.00616.13
7.3.280.0110.00816.11
7.3.270.0130.00517.40
7.3.260.0130.00316.30
7.3.250.0080.00916.20
7.3.240.0130.00316.29
7.3.230.0100.01016.39
7.3.210.0060.01216.17
7.3.200.0110.01119.39
7.3.190.0140.00316.42
7.3.180.0140.00316.48
7.3.170.0120.00816.45
7.3.160.0110.00516.19
7.3.120.0120.00614.62
7.3.110.0100.00314.96
7.3.100.0060.01214.72
7.3.90.0040.01214.77
7.3.80.0090.00914.77
7.3.70.0040.01214.60
7.3.60.0090.00314.55
7.3.50.0090.00614.63
7.3.40.0080.00814.46
7.3.30.0070.00414.79
7.3.20.0110.00416.36
7.3.10.0110.00316.64
7.3.00.0090.00616.73
7.2.330.0060.01216.29
7.2.320.0090.00916.48
7.2.310.0030.01516.36
7.2.300.0090.00916.49
7.2.290.0060.01016.51
7.2.250.0090.00914.80
7.2.240.0070.01114.55
7.2.230.0060.00614.78
7.2.220.0070.01015.00
7.2.210.0070.01414.77
7.2.200.0090.00614.91
7.2.190.0100.00714.93
7.2.180.0070.00714.74
7.2.170.0070.00714.95
7.2.60.0030.01216.64
7.2.00.0150.00319.30
7.1.330.0060.00615.77
7.1.320.0060.00615.84
7.1.310.0040.01115.65
7.1.300.0050.00915.36
7.1.290.0030.01015.54
7.1.280.0040.00715.65
7.1.270.0040.00815.48
7.1.260.0090.00615.45
7.1.200.0070.00715.53
7.1.100.0070.00717.91
7.1.70.0040.01116.75
7.1.60.0000.01219.61
7.1.50.0220.00616.89
7.1.00.0000.08022.30
7.0.200.0000.00716.70
7.0.140.0000.07721.92
7.0.100.0270.07320.00
7.0.90.0400.07719.94
7.0.80.0400.08019.95
7.0.70.0470.06719.90
7.0.60.0470.07319.87
7.0.50.0500.06720.29
7.0.40.0100.07019.95
7.0.30.0030.05320.03
7.0.20.0130.08020.05
7.0.10.0100.07019.99
7.0.00.0070.09320.07
5.6.250.0100.07720.71
5.6.240.0130.04320.74
5.6.230.0070.07320.74
5.6.220.0130.07020.73
5.6.210.0130.08020.66
5.6.200.0070.05020.97
5.6.190.0170.07721.05
5.6.180.0000.08021.13
5.6.170.0070.07021.01
5.6.160.0100.07720.94
5.6.150.0170.06721.16
5.6.140.0070.07721.02
5.6.130.0200.07321.04
5.6.120.0070.05021.05
5.6.110.0100.06721.02
5.6.100.0070.04021.06
5.6.90.0030.04321.14
5.6.80.0070.04020.40
5.6.70.0000.04320.43
5.6.60.0000.04020.41
5.6.50.0070.03720.51
5.6.40.0030.03720.36
5.6.30.0130.03020.37
5.6.20.0100.07320.43
5.6.10.0000.05320.41
5.6.00.0000.07720.27
5.5.380.0070.04020.50
5.5.370.0100.08020.34
5.5.360.0070.08320.34
5.5.350.0170.07320.30
5.5.340.0170.06720.72
5.5.330.0030.05020.76
5.5.320.0200.03720.89
5.5.310.0170.07020.82
5.5.300.0100.09020.86
5.5.290.0030.06720.78
5.5.280.0030.09020.76
5.5.270.0030.06020.87
5.5.260.0130.03720.87
5.5.250.0100.05720.44
5.5.240.0030.04020.23
5.5.230.0100.03320.13
5.5.220.0030.04020.10
5.5.210.0130.03020.11
5.5.200.0130.03320.20
5.5.190.0070.05720.20
5.5.180.0070.04020.22
5.5.160.0100.06320.10
5.5.150.0070.04020.17
5.5.140.0030.04320.20
5.5.130.0070.03720.09
5.5.120.0100.04020.17
5.5.110.0030.04720.22
5.5.100.0030.04320.17
5.5.90.0070.04020.15
5.5.80.0030.04020.06
5.5.70.0030.04020.04
5.5.60.0000.04020.12
5.5.50.0000.04719.99
5.5.40.0030.03720.13
5.5.30.0100.03320.03
5.5.20.0030.04720.04
5.5.10.0130.07720.00
5.5.00.0000.04020.00
5.4.450.0100.05019.42
5.4.440.0130.07719.30
5.4.430.0000.04719.37
5.4.420.0030.04019.46
5.4.410.0100.03019.25
5.4.400.0030.03318.98
5.4.390.0070.03018.95
5.4.380.0000.04018.98
5.4.370.0000.04318.90
5.4.360.0070.05019.02
5.4.350.0100.06018.98
5.4.340.0070.04018.81
5.4.320.0100.03018.98
5.4.310.0000.04018.90
5.4.300.0000.06319.23
5.4.290.0100.05019.02
5.4.280.0000.04018.96
5.4.270.0000.04019.08
5.4.260.0070.05718.94
5.4.250.0030.03718.78
5.4.240.0000.04019.11
5.4.230.0000.04019.22
5.4.220.0130.03019.02
5.4.210.0000.04018.80
5.4.200.0130.03319.07
5.4.190.0000.04318.89
5.4.180.0030.03719.05
5.4.170.0030.03719.11
5.4.160.0070.03718.80
5.4.150.0100.03019.12
5.4.140.0000.04016.06
5.4.130.0030.04716.41
5.4.120.0030.03316.37
5.4.110.0000.04016.26
5.4.100.0070.03316.25
5.4.90.0030.03716.40
5.4.80.0000.06016.31
5.4.70.0070.03316.28
5.4.60.0100.07316.41
5.4.50.0030.06716.30
5.4.40.0000.07316.28
5.4.30.0030.07716.21
5.4.20.0170.05716.41
5.4.10.0070.07316.45
5.4.00.0070.04015.71
5.3.290.0030.03714.64
5.3.280.0070.03314.58
5.3.270.0030.04314.46
5.3.260.0000.04014.54
5.3.250.0030.03714.46
5.3.240.0030.03714.45
5.3.230.0030.03714.52
5.3.220.0070.03714.47
5.3.210.0030.03714.47
5.3.200.0030.04014.42
5.3.190.0000.04014.53
5.3.180.0070.03014.54
5.3.170.0000.04014.54
5.3.160.0100.03014.56
5.3.150.0000.04714.41
5.3.140.0070.07014.41
5.3.130.0070.07314.41
5.3.120.0030.04714.50
5.3.110.0100.07014.39
5.3.100.0000.07714.01
5.3.90.0070.03313.96
5.3.80.0130.06313.97
5.3.70.0070.06013.99
5.3.60.0100.07013.96
5.3.50.0100.07313.80
5.3.40.0030.07013.92
5.3.30.0070.07313.76
5.3.20.0030.06313.54
5.3.10.0070.03713.42
5.3.00.0100.05013.54
5.2.170.0030.06710.98
5.2.160.0100.05711.17
5.2.150.0030.03011.13
5.2.140.0100.05310.97
5.2.130.0070.06011.18
5.2.120.0000.04711.09
5.2.110.0070.05711.09
5.2.100.0030.03011.05
5.2.90.0100.04311.05
5.2.80.0000.06711.14
5.2.70.0000.04711.14
5.2.60.0100.05310.91
5.2.50.0070.04711.04
5.2.40.0030.06710.98
5.2.30.0030.06011.02
5.2.20.0030.04310.97
5.2.10.0000.05710.78
5.2.00.0030.06310.66
5.1.60.0000.0479.86
5.1.50.0070.0379.81
5.1.40.0070.0479.85
5.1.30.0100.04710.40
5.1.20.0030.05310.34
5.1.10.0070.02310.04
5.1.00.0030.05710.11
5.0.50.0100.0408.54
5.0.40.0000.0478.54
5.0.30.0030.0538.54
5.0.20.0100.0338.54
5.0.10.0030.0438.54
5.0.00.0000.0338.54
4.4.90.0070.0308.54
4.4.80.0030.0338.54
4.4.70.0030.0378.54
4.4.60.0000.0308.54
4.4.50.0000.0378.54
4.4.40.0030.0478.54
4.4.30.0030.0308.54
4.4.20.0070.0308.54
4.4.10.0030.0178.54
4.4.00.0000.0578.54
4.3.110.0030.0378.54
4.3.100.0030.0178.54
4.3.90.0000.0378.54
4.3.80.0000.0278.54
4.3.70.0030.0238.54
4.3.60.0000.0338.54
4.3.50.0070.0238.54
4.3.40.0030.0478.54
4.3.30.0030.0208.54
4.3.20.0000.0308.54
4.3.10.0000.0178.54
4.3.00.0000.0278.54

preferences:
55.25 ms | 403 KiB | 5 Q