3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mesaj= "Test1\nTest2"; echo $dogruMesaj = str_replace("\n", "<br>", $mesaj);

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.10.0060.00319.39
8.3.140.0030.00516.72
8.3.130.0040.01116.50
8.3.120.0090.00618.99
8.3.110.0060.00320.94
8.3.100.0080.00624.06
8.3.90.0160.00326.77
8.3.80.0030.00616.38
8.3.70.0120.00916.58
8.3.60.0060.01216.47
8.3.50.0210.00018.20
8.3.40.0060.00920.48
8.3.30.0040.01118.79
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.250.0060.00318.53
8.2.240.0030.00617.28
8.2.230.0000.00922.58
8.2.220.0120.00637.54
8.2.210.0060.01226.77
8.2.200.0060.00616.25
8.2.190.0090.00616.58
8.2.180.0140.00425.92
8.2.170.0070.00719.00
8.2.160.0170.00022.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.89
8.2.110.0040.00722.24
8.2.100.0070.00417.84
8.2.90.0000.00817.84
8.2.80.0000.00819.16
8.2.70.0000.00817.50
8.2.60.0050.00317.78
8.2.50.0060.00318.07
8.2.40.0060.00319.95
8.2.30.0000.00817.98
8.2.20.0070.00020.43
8.2.10.0040.00417.59
8.2.00.0060.00319.11
8.1.300.0030.00617.70
8.1.290.0120.00318.88
8.1.280.0080.01225.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.07
8.1.230.0110.00020.98
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.10
8.1.190.0000.00917.09
8.1.180.0000.00818.10
8.1.170.0000.00718.59
8.1.160.0070.00018.74
8.1.150.0070.00018.60
8.1.140.0020.00517.32
8.1.130.0050.00317.39
8.1.120.0040.00417.28
8.1.110.0040.00417.39
8.1.100.0070.00017.45
8.1.90.0080.00017.39
8.1.80.0060.00317.40
8.1.70.0030.00317.32
8.1.60.0040.00417.42
8.1.50.0000.00717.33
8.1.40.0030.00517.41
8.1.30.0070.00417.50
8.1.20.0040.00417.51
8.1.10.0000.00717.53
8.1.00.0030.00617.35
8.0.300.0000.00720.07
8.0.290.0080.00016.63
8.0.280.0030.00318.35
8.0.270.0000.00716.84
8.0.260.0030.00316.81
8.0.250.0000.00616.89
8.0.240.0020.00516.95
8.0.230.0000.00916.79
8.0.220.0000.00716.73
8.0.210.0000.00716.69
8.0.200.0060.00316.81
8.0.190.0090.00016.76
8.0.180.0000.00816.79
8.0.170.0060.00316.71
8.0.160.0000.00816.80
8.0.150.0030.00316.65
8.0.140.0030.00516.63
8.0.130.0090.00016.78
8.0.120.0030.00316.72
8.0.110.0030.00516.79
8.0.100.0000.00716.83
8.0.90.0050.00216.79
8.0.80.0030.00316.77
8.0.70.0070.00016.84
8.0.60.0030.00316.79
8.0.50.0040.00416.80
8.0.30.0000.00716.87
8.0.20.0070.00016.77
8.0.10.0070.00016.93
7.4.330.0020.00215.55
7.4.320.0030.00316.34
7.4.300.0030.00316.48
7.4.290.0000.00716.45
7.4.280.0000.00716.44
7.4.270.0030.00316.39
7.4.260.0000.00716.46
7.4.250.0000.00716.48
7.4.240.0030.00316.39
7.4.230.0030.00316.37
7.4.220.0000.00716.47
7.4.210.0000.00716.49
7.4.200.0030.00316.41
7.4.190.0040.00416.59
7.4.180.0040.00416.40
7.4.160.0070.00016.59
7.4.150.0040.00416.33
7.4.140.0030.00316.46
7.4.130.0030.00516.27
7.4.120.0000.00716.25
7.4.110.0050.00216.29
7.4.100.0070.00016.43
7.4.90.0000.00716.34
7.4.80.0030.00316.37
7.4.70.0000.00716.23
7.4.60.0000.00616.21
7.4.50.0040.00416.28
7.4.40.0000.00816.41
7.4.30.0000.00716.38
7.4.20.0060.00016.34
7.4.10.0000.00616.41
7.4.00.0030.00316.41

preferences:
58.78 ms | 403 KiB | 5 Q