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\\r", " ", $str); $hmm = explode("\n", $test); 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.0120.00616.38
8.3.50.0070.01221.22
8.3.40.0110.00318.42
8.3.30.0060.01018.90
8.3.20.0060.00320.22
8.3.10.0000.00823.40
8.3.00.0090.00019.13
8.2.180.0100.00716.38
8.2.170.0090.00622.96
8.2.160.0070.01020.35
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0100.00726.16
8.2.120.0070.00020.47
8.2.110.0080.00022.43
8.2.100.0070.00417.72
8.2.90.0000.00719.01
8.2.80.0030.00517.97
8.2.70.0060.00317.38
8.2.60.0050.00317.91
8.2.50.0000.00818.07
8.2.40.0090.00019.69
8.2.30.0040.00418.04
8.2.20.0000.00717.66
8.2.10.0050.00217.98
8.2.00.0030.00717.74
8.1.280.0150.00725.92
8.1.270.0060.00323.87
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.84
8.1.230.0040.00819.22
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0000.00717.18
8.1.180.0030.00618.10
8.1.170.0040.00418.46
8.1.160.0070.00021.92
8.1.150.0040.00418.53
8.1.140.0040.00417.41
8.1.130.0040.00417.81
8.1.120.0000.00717.29
8.1.110.0070.00017.32
8.1.100.0000.01117.44
8.1.90.0070.00317.36
8.1.80.0040.00417.28
8.1.70.0000.00617.34
8.1.60.0040.00417.50
8.1.50.0000.00817.33
8.1.40.0060.00317.32
8.1.30.0000.00717.50
8.1.20.0000.00717.64
8.1.10.0050.00217.49
8.1.00.0070.00017.38
8.0.300.0000.00720.73
8.0.290.0020.00516.93
8.0.280.0040.00418.23
8.0.270.0000.00717.08
8.0.260.0000.00617.17
8.0.250.0000.00716.85
8.0.240.0000.00716.89
8.0.230.0000.00816.88
8.0.220.0000.00616.84
8.0.210.0070.00016.85
8.0.200.0030.00316.82
8.0.190.0050.00316.91
8.0.180.0070.00316.84
8.0.170.0040.00416.81
8.0.160.0020.00516.89
8.0.150.0000.00716.80
8.0.140.0000.00716.83
8.0.130.0030.00313.29
8.0.120.0000.00816.77
8.0.110.0040.00416.88
8.0.100.0070.00016.78
8.0.90.0050.00216.85
8.0.80.0030.01316.84
8.0.70.0000.00716.72
8.0.60.0040.00416.86
8.0.50.0000.00816.84
8.0.30.0090.00916.98
8.0.20.0120.00617.40
8.0.10.0080.00016.88
8.0.00.0130.00816.48
7.4.330.0030.00315.00
7.4.320.0030.00316.38
7.4.300.0030.00316.41
7.4.290.0070.00016.48
7.4.280.0040.00416.55
7.4.270.0000.00716.44
7.4.260.0000.00716.42
7.4.250.0000.00816.41
7.4.240.0060.00116.52
7.4.230.0000.00716.32
7.4.220.0140.00516.54
7.4.210.0080.00716.54
7.4.200.0030.00316.32
7.4.190.0030.00316.41
7.4.160.0090.00916.35
7.4.150.0030.01417.40
7.4.140.0100.00717.86
7.4.130.0100.00716.41
7.4.120.0020.01516.46
7.4.110.0100.00716.43
7.4.100.0100.00716.49
7.4.90.0070.01016.44
7.4.80.0170.00019.39
7.4.70.0090.01116.37
7.4.60.0040.01116.41
7.4.50.0060.00316.41
7.4.40.0000.01122.77
7.4.30.0110.01116.43
7.4.00.0070.00714.77
7.3.330.0060.00013.05
7.3.320.0000.00612.87
7.3.310.0000.00716.20
7.3.300.0030.00315.98
7.3.290.0160.00316.24
7.3.280.0090.00916.14
7.3.270.0070.01017.40
7.3.260.0120.00416.03
7.3.250.0120.00516.32
7.3.240.0090.01216.26
7.3.230.0130.00916.39
7.3.210.0070.01016.21
7.3.200.0070.01119.39
7.3.190.0060.01016.22
7.3.180.0060.00916.15
7.3.170.0110.01116.27
7.3.160.0110.00816.11
7.3.120.0100.00314.24
7.2.330.0080.00816.33
7.2.320.0040.01116.16
7.2.310.0100.00716.63
7.2.300.0040.01216.64
7.2.290.0030.01416.60
7.2.60.0220.00316.82
7.2.50.0080.00316.91
7.1.200.0070.00415.82
7.1.100.0030.01418.06
7.1.70.0000.01216.81
7.1.60.0030.02119.46
7.1.50.0090.01216.56
7.1.00.0070.07322.46
7.0.200.0030.00316.69
7.0.140.0030.07321.91
7.0.60.0130.07020.06
7.0.50.0030.04017.66
7.0.40.0130.03719.96
7.0.30.0300.08320.19
7.0.20.0170.08720.30
7.0.10.0270.05320.31
7.0.00.0070.08020.17
5.6.280.0030.07321.12
5.6.210.0030.07320.60
5.6.200.0000.04718.15
5.6.190.0100.07320.39
5.6.180.0270.05720.61
5.6.170.0200.04020.47
5.6.160.0130.07320.49
5.6.150.0170.04318.16
5.6.140.0030.08718.21
5.6.130.0100.08018.21
5.6.120.0200.07021.11
5.6.110.0100.06721.09
5.6.100.0000.05020.97
5.6.90.0070.08320.96
5.6.80.0100.05020.38
5.6.70.4500.03720.39
5.5.350.0130.07320.43
5.5.340.0030.06017.93
5.5.330.0100.05020.40
5.5.320.0130.04320.41
5.5.310.0230.04320.26
5.5.300.0100.07017.95
5.5.290.0070.04717.97
5.5.280.0030.08320.79
5.5.270.0130.08320.79
5.5.260.0070.08320.64
5.5.250.0030.08720.66
5.5.240.0000.04020.16
5.4.450.0730.06319.60
5.4.440.0830.06319.11
5.4.430.0630.05019.44
5.4.420.0570.06019.59
5.4.410.0570.06719.27
5.4.400.0700.05019.14
5.4.390.0630.06719.12
5.4.380.0400.04718.77
5.4.370.0500.07018.79
5.4.360.0330.05018.68
5.4.350.0230.06318.49
5.4.340.0330.05018.60
5.4.320.0120.03412.45
5.4.310.0060.04312.45
5.4.300.0070.04012.45
5.4.290.0040.04412.43
5.4.280.0080.03912.33
5.4.270.0110.04112.33
5.4.260.0030.04512.33
5.4.250.0060.03912.33
5.4.240.0040.03812.33
5.4.230.0090.03612.32
5.4.220.0070.04812.32
5.4.210.0060.05212.32
5.4.200.0100.05012.32
5.4.190.0150.05412.32
5.4.180.0100.04912.32
5.4.170.0110.09412.33
5.4.160.0040.05312.33
5.4.150.0070.04812.32
5.4.140.0030.04112.01
5.4.130.0080.03311.99
5.4.120.0050.03911.95
5.4.110.0080.05911.95
5.4.100.0070.03811.95
5.4.90.0070.04011.95
5.4.80.0070.03711.95
5.4.70.0070.03511.94
5.4.60.0090.03411.94
5.4.50.0050.03511.95
5.4.40.0070.03311.93
5.4.30.0070.04011.93
5.4.20.0090.06011.93
5.4.10.0060.05811.93
5.4.00.0070.05211.42
5.3.290.0080.04412.80
5.3.280.0050.04212.71
5.3.270.0090.04012.73
5.3.260.0080.04012.72
5.3.250.0040.04112.72
5.3.240.0050.04112.72
5.3.230.0060.04212.71
5.3.220.0110.04612.68
5.3.210.0100.06612.68
5.3.200.0130.04212.68
5.3.190.0050.04912.68
5.3.180.0060.04012.68
5.3.170.0080.05512.67
5.3.160.0050.05512.67
5.3.150.0110.05012.68
5.3.140.0060.04612.66
5.3.130.0100.04812.65
5.3.120.0090.05312.66
5.3.110.0110.05312.66
5.3.100.0100.04612.12
5.3.90.0050.05212.08
5.3.80.0090.03712.08
5.3.70.0080.03512.07
5.3.60.0070.03812.06
5.3.50.0020.03912.00
5.3.40.0110.04612.00
5.3.30.0120.04711.94
5.3.20.0080.03611.72
5.3.10.0110.04811.69
5.3.00.0050.04011.68
5.2.170.0050.0339.18
5.2.160.0050.0319.18
5.2.150.0060.0299.18
5.2.140.0050.0309.18
5.2.130.0040.0299.13
5.2.120.0040.0309.13
5.2.110.0040.0339.14
5.2.100.0050.0439.14
5.2.90.0060.0329.14
5.2.80.0040.0329.14
5.2.70.0030.0329.14
5.2.60.0050.0299.09
5.2.50.0030.0329.05
5.2.40.0040.0299.04
5.2.30.0020.0329.01
5.2.20.0040.0309.00
5.2.10.0030.0328.92
5.2.00.0030.0338.78
5.1.60.0030.0258.06
5.1.50.0040.0278.05
5.1.40.0050.0308.04
5.1.30.0040.0298.39
5.1.20.0040.0288.41
5.1.10.0060.0278.14
5.1.00.0080.0248.13
5.0.50.0020.0246.61
5.0.40.0040.0196.48
5.0.30.0040.0306.28
5.0.20.0020.0206.26
5.0.10.0030.0206.24
5.0.00.0040.0306.23
4.4.90.0030.0174.78
4.4.80.0040.0164.75
4.4.70.0020.0164.76
4.4.60.0050.0134.75
4.4.50.0010.0174.77
4.4.40.0020.0264.71
4.4.30.0000.0184.76
4.4.20.0030.0194.84
4.4.10.0030.0164.85
4.4.00.0030.0244.76
4.3.110.0030.0164.67
4.3.100.0000.0184.66
4.3.90.0020.0164.64
4.3.80.0030.0244.59
4.3.70.0040.0134.63
4.3.60.0020.0164.63
4.3.50.0040.0164.63
4.3.40.0050.0304.54
4.3.30.0020.0213.29
4.3.20.0040.0203.26
4.3.10.0020.0213.22
4.3.00.0000.01310.54

preferences:
45.01 ms | 401 KiB | 5 Q