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", "", $str); $hmm = explode("\n", $test); var_dump($hmm);

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.63
8.3.50.0120.00922.10
8.3.40.0040.01118.46
8.3.30.0070.00718.83
8.3.20.0050.00220.24
8.3.10.0070.00021.58
8.3.00.0000.00819.23
8.2.180.0130.00616.32
8.2.170.0080.00522.96
8.2.160.0110.00422.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0100.00726.16
8.2.120.0030.00322.27
8.2.110.0030.00522.20
8.2.100.0080.00317.72
8.2.90.0080.00018.97
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0060.00319.72
8.2.30.0050.00317.86
8.2.20.0030.00517.62
8.2.10.0050.00217.91
8.2.00.0080.00317.71
8.1.280.0070.01425.92
8.1.270.0050.00323.82
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0080.00023.77
8.1.230.0040.00819.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00517.28
8.1.180.0050.00318.10
8.1.170.0040.00418.53
8.1.160.0000.00721.84
8.1.150.0040.00418.46
8.1.140.0030.00517.25
8.1.130.0040.00417.72
8.1.120.0000.00817.46
8.1.110.0040.00317.39
8.1.100.0060.00317.38
8.1.90.0090.00017.27
8.1.80.0000.00617.37
8.1.70.0070.00017.27
8.1.60.0050.00317.34
8.1.50.0000.00817.34
8.1.40.0080.00017.47
8.1.30.0040.00417.51
8.1.20.0080.00017.46
8.1.10.0070.00017.44
8.1.00.0070.00017.25
8.0.300.0070.00020.80
8.0.290.0000.00717.05
8.0.280.0000.00718.36
8.0.270.0040.00417.09
8.0.260.0000.00817.18
8.0.250.0060.00016.77
8.0.240.0030.00316.71
8.0.230.0030.00316.80
8.0.220.0000.00716.82
8.0.210.0030.00316.72
8.0.200.0000.00616.89
8.0.190.0040.00416.77
8.0.180.0000.01116.71
8.0.170.0030.00616.83
8.0.160.0000.00716.68
8.0.150.0030.00316.64
8.0.140.0000.00716.66
8.0.130.0030.00313.27
8.0.120.0040.00416.81
8.0.110.0000.00816.86
8.0.100.0000.00716.70
8.0.90.0000.00816.67
8.0.80.0110.00816.85
8.0.70.0030.00616.81
8.0.60.0000.00716.88
8.0.50.0040.00416.90
8.0.30.0110.01416.87
8.0.20.0100.00917.40
8.0.10.0000.00716.94
8.0.00.0070.01116.77
7.4.330.0060.00015.00
7.4.320.0000.00616.44
7.4.300.0070.00016.43
7.4.290.0040.00416.54
7.4.280.0070.00016.56
7.4.270.0000.00916.53
7.4.260.0070.00016.45
7.4.250.0000.00816.34
7.4.240.0050.00216.35
7.4.230.0030.00316.26
7.4.220.0030.01316.55
7.4.210.0070.01116.51
7.4.200.0040.00416.63
7.4.190.0050.00316.40
7.4.160.0090.00616.64
7.4.150.0110.00617.40
7.4.140.0110.00617.86
7.4.130.0110.00516.36
7.4.120.0070.01216.45
7.4.110.0070.01016.21
7.4.100.0120.00616.43
7.4.90.0140.00316.28
7.4.80.0120.01319.39
7.4.70.0100.00716.35
7.4.60.0140.00316.42
7.4.50.0040.00416.51
7.4.40.0120.00322.77
7.4.30.0030.01616.19
7.4.00.0000.01814.95
7.3.330.0020.00212.97
7.3.320.0020.00212.92
7.3.310.0070.00016.17
7.3.300.0000.00716.03
7.3.290.0030.01016.16
7.3.280.0100.00716.18
7.3.270.0040.01317.40
7.3.260.0090.00916.42
7.3.250.0120.00516.35
7.3.240.0030.01316.13
7.3.230.0060.00916.43
7.3.210.0070.01016.16
7.3.200.0090.00616.54
7.3.190.0150.00316.34
7.3.180.0060.00916.14
7.3.170.0070.01016.27
7.3.160.0030.01916.06
7.3.120.0030.01514.60
7.2.330.0090.00916.48
7.2.320.0100.00616.51
7.2.310.0090.00916.27
7.2.300.0090.01216.72
7.2.290.0040.01216.43
7.2.60.0070.00716.25
7.2.00.0000.01218.98
7.1.200.0140.00415.47
7.1.100.0030.01017.99
7.1.70.0090.01517.06
7.1.60.0140.01119.46
7.1.50.0060.01016.94
7.1.00.0030.07722.27
7.0.200.0000.00716.57
7.0.140.0070.07022.10
7.0.60.0030.03721.83
7.0.50.0030.06717.78
7.0.40.0000.04720.20
7.0.30.0200.07020.04
7.0.20.0200.03720.12
7.0.10.0030.04720.04
7.0.00.0070.07020.20
5.6.280.0070.07021.11
5.6.210.0070.08020.54
5.6.200.0100.08018.09
5.6.190.0070.04020.39
5.6.180.0200.04320.56
5.6.170.0270.04720.38
5.6.160.0030.04020.44
5.6.150.0130.07018.23
5.6.140.0000.04318.13
5.6.130.0130.07718.18
5.6.120.0030.09021.14
5.6.110.0070.07021.00
5.6.100.0070.08320.94
5.6.90.0070.08720.97
5.6.80.0070.06020.39
5.5.350.0070.07720.37
5.5.340.0030.03717.95
5.5.330.0070.04020.40
5.5.320.0270.07020.24
5.5.310.0170.04320.22
5.5.300.0070.03717.91
5.5.290.0030.05017.95
5.5.280.0100.07720.79
5.5.270.0130.07720.79
5.5.260.0100.08320.96
5.5.250.0000.05020.69
5.5.240.4330.04020.18
5.4.450.0770.06019.52
5.4.440.0700.06719.57
5.4.430.0700.06019.26
5.4.420.0070.05719.45
5.4.410.0070.05718.98
5.4.400.0130.06319.12
5.4.390.0400.05018.94
5.4.380.0270.05718.60
5.4.370.0470.05018.75
5.4.360.0370.06318.74
5.4.350.0370.05318.57
5.4.340.0130.06318.53
5.4.320.0100.03512.45
5.4.310.0050.04612.45
5.4.300.0110.04112.46
5.4.290.0020.04312.43
5.4.280.0070.03612.33
5.4.270.0060.03712.33
5.4.260.0060.03812.33
5.4.250.0060.04212.33
5.4.240.0040.04012.33
5.4.230.0070.04312.32
5.4.220.0110.04112.32
5.4.210.0080.03712.32
5.4.200.0030.04512.32
5.4.190.0030.03912.32
5.4.180.0050.03612.32
5.4.170.0060.03812.33
5.4.160.0050.03712.32
5.4.150.0060.03912.32
5.4.140.0070.05312.00
5.4.130.0050.05211.99
5.4.120.0070.05211.95
5.4.110.0140.04511.95
5.4.100.0060.03611.95
5.4.90.0040.03911.95
5.4.80.0080.03611.95
5.4.70.0070.03611.94
5.4.60.0040.03711.95
5.4.50.0090.03311.94
5.4.40.0060.04211.93
5.4.30.0060.03511.93
5.4.20.0060.03511.93
5.4.10.0060.03411.93
5.4.00.0120.03811.42
5.3.290.0090.03612.80
5.3.280.0080.04912.71
5.3.270.0110.05812.72
5.3.260.0090.04112.72
5.3.250.0060.03712.72
5.3.240.0080.04512.72
5.3.230.0050.04412.71
5.3.220.0100.03612.68
5.3.210.0080.04412.68
5.3.200.0080.04412.68
5.3.190.0060.04812.68
5.3.180.0090.04912.67
5.3.170.0080.05312.67
5.3.160.0060.05412.68
5.3.150.0080.04812.67
5.3.140.0070.05312.66
5.3.130.0090.04212.66
5.3.120.0060.03912.66
5.3.110.0070.03912.66
5.3.100.0110.03712.12
5.3.90.0070.03612.08
5.3.80.0080.03512.07
5.3.70.0080.04912.07
5.3.60.0050.03712.06
5.3.50.0080.03312.00
5.3.40.0050.03712.00
5.3.30.0080.03311.94
5.3.20.0040.03711.72
5.3.10.0060.03411.69
5.3.00.0070.03611.68
5.2.170.0040.0339.18
5.2.160.0050.0419.18
5.2.150.0030.0469.18
5.2.140.0080.0359.18
5.2.130.0020.0319.13
5.2.120.0040.0299.14
5.2.110.0060.0339.14
5.2.100.0070.0269.14
5.2.90.0050.0299.14
5.2.80.0080.0279.13
5.2.70.0030.0329.13
5.2.60.0050.0299.09
5.2.50.0030.0319.06
5.2.40.0040.0299.03
5.2.30.0040.0309.01
5.2.20.0060.0278.99
5.2.10.0090.0368.92
5.2.00.0040.0308.78
5.1.60.0050.0368.06
5.1.50.0050.0358.05
5.1.40.0050.0288.04
5.1.30.0070.0248.39
5.1.20.0040.0278.41
5.1.10.0070.0238.14
5.1.00.0040.0258.13
5.0.50.0000.0246.61
5.0.40.0040.0196.47
5.0.30.0070.0276.29
5.0.20.0020.0216.26
5.0.10.0060.0176.23
5.0.00.0030.0356.23
4.4.90.0050.0144.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0010.0174.75
4.4.50.0000.0184.77
4.4.40.0040.0244.71
4.4.30.0020.0164.76
4.4.20.0020.0164.85
4.4.10.0030.0154.85
4.4.00.0010.0274.76
4.3.110.0030.0164.67
4.3.100.0040.0144.67
4.3.90.0020.0164.63
4.3.80.0040.0234.59
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0020.0254.53
4.3.30.0020.0163.28
4.3.20.0030.0163.26
4.3.10.0040.0143.22
4.3.00.0230.01310.54

preferences:
35.11 ms | 401 KiB | 5 Q