3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'email already exists\r\n\r\nsuccess\r\n\r\ncoreg_status:duplicate\r\n\r\nlead_status:success\r\n'; $test = str_replace("\r\n", "\n", $str); var_dump($test);

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.0150.00616.36
8.3.50.0140.00521.15
8.3.40.0040.01118.72
8.3.30.0030.01018.96
8.3.20.0050.00220.16
8.3.10.0000.00821.65
8.3.00.0050.00319.13
8.2.180.0080.01216.50
8.2.170.0170.00022.96
8.2.160.0040.01120.35
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0070.00022.09
8.2.110.0060.00322.25
8.2.100.0120.00017.72
8.2.90.0080.00019.09
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0050.00317.90
8.2.50.0040.00418.07
8.2.40.0040.00419.95
8.2.30.0060.00318.04
8.2.20.0050.00217.50
8.2.10.0020.00517.92
8.2.00.0030.00717.55
8.1.280.0140.00425.92
8.1.270.0120.00324.00
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00023.80
8.1.230.0100.00019.01
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0040.00417.51
8.1.180.0030.00618.10
8.1.170.0040.00418.38
8.1.160.0040.00421.84
8.1.150.0040.00418.62
8.1.140.0040.00417.33
8.1.130.0000.00817.69
8.1.120.0070.00017.44
8.1.110.0040.00417.31
8.1.100.0000.00917.42
8.1.90.0000.01017.27
8.1.80.0050.00317.27
8.1.70.0050.00317.30
8.1.60.0000.00717.39
8.1.50.0030.00617.50
8.1.40.0040.00417.45
8.1.30.0000.00817.52
8.1.20.0050.00317.57
8.1.10.0050.00217.41
8.1.00.0040.00417.37
8.0.300.0000.00720.73
8.0.290.0040.00417.04
8.0.280.0030.00518.24
8.0.270.0000.00717.13
8.0.260.0030.00317.05
8.0.250.0050.00316.87
8.0.240.0070.00016.82
8.0.230.0000.00716.77
8.0.220.0070.00016.73
8.0.210.0000.00716.71
8.0.200.0000.00616.88
8.0.190.0040.00416.90
8.0.180.0110.00016.88
8.0.170.0000.00816.73
8.0.160.0000.00716.68
8.0.150.0040.00416.77
8.0.140.0040.00416.83
8.0.130.0030.00313.23
8.0.120.0040.00416.78
8.0.110.0040.00416.70
8.0.100.0000.00716.68
8.0.90.0040.00416.70
8.0.80.0110.00416.85
8.0.70.0030.00316.79
8.0.60.0030.00316.77
8.0.50.0040.00416.83
8.0.30.0130.00617.10
8.0.20.0120.00717.40
8.0.10.0000.00716.85
8.0.00.0080.01016.72
7.4.330.0000.00615.00
7.4.320.0030.00316.53
7.4.300.0060.00016.48
7.4.290.0030.00316.38
7.4.280.0060.00016.52
7.4.270.0000.00716.46
7.4.260.0000.00716.35
7.4.250.0000.00816.38
7.4.240.0010.00616.44
7.4.230.0060.00016.41
7.4.220.0110.00616.43
7.4.210.0070.01016.44
7.4.200.0030.00316.39
7.4.190.0000.00716.60
7.4.160.0000.01516.34
7.4.150.0040.01517.40
7.4.140.0090.00817.86
7.4.130.0080.01216.32
7.4.120.0070.01116.37
7.4.110.0110.00716.23
7.4.100.0110.00716.30
7.4.90.0060.01016.45
7.4.80.0100.00719.39
7.4.70.0110.00516.45
7.4.60.0120.00416.48
7.4.50.0040.00416.09
7.4.40.0030.01422.77
7.4.30.0030.01316.43
7.4.00.0080.00814.89
7.3.330.0000.00513.00
7.3.320.0060.00013.02
7.3.310.0040.00416.18
7.3.300.0030.00316.02
7.3.290.0090.01316.07
7.3.280.0090.00816.13
7.3.270.0030.01317.40
7.3.260.0070.01016.39
7.3.250.0120.00516.25
7.3.240.0000.01816.38
7.3.230.0140.00316.39
7.3.210.0040.01416.10
7.3.200.0090.01219.39
7.3.190.0100.00616.18
7.3.180.0080.01316.11
7.3.170.0060.01716.58
7.3.160.0100.01016.24
7.3.120.0140.00314.34
7.2.330.0140.00416.66
7.2.320.0080.00816.35
7.2.310.0110.00616.72
7.2.300.0090.00616.48
7.2.290.0050.01116.65
7.2.00.0000.01319.23
7.1.200.0030.00915.37
7.1.100.0000.01118.17
7.1.70.0070.01117.07
7.1.60.0060.00919.46
7.1.50.0140.01016.97
7.1.00.0030.07722.36
7.0.200.0000.00716.57
7.0.140.0070.06722.21
7.0.60.0030.08719.93
7.0.50.0100.08017.80
7.0.40.0070.05020.06
7.0.30.0230.06720.02
7.0.20.0170.04320.04
7.0.10.0100.08020.00
7.0.00.0100.05320.00
5.6.280.0030.07320.90
5.6.210.0000.04320.48
5.6.200.0170.07318.16
5.6.190.0100.03720.41
5.6.180.0230.06320.61
5.6.170.0230.05320.50
5.6.160.0000.04320.47
5.6.150.0070.08318.15
5.6.140.0070.04018.21
5.6.130.0030.08318.16
5.6.120.0100.05021.11
5.6.110.0070.05721.03
5.6.100.0200.07720.88
5.6.90.0000.04720.99
5.6.80.0070.05720.50
5.6.70.4200.04020.49
5.5.350.0330.06720.40
5.5.340.0000.04017.95
5.5.330.0100.03720.25
5.5.320.0300.04320.35
5.5.310.0370.07320.24
5.5.300.0130.03017.98
5.5.290.0030.08317.97
5.5.280.0130.07320.84
5.5.270.0130.05720.75
5.5.260.0070.05720.86
5.5.250.0070.08320.70
5.5.240.0270.02020.03
5.4.450.0770.05019.57
5.4.440.0800.07319.46
5.4.430.0630.05019.60
5.4.420.0700.05019.45
5.4.410.0800.05019.17
5.4.400.0730.05719.27
5.4.390.0700.05319.10
5.4.380.0370.05718.47
5.4.370.0330.05318.49
5.4.360.0300.05718.75
5.4.350.0330.05718.72
5.4.340.0470.05318.53
5.4.320.0050.03812.45
5.4.310.0090.04412.45
5.4.300.0050.03812.45
5.4.290.0040.04212.43
5.4.280.0070.03712.33
5.4.270.0070.03712.33
5.4.260.0080.03712.33
5.4.250.0080.03812.33
5.4.240.0070.03712.33
5.4.230.0080.03812.32
5.4.220.0070.04012.32
5.4.210.0050.04012.32
5.4.200.0080.03812.32
5.4.190.0060.03812.32
5.4.180.0040.04012.32
5.4.170.0060.03812.33
5.4.160.0070.03812.33
5.4.150.0030.04212.32
5.4.140.0070.04012.01
5.4.130.0080.05012.00
5.4.120.0080.03911.95
5.4.110.0060.04111.95
5.4.100.0080.03811.95
5.4.90.0090.03911.95
5.4.80.0100.03811.95
5.4.70.0080.03911.94
5.4.60.0070.03811.95
5.4.50.0060.04011.95
5.4.40.0060.04111.93
5.4.30.0070.05511.93
5.4.20.0070.03811.93
5.4.10.0060.03811.93
5.4.00.0060.03911.42
5.3.290.0060.04612.80
5.3.280.0090.03712.71
5.3.270.0060.04212.72
5.3.260.0070.04212.72
5.3.250.0080.03812.72
5.3.240.0050.04012.72
5.3.230.0060.03912.71
5.3.220.0110.03512.68
5.3.210.0090.03912.68
5.3.200.0050.03912.68
5.3.190.0080.04112.68
5.3.180.0070.03812.67
5.3.170.0080.03512.67
5.3.160.0080.03512.67
5.3.150.0060.03812.67
5.3.140.0110.03212.66
5.3.130.0060.04112.66
5.3.120.0060.04212.66
5.3.110.0090.05212.66
5.3.100.0120.04612.12
5.3.90.0060.05412.08
5.3.80.0040.06412.07
5.3.70.0070.04912.07
5.3.60.0050.04412.07
5.3.50.0040.03712.00
5.3.40.0040.03912.00
5.3.30.0030.03911.94
5.3.20.0060.03611.73
5.3.10.0080.04011.69
5.3.00.0120.03711.68
5.2.170.0040.0339.18
5.2.160.0050.0309.18
5.2.150.0050.0309.18
5.2.140.0040.0329.17
5.2.130.0040.0309.14
5.2.120.0060.0339.14
5.2.110.0070.0409.14
5.2.100.0030.0319.14
5.2.90.0040.0319.13
5.2.80.0070.0439.13
5.2.70.0020.0349.13
5.2.60.0070.0389.09
5.2.50.0100.0369.06
5.2.40.0070.0399.03
5.2.30.0050.0309.00
5.2.20.0040.0309.00
5.2.10.0020.0318.91
5.2.00.0040.0308.77
5.1.60.0020.0268.06
5.1.50.0060.0238.05
5.1.40.0070.0218.04
5.1.30.0020.0278.39
5.1.20.0070.0238.41
5.1.10.0090.0268.13
5.1.00.0050.0278.13
5.0.50.0050.0206.61
5.0.40.0060.0186.47
5.0.30.0030.0336.28
5.0.20.0030.0216.25
5.0.10.0050.0336.24
5.0.00.0040.0326.23
4.4.90.0040.0144.78
4.4.80.0040.0144.76
4.4.70.0040.0144.75
4.4.60.0010.0224.76
4.4.50.0020.0154.77
4.4.40.0030.0244.71
4.4.30.0020.0164.76
4.4.20.0010.0174.84
4.4.10.0050.0134.85
4.4.00.0030.0244.76
4.3.110.0030.0154.67
4.3.100.0040.0134.66
4.3.90.0040.0134.63
4.3.80.0030.0244.58
4.3.70.0020.0144.63
4.3.60.0030.0154.63
4.3.50.0040.0144.63
4.3.40.0000.0264.54
4.3.30.0030.0153.28
4.3.20.0030.0153.26
4.3.10.0020.0153.22
4.3.00.0270.03310.54

preferences:
38.37 ms | 401 KiB | 5 Q