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", "\n", $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.0110.00416.25
8.3.50.0140.00320.98
8.3.40.0070.00718.64
8.3.30.0060.00918.79
8.3.20.0000.00820.09
8.3.10.0040.00423.63
8.3.00.0000.00819.13
8.2.180.0120.00325.92
8.2.170.0100.01022.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00422.12
8.2.110.0060.00322.28
8.2.100.0000.01217.42
8.2.90.0000.00719.10
8.2.80.0050.00317.97
8.2.70.0000.00817.38
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0060.00319.82
8.2.30.0040.00418.04
8.2.20.0030.00517.71
8.2.10.0040.00418.11
8.2.00.0030.00617.76
8.1.280.0110.00725.92
8.1.270.0040.00423.92
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0050.00523.96
8.1.230.0080.00318.98
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.29
8.1.180.0100.00018.10
8.1.170.0080.00018.40
8.1.160.0030.00621.84
8.1.150.0000.00818.66
8.1.140.0070.00017.25
8.1.130.0000.00717.88
8.1.120.0030.00317.41
8.1.110.0040.00417.32
8.1.100.0060.00617.35
8.1.90.0080.00017.34
8.1.80.0040.00417.36
8.1.70.0000.00717.30
8.1.60.0080.00017.46
8.1.50.0040.00417.41
8.1.40.0030.00617.33
8.1.30.0050.00217.51
8.1.20.0000.00817.47
8.1.10.0060.00317.32
8.1.00.0030.00617.26
8.0.300.0040.00420.79
8.0.290.0000.00817.18
8.0.280.0070.00018.43
8.0.270.0000.00717.24
8.0.260.0060.00017.18
8.0.250.0070.00016.85
8.0.240.0030.00316.84
8.0.230.0000.00716.80
8.0.220.0070.00016.82
8.0.210.0070.00016.81
8.0.200.0000.00716.84
8.0.190.0070.00016.80
8.0.180.0040.00716.86
8.0.170.0030.00616.80
8.0.160.0040.00416.69
8.0.150.0070.00016.83
8.0.140.0070.00016.80
8.0.130.0000.00513.33
8.0.120.0050.00316.70
8.0.110.0000.00716.68
8.0.100.0040.00416.87
8.0.90.0040.00416.72
8.0.80.0130.00716.82
8.0.70.0070.00016.71
8.0.60.0000.00816.73
8.0.50.0000.00716.61
8.0.30.0070.01216.96
8.0.20.0110.00817.40
8.0.10.0000.00717.00
8.0.00.0090.00916.63
7.4.330.0020.00215.03
7.4.320.0030.00516.28
7.4.300.0000.00616.43
7.4.290.0000.00716.41
7.4.280.0070.00016.41
7.4.270.0040.00416.41
7.4.260.0030.00316.50
7.4.250.0080.00016.33
7.4.240.0000.00716.40
7.4.230.0030.00316.45
7.4.220.0030.01416.48
7.4.210.0110.00516.49
7.4.200.0000.00716.27
7.4.190.0030.00316.37
7.4.160.0140.00316.52
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0090.00816.47
7.4.120.0110.00616.41
7.4.110.0100.00716.31
7.4.100.0030.01416.20
7.4.90.0100.01016.46
7.4.80.0040.01519.39
7.4.70.0170.00316.27
7.4.60.0060.00916.40
7.4.50.0040.00416.53
7.4.40.0040.01222.77
7.4.30.0160.00616.39
7.4.00.0030.01414.86
7.3.330.0060.00012.89
7.3.320.0000.00513.05
7.3.310.0040.00415.95
7.3.300.0000.00716.19
7.3.290.0120.00316.16
7.3.280.0110.00716.14
7.3.270.0030.01417.40
7.3.260.0160.00016.21
7.3.250.0080.01216.24
7.3.240.0100.00716.13
7.3.230.0120.00416.39
7.3.210.0030.01316.55
7.3.200.0120.00619.39
7.3.190.0100.01216.44
7.3.180.0160.00016.34
7.3.170.0130.00616.27
7.3.160.0120.00716.43
7.3.120.0130.00014.84
7.3.10.0070.00716.30
7.3.00.0030.00916.47
7.2.330.0030.01516.48
7.2.320.0100.00616.41
7.2.310.0130.00316.41
7.2.300.0100.00716.55
7.2.290.0060.01016.54
7.2.130.0040.00716.72
7.2.120.0070.00516.66
7.2.110.0040.00916.72
7.2.100.0030.01216.67
7.2.90.0090.01016.88
7.2.80.0070.01016.78
7.2.70.0070.00916.76
7.2.60.0090.00616.69
7.2.50.0100.00416.71
7.2.40.0070.00716.63
7.2.30.0070.00516.50
7.2.20.0040.01116.59
7.2.10.0050.00816.63
7.2.00.0060.00817.59
7.1.250.0080.00315.64
7.1.200.0000.00815.74
7.1.100.0070.00718.05
7.1.70.0070.01017.16
7.1.60.0110.00719.46
7.1.50.0000.02116.89
7.1.00.0070.07322.30
7.0.200.0060.00316.73
7.0.140.0000.07021.95
7.0.60.0030.09019.80
7.0.50.0070.08717.80
7.0.40.0070.08720.21
7.0.30.0300.04020.09
7.0.20.0170.04720.03
7.0.10.0030.04320.16
7.0.00.0130.06720.09
5.6.280.0030.07320.87
5.6.210.0030.04020.71
5.6.200.0070.05318.13
5.6.190.0030.08020.61
5.6.180.0230.08020.61
5.6.170.0300.05020.51
5.6.160.0100.04720.52
5.6.150.0000.09018.16
5.6.140.0030.03718.11
5.6.130.0030.08318.16
5.6.120.0100.08020.96
5.6.110.0000.05020.98
5.6.100.0130.07321.00
5.6.90.0070.03720.87
5.6.80.0100.07720.39
5.6.70.4100.04320.37
5.5.350.0270.07020.34
5.5.340.0030.04717.98
5.5.330.0130.08020.07
5.5.320.0270.06020.17
5.5.310.0270.07720.36
5.5.300.0000.06717.98
5.5.290.0070.05318.01
5.5.280.0130.03320.93
5.5.270.0070.06720.75
5.5.260.0070.08320.83
5.5.250.0130.08020.57
5.5.240.0230.07320.21
5.4.450.1100.07319.62
5.4.440.0800.07019.47
5.4.430.0600.05019.30
5.4.420.0770.05319.50
5.4.410.0730.04319.47
5.4.400.0600.05319.20
5.4.390.0770.05019.00
5.4.380.0430.04718.59
5.4.370.0300.05718.68
5.4.360.0200.06018.46
5.4.350.0370.05318.65
5.4.340.0370.05318.74
5.4.320.0060.03712.45
5.4.310.0040.04012.45
5.4.300.0060.03812.45
5.4.290.0060.03712.43
5.4.280.0080.03312.33
5.4.270.0040.03912.33
5.4.260.0040.04112.33
5.4.250.0080.03712.33
5.4.240.0040.03912.33
5.4.230.0120.04012.32
5.4.220.0090.04412.32
5.4.210.0040.03812.32
5.4.200.0030.04112.32
5.4.190.0070.03612.32
5.4.180.0040.03812.32
5.4.170.0060.03712.33
5.4.160.0090.03412.32
5.4.150.0040.04012.32
5.4.140.0090.03412.00
5.4.130.0040.03912.00
5.4.120.0080.03511.95
5.4.110.0050.04011.95
5.4.100.0090.03811.95
5.4.90.0070.03911.95
5.4.80.0080.05011.95
5.4.70.0090.05211.94
5.4.60.0120.04811.95
5.4.50.0080.05311.95
5.4.40.0070.06511.93
5.4.30.0050.05611.93
5.4.20.0110.06511.93
5.4.10.0060.05411.93
5.4.00.0090.05111.42
5.3.290.0060.05312.80
5.3.280.0100.05012.71
5.3.270.0090.05612.72
5.3.260.0080.03812.72
5.3.250.0050.04712.72
5.3.240.0090.05112.72
5.3.230.0020.04412.71
5.3.220.0140.04012.68
5.3.210.0120.05812.68
5.3.200.0070.05012.68
5.3.190.0090.04012.68
5.3.180.0070.05412.67
5.3.170.0100.05012.67
5.3.160.0120.05212.68
5.3.150.0110.04612.68
5.3.140.0070.05112.66
5.3.130.0070.04112.66
5.3.120.0060.03912.66
5.3.110.0040.04312.66
5.3.100.0050.04212.12
5.3.90.0100.03512.08
5.3.80.0050.04512.08
5.3.70.0090.03612.07
5.3.60.0090.04712.06
5.3.50.0120.05112.00
5.3.40.0110.05812.00
5.3.30.0120.05811.95
5.3.20.0070.06111.72
5.3.10.0050.06411.69
5.3.00.0090.05611.68
5.2.170.0080.0499.18
5.2.160.0110.0499.18
5.2.150.0070.0419.18
5.2.140.0060.0429.17
5.2.130.0080.0389.14
5.2.120.0060.0419.13
5.2.110.0050.0399.14
5.2.100.0060.0329.14
5.2.90.0050.0299.14
5.2.80.0070.0289.13
5.2.70.0040.0309.13
5.2.60.0050.0329.09
5.2.50.0050.0329.06
5.2.40.0050.0299.04
5.2.30.0050.0309.01
5.2.20.0030.0329.00
5.2.10.0060.0298.91
5.2.00.0070.0288.77
5.1.60.0070.0298.06
5.1.50.0050.0278.05
5.1.40.0060.0248.04
5.1.30.0030.0298.39
5.1.20.0050.0308.41
5.1.10.0030.0318.13
5.1.00.0050.0258.14
5.0.50.0080.0186.61
5.0.40.0030.0196.48
5.0.30.0030.0316.29
5.0.20.0040.0226.26
5.0.10.0040.0236.23
5.0.00.0040.0306.23
4.4.90.0030.0164.77
4.4.80.0040.0154.75
4.4.70.0030.0164.75
4.4.60.0020.0174.76
4.4.50.0020.0174.77
4.4.40.0040.0304.70
4.4.30.0030.0214.76
4.4.20.0050.0164.85
4.4.10.0090.0214.84
4.4.00.0040.0344.76
4.3.110.0040.0224.67
4.3.100.0040.0154.66
4.3.90.0050.0164.64
4.3.80.0030.0254.58
4.3.70.0030.0154.63
4.3.60.0030.0144.63
4.3.50.0030.0164.63
4.3.40.0040.0234.54
4.3.30.0020.0163.28
4.3.20.0020.0163.26
4.3.10.0010.0173.22
4.3.00.0330.03310.54

preferences:
40.49 ms | 401 KiB | 5 Q