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); $hmm = explode("\\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.0120.00316.50
8.3.50.0080.01021.08
8.3.40.0110.00418.62
8.3.30.0030.01018.76
8.3.20.0050.00320.21
8.3.10.0080.00023.52
8.3.00.0060.00319.13
8.2.180.0150.00316.47
8.2.170.0070.00722.96
8.2.160.0120.00620.23
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0070.00022.25
8.2.110.0030.00722.29
8.2.100.0080.00417.91
8.2.90.0050.00317.84
8.2.80.0000.00719.45
8.2.70.0030.00517.50
8.2.60.0050.00517.92
8.2.50.0000.00818.10
8.2.40.0000.00720.30
8.2.30.0080.00018.05
8.2.20.0040.00417.60
8.2.10.0000.00717.95
8.2.00.0030.00717.73
8.1.280.0110.00725.92
8.1.270.0040.00423.75
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.93
8.1.230.0050.00522.68
8.1.220.0000.00917.74
8.1.210.0040.00418.91
8.1.200.0000.00817.35
8.1.190.0040.00417.11
8.1.180.0000.00818.10
8.1.170.0000.00918.45
8.1.160.0000.00722.02
8.1.150.0040.00418.56
8.1.140.0040.00417.29
8.1.130.0070.00017.71
8.1.120.0040.00417.35
8.1.110.0000.00717.39
8.1.100.0000.01017.38
8.1.90.0000.00817.37
8.1.80.0040.00417.45
8.1.70.0030.00317.27
8.1.60.0000.00917.48
8.1.50.0040.00417.46
8.1.40.0070.00017.45
8.1.30.0040.00417.44
8.1.20.0000.00717.48
8.1.10.0000.00717.44
8.1.00.0040.00417.28
8.0.300.0040.00419.77
8.0.290.0000.00716.75
8.0.280.0030.00318.42
8.0.270.0000.00717.23
8.0.260.0030.00317.09
8.0.250.0050.00216.79
8.0.240.0000.00816.88
8.0.230.0040.00416.77
8.0.220.0030.00316.72
8.0.210.0030.00316.81
8.0.200.0030.00316.74
8.0.190.0040.00416.88
8.0.180.0040.00416.89
8.0.170.0050.00316.86
8.0.160.0000.00716.75
8.0.150.0000.00816.71
8.0.140.0040.00416.80
8.0.130.0000.00513.21
8.0.120.0080.00016.67
8.0.110.0040.00416.82
8.0.100.0040.00416.75
8.0.90.0080.00016.84
8.0.80.0130.00316.81
8.0.70.0030.00316.72
8.0.60.0040.00416.73
8.0.50.0000.00716.70
8.0.30.0100.01216.90
8.0.20.0110.01017.40
8.0.10.0040.00416.92
8.0.00.0130.00516.67
7.4.330.0020.00215.00
7.4.320.0000.00816.53
7.4.300.0060.00016.42
7.4.290.0070.00016.49
7.4.280.0030.00516.30
7.4.270.0030.00316.32
7.4.260.0030.00316.31
7.4.250.0030.00516.37
7.4.240.0020.00516.50
7.4.230.0000.00716.35
7.4.220.0060.00916.49
7.4.210.0080.00816.48
7.4.200.0050.00216.42
7.4.190.0000.00716.68
7.4.160.0160.00816.38
7.4.150.0060.01217.40
7.4.140.0070.01017.86
7.4.130.0100.00616.23
7.4.120.0150.00216.40
7.4.110.0060.01016.36
7.4.100.0090.00916.31
7.4.90.0140.00616.48
7.4.80.0130.00919.39
7.4.70.0100.00616.27
7.4.60.0120.00316.41
7.4.50.0000.00716.38
7.4.40.0000.01622.77
7.4.30.0130.01016.27
7.4.00.0080.00414.92
7.3.330.0050.00013.00
7.3.320.0000.00512.95
7.3.310.0070.00016.12
7.3.300.0040.00416.15
7.3.290.0080.00816.18
7.3.280.0120.00716.09
7.3.270.0060.01017.40
7.3.260.0100.00616.10
7.3.250.0110.00616.23
7.3.240.0130.01016.14
7.3.230.0060.01316.39
7.3.210.0110.00616.18
7.3.200.0160.00016.34
7.3.190.0140.00616.25
7.3.180.0120.00416.18
7.3.170.0170.00316.42
7.3.160.0060.01616.28
7.3.120.0070.01014.92
7.3.110.0070.00314.66
7.3.100.0140.00314.91
7.3.90.0060.00314.62
7.3.80.0110.00314.45
7.3.70.0000.01314.61
7.3.60.0050.00514.57
7.3.50.0040.01114.62
7.3.40.0030.01414.48
7.3.30.0120.00414.88
7.3.20.0030.01016.54
7.3.10.0060.00916.57
7.3.00.0030.00916.64
7.2.330.0070.01016.45
7.2.320.0030.01916.48
7.2.310.0060.01016.19
7.2.300.0050.01116.39
7.2.290.0070.01016.52
7.2.240.0030.01014.99
7.2.230.0040.01214.87
7.2.220.0070.00714.96
7.2.210.0030.01015.11
7.2.200.0030.01015.01
7.2.190.0130.00315.04
7.2.180.0110.00415.12
7.2.170.0080.00815.10
7.2.160.0070.00715.00
7.2.150.0080.00816.73
7.2.140.0030.00716.77
7.2.130.0090.00616.59
7.2.120.0060.00916.82
7.2.110.0030.01216.64
7.2.100.0040.01416.80
7.2.90.0090.00616.67
7.2.80.0100.00716.44
7.2.70.0090.00616.71
7.2.60.0100.00616.66
7.2.50.0110.00416.89
7.2.40.0070.00716.98
7.2.30.0000.01216.72
7.2.20.0040.01116.70
7.2.10.0120.00316.56
7.2.00.0070.00917.96
7.1.330.0030.01015.78
7.1.320.0060.01015.47
7.1.310.0080.00315.67
7.1.300.0070.00415.58
7.1.290.0000.01315.66
7.1.280.0040.01115.47
7.1.270.0070.01015.71
7.1.260.0090.00615.66
7.1.250.0030.01415.77
7.1.100.0030.01018.00
7.1.70.0090.00617.25
7.1.60.0030.02019.46
7.1.50.0070.01316.90
7.1.00.0070.07322.47
7.0.200.0000.00716.62
7.0.140.0000.07722.12
7.0.60.0200.03719.96
7.0.50.0100.07017.81
7.0.40.0100.08020.23
7.0.30.0270.08020.01
7.0.20.0400.06720.09
7.0.10.0070.04320.13
7.0.00.0170.05020.11
5.6.280.0000.07721.14
5.6.210.0230.05720.52
5.6.200.0000.08718.22
5.6.190.0030.09020.56
5.6.180.0170.08720.43
5.6.170.0200.03720.42
5.6.160.0000.04720.38
5.6.150.0070.07718.16
5.6.140.0130.06718.21
5.6.130.0100.06318.11
5.6.120.0030.04021.00
5.6.110.0100.08320.98
5.6.100.0070.08020.97
5.6.90.0170.07020.96
5.6.80.0030.07720.40
5.5.350.0300.07020.37
5.5.340.0070.06718.02
5.5.330.0030.04320.43
5.5.320.0430.06720.34
5.5.310.0230.08320.29
5.5.300.0030.08317.88
5.5.290.0030.04018.01
5.5.280.0070.05020.88
5.5.270.0170.06020.75
5.5.260.0030.08720.88
5.5.250.0030.09020.54
5.5.240.0300.06320.14
5.4.450.0700.05719.40
5.4.440.0800.05019.40
5.4.430.0700.04319.48
5.4.420.0800.05019.23
5.4.410.0170.05319.36
5.4.400.0670.06318.80
5.4.390.0670.06019.17
5.4.380.0370.05318.72
5.4.370.0300.05318.68
5.4.360.0430.05018.46
5.4.350.0370.06718.59
5.4.340.0300.05718.56
5.4.320.0050.03812.46
5.4.310.0100.04612.45
5.4.300.0070.03512.45
5.4.290.0070.05512.43
5.4.280.0090.05212.33
5.4.270.0080.05012.33
5.4.260.0050.05612.33
5.4.250.0100.05612.33
5.4.240.0080.05312.33
5.4.230.0080.05412.32
5.4.220.0100.05312.32
5.4.210.0080.04412.32
5.4.200.0080.04112.32
5.4.190.0050.05412.32
5.4.180.0100.04912.32
5.4.170.0060.04312.33
5.4.160.0040.03812.33
5.4.150.0030.04312.32
5.4.140.0090.03612.00
5.4.130.0030.03912.00
5.4.120.0060.03411.95
5.4.110.0080.03211.95
5.4.100.0090.03211.95
5.4.90.0040.03911.95
5.4.80.0060.03711.95
5.4.70.0090.03211.95
5.4.60.0080.03311.94
5.4.50.0070.03511.95
5.4.40.0040.03711.93
5.4.30.0050.03511.93
5.4.20.0080.03211.93
5.4.10.0060.04011.93
5.4.00.0070.04211.42
5.3.290.0050.04212.80
5.3.280.0050.03812.71
5.3.270.0050.03912.72
5.3.260.0060.03812.72
5.3.250.0080.03512.72
5.3.240.0060.03912.72
5.3.230.0070.03712.71
5.3.220.0110.03212.68
5.3.210.0070.04012.68
5.3.200.0180.03012.68
5.3.190.0110.03612.68
5.3.180.0090.03412.68
5.3.170.0070.03712.66
5.3.160.0100.03712.67
5.3.150.0060.04012.67
5.3.140.0060.03712.66
5.3.130.0060.04112.66
5.3.120.0050.04312.66
5.3.110.0040.04312.66
5.3.100.0030.04012.12
5.3.90.0030.04112.08
5.3.80.0050.04312.08
5.3.70.0070.03412.07
5.3.60.0050.03612.07
5.3.50.0130.04412.00
5.3.40.0090.04712.00
5.3.30.0170.04111.95
5.3.20.0100.04511.72
5.3.10.0110.04411.69
5.3.00.0060.05111.68
5.2.170.0110.0369.18
5.2.160.0100.0349.18
5.2.150.0100.0399.17
5.2.140.0140.0359.18
5.2.130.0090.0369.13
5.2.120.0110.0279.14
5.2.110.0000.0349.14
5.2.100.0050.0289.14
5.2.90.0040.0299.13
5.2.80.0060.0299.14
5.2.70.0090.0379.13
5.2.60.0100.0369.09
5.2.50.0100.0439.06
5.2.40.0070.0389.03
5.2.30.0050.0439.01
5.2.20.0060.0319.00
5.2.10.0070.0368.92
5.2.00.0060.0398.78
5.1.60.0030.0338.06
5.1.50.0060.0338.06
5.1.40.0030.0368.04
5.1.30.0050.0368.39
5.1.20.0050.0378.41
5.1.10.0080.0338.13
5.1.00.0030.0408.13
5.0.50.0040.0296.61
5.0.40.0050.0266.47
5.0.30.0050.0326.29
5.0.20.0050.0286.26
5.0.10.0040.0306.23
5.0.00.0060.0396.23
4.4.90.0050.0214.78
4.4.80.0040.0224.75
4.4.70.0050.0204.75
4.4.60.0070.0284.75
4.4.50.0060.0254.77
4.4.40.0070.0334.71
4.4.30.0040.0264.75
4.4.20.0050.0254.84
4.4.10.0100.0254.85
4.4.00.0040.0334.75
4.3.110.0050.0274.67
4.3.100.0070.0254.66
4.3.90.0020.0224.64
4.3.80.0070.0324.59
4.3.70.0050.0284.63
4.3.60.0030.0224.63
4.3.50.0040.0224.63
4.3.40.0060.0314.54
4.3.30.0070.0243.28
4.3.20.0050.0243.26
4.3.10.0060.0193.22
4.3.00.0030.01710.54

preferences:
35.83 ms | 401 KiB | 5 Q