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.0140.00016.63
8.3.50.0110.00621.12
8.3.40.0040.01118.45
8.3.30.0070.00718.88
8.3.20.0070.00020.30
8.3.10.0050.00321.82
8.3.00.0060.00319.26
8.2.180.0070.01116.38
8.2.170.0070.00722.96
8.2.160.0100.00320.38
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0120.00426.16
8.2.120.0070.00022.11
8.2.110.0030.00622.29
8.2.100.0120.00017.66
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0030.00517.80
8.2.50.0060.00318.07
8.2.40.0000.00919.82
8.2.30.0000.00817.97
8.2.20.0040.00417.48
8.2.10.0040.00417.92
8.2.00.0070.00317.68
8.1.280.0030.01025.92
8.1.270.0140.00023.92
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00323.96
8.1.230.0070.00318.98
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0040.00417.30
8.1.180.0080.00018.10
8.1.170.0000.00818.48
8.1.160.0050.00321.93
8.1.150.0050.00218.61
8.1.140.0000.00817.38
8.1.130.0000.00717.71
8.1.120.0070.00017.37
8.1.110.0000.00717.36
8.1.100.0090.00017.44
8.1.90.0030.00617.36
8.1.80.0050.00317.32
8.1.70.0040.00417.38
8.1.60.0000.00917.54
8.1.50.0030.00517.45
8.1.40.0000.00717.46
8.1.30.0040.00417.46
8.1.20.0040.00417.60
8.1.10.0020.00517.33
8.1.00.0000.00717.37
8.0.300.0000.00720.80
8.0.290.0070.00017.16
8.0.280.0040.00418.32
8.0.270.0070.00017.10
8.0.260.0030.00317.05
8.0.250.0040.00416.87
8.0.240.0000.00716.80
8.0.230.0040.00416.86
8.0.220.0000.00716.70
8.0.210.0000.00716.70
8.0.200.0030.00316.87
8.0.190.0000.00716.86
8.0.180.0030.00616.84
8.0.170.0040.00416.80
8.0.160.0000.00716.69
8.0.150.0000.00716.68
8.0.140.0080.00016.77
8.0.130.0050.00013.23
8.0.120.0050.00316.61
8.0.110.0070.00016.86
8.0.100.0040.00416.75
8.0.90.0070.00016.83
8.0.80.0070.01016.79
8.0.70.0040.00416.77
8.0.60.0000.00716.76
8.0.50.0000.00716.79
8.0.30.0120.00616.85
8.0.20.0110.01417.40
8.0.10.0030.00416.74
8.0.00.0120.00716.60
7.4.330.0050.00015.00
7.4.320.0070.00016.57
7.4.300.0060.00016.41
7.4.290.0000.00716.34
7.4.280.0070.00016.43
7.4.270.0030.00316.51
7.4.260.0030.00316.40
7.4.250.0050.00316.39
7.4.240.0050.00216.47
7.4.230.0000.00716.50
7.4.220.0100.00716.48
7.4.210.0070.00716.50
7.4.200.0030.00316.40
7.4.190.0000.00816.48
7.4.160.0130.00316.45
7.4.150.0080.00817.40
7.4.140.0070.01217.86
7.4.130.0150.00516.31
7.4.120.0050.01216.32
7.4.110.0130.00316.30
7.4.100.0130.00616.38
7.4.90.0070.01316.38
7.4.80.0040.01419.39
7.4.70.0120.00416.31
7.4.60.0080.00816.47
7.4.50.0040.00416.28
7.4.40.0040.01422.77
7.4.30.0150.00916.58
7.4.00.0120.00315.01
7.3.330.0020.00212.96
7.3.320.0030.00313.06
7.3.310.0050.00315.97
7.3.300.0040.00416.14
7.3.290.0030.01016.18
7.3.280.0110.00716.12
7.3.270.0090.00917.40
7.3.260.0060.01216.26
7.3.250.0110.00516.20
7.3.240.0130.00716.02
7.3.230.0080.01416.39
7.3.210.0000.02416.18
7.3.200.0180.00519.39
7.3.190.0100.00716.20
7.3.180.0100.00616.36
7.3.170.0120.00916.27
7.3.160.0070.01316.22
7.3.120.0030.01314.67
7.2.330.0070.01016.39
7.2.320.0060.00916.36
7.2.310.0030.01416.60
7.2.300.0120.02016.25
7.2.290.0060.01116.45
7.1.70.0020.00517.14
7.1.60.0140.01019.46
7.1.50.0100.01016.99
7.1.00.0070.07022.46
7.0.200.0030.00316.57
7.0.140.0030.07022.04
7.0.110.0130.08019.91
7.0.100.0200.07319.96
7.0.90.0100.08020.06
7.0.80.0070.07320.03
7.0.70.0100.06719.96
7.0.60.0100.07019.94
7.0.50.0270.07320.36
7.0.40.0130.07320.09
7.0.30.0030.08319.95
7.0.20.0130.08720.16
7.0.10.0100.04720.18
7.0.00.0070.08020.15
5.6.280.0030.07320.86
5.6.260.0070.04020.69
5.6.250.0030.08320.68
5.6.240.0070.08020.66
5.6.230.0130.07720.71
5.6.220.0070.08020.67
5.6.210.0030.08720.63
5.6.200.0000.09721.05
5.6.190.0030.09021.21
5.6.180.0130.07720.93
5.6.170.0070.07320.96
5.6.160.0100.07021.14
5.6.150.0000.05721.17
5.6.140.0030.07021.13
5.6.130.0100.04321.13
5.6.120.0070.08321.28
5.6.110.0030.09021.13
5.6.100.0100.08020.91
5.6.90.0070.08320.90
5.6.80.0070.06720.32
5.6.70.0130.05020.52
5.6.60.0130.06720.44
5.6.50.0100.07320.52
5.6.40.0170.07020.50
5.6.30.0170.06720.30
5.6.20.0070.05020.27
5.6.10.0130.07320.37
5.6.00.0070.07720.45
5.5.380.0200.06720.45
5.5.370.0070.08320.56
5.5.360.0130.07320.48
5.5.350.0070.08020.41
5.5.340.0030.08320.95
5.5.330.0100.08720.86
5.5.320.0100.07320.89
5.5.310.0070.05020.80
5.5.300.0100.06720.77
5.5.290.0100.05020.89
5.5.280.0070.09020.95
5.5.270.0100.07720.87
5.5.260.0070.08321.00
5.5.250.0100.08320.70
5.5.240.0030.08320.32
5.5.230.0030.08020.14
5.5.220.0100.07720.40
5.5.210.0030.07720.18
5.5.200.0030.08320.23
5.5.190.0100.07320.38
5.5.180.0100.07720.32
5.5.160.0070.08020.21
5.5.150.0130.07020.21
5.5.140.0070.08320.32
5.5.130.0030.04720.36
5.5.120.0030.04020.23
5.5.110.0100.07720.29
5.5.100.0070.08020.13
5.5.90.0130.06019.97
5.5.80.0100.07720.18
5.5.70.0170.07020.06
5.5.60.0070.07720.22
5.5.50.0070.06320.02
5.5.40.0070.07719.98
5.5.30.0070.08020.11
5.5.20.0070.08320.16
5.5.10.0070.05020.14
5.5.00.0130.05320.02
5.4.450.0070.06719.36
5.4.440.0070.08319.43
5.4.430.0100.08019.50
5.4.420.0070.07319.32
5.4.410.0070.05019.36
5.4.400.0000.08019.12
5.4.390.0130.06719.10
5.4.380.0130.07019.00
5.4.370.0030.07719.30
5.4.360.0130.07319.20
5.4.350.0030.08719.00
5.4.340.0030.07719.12
5.4.320.0030.08018.93
5.4.310.0100.08019.02
5.4.300.0070.07319.01
5.4.290.0000.07718.98
5.4.280.0070.05319.11
5.4.270.0100.04018.92
5.4.260.0070.07319.09
5.4.250.0030.08319.15
5.4.240.0170.06719.19
5.4.230.0000.07719.26
5.4.220.0070.07719.19
5.4.210.0030.06719.27
5.4.200.0100.07018.96
5.4.190.0100.04019.02
5.4.180.0000.06318.99
5.4.170.0070.07719.11
5.4.160.0100.04719.16
5.4.150.0000.06018.92
5.4.140.0130.05716.44
5.4.130.0070.06716.45
5.4.120.0030.07016.46
5.4.110.0070.07316.51
5.4.100.0100.06716.13
5.4.90.0030.07316.52
5.4.80.0130.05716.21
5.4.70.0130.05316.36
5.4.60.0070.07016.38
5.4.50.0070.06716.46
5.4.40.0100.03716.51
5.4.30.0070.07016.25
5.4.20.0100.06316.17
5.4.10.0130.06316.47
5.4.00.0030.07315.97
5.3.290.0070.08014.62
5.3.280.0070.05014.67
5.3.270.0070.07314.62
5.3.260.0030.08014.54
5.3.250.0070.07314.54
5.3.240.0030.07314.62
5.3.230.0100.07714.48
5.3.220.0100.07014.64
5.3.210.0100.06714.60
5.3.200.0170.05314.50
5.3.190.0030.05314.46
5.3.180.0030.07714.41
5.3.170.0030.07714.42
5.3.160.0070.07314.41
5.3.150.0030.06714.56
5.3.140.0000.06714.40
5.3.130.0100.07314.40
5.3.120.0070.07314.50
5.3.110.0030.07714.61
5.3.100.0030.07713.98
5.3.90.0070.07313.90
5.3.80.0070.06714.09
5.3.70.0070.07313.90
5.3.60.0100.06713.82
5.3.50.0100.07013.96
5.3.40.0100.06313.95
5.3.30.0100.06013.69
5.3.20.0030.07313.71
5.3.10.0070.07313.55
5.3.00.0070.07313.64
5.2.170.0030.06012.02
5.2.160.0030.04712.02
5.2.150.0000.05312.02
5.2.140.0100.05312.02
5.2.130.0070.05712.02
5.2.120.0070.05712.02
5.2.110.0030.06312.02
5.2.100.0130.05312.02
5.2.90.0030.06712.02
5.2.80.0030.06012.02
5.2.70.0070.05712.02
5.2.60.0100.05712.02
5.2.50.0070.05712.02
5.2.40.0030.05712.02
5.2.30.0070.05312.02
5.2.20.0030.06012.02
5.2.10.0100.05312.02
5.2.00.0000.04012.02
5.1.60.0030.05012.02
5.1.50.0070.02712.02
5.1.40.0000.03712.02
5.1.30.0030.05012.02
5.1.20.0030.05712.02
5.1.10.0100.04312.02
5.1.00.0100.04712.02
5.0.50.0000.04712.02
5.0.40.0030.03712.02
5.0.30.0030.06712.02
5.0.20.0030.04012.02
5.0.10.0070.03712.02
5.0.00.0030.05712.02
4.4.90.0030.03312.02
4.4.80.0000.03712.02
4.4.70.0030.02712.02
4.4.60.0030.01712.02
4.4.50.0100.02312.02
4.4.40.0100.04712.02
4.4.30.0030.01712.02
4.4.20.0000.03712.02
4.4.10.0000.04012.02
4.4.00.0030.05012.02
4.3.110.0070.02712.02
4.3.100.0070.02712.02
4.3.90.0030.02312.02
4.3.80.0030.05712.02
4.3.70.0030.03312.02
4.3.60.0000.03712.02
4.3.50.0030.02712.02
4.3.40.0070.04312.02
4.3.30.0030.02712.02
4.3.20.0070.02312.02
4.3.10.0000.02312.02
4.3.00.0000.03712.02

preferences:
45.96 ms | 401 KiB | 5 Q