3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'a\\\\,b,c\\,d'; var_dump(preg_split('/(?<!(?<!\\\\)\\\\),/', $str)); preg_match_all('/[^\\\\]\\\\,|([^,]+?)/', $str, $matches); print_r(array_filter($matches[1]));

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.40.0040.01118.90
8.3.30.0110.00318.86
8.3.20.0070.00020.13
8.3.10.0080.00023.48
8.3.00.0040.00419.50
8.2.170.0040.01122.96
8.2.160.0090.00620.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.89
8.2.110.0060.00320.53
8.2.100.0070.00417.91
8.2.90.0040.00418.03
8.2.80.0000.00917.97
8.2.70.0060.00317.75
8.2.60.0040.00418.04
8.2.50.0050.00318.07
8.2.40.0040.00417.91
8.2.30.0000.00718.15
8.2.20.0040.00417.71
8.2.10.0080.00018.08
8.2.00.0000.00817.77
8.1.270.0050.00323.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.48
8.1.230.0120.00020.88
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0100.00317.35
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0050.00518.65
8.1.160.0040.00421.85
8.1.150.0070.00018.76
8.1.140.0040.00417.54
8.1.130.0070.00017.93
8.1.120.0030.00417.52
8.1.110.0040.00417.58
8.1.100.0040.00417.53
8.1.90.0030.00317.54
8.1.80.0050.00517.45
8.1.70.0000.00817.49
8.1.60.0030.00617.65
8.1.50.0080.00017.52
8.1.40.0080.00017.61
8.1.30.0050.00317.56
8.1.20.0000.00717.72
8.1.10.0000.00717.68
8.1.00.0040.00417.77
8.0.300.0000.00719.86
8.0.290.0070.00016.75
8.0.280.0070.00018.49
8.0.270.0030.00317.14
8.0.260.0000.00717.21
8.0.250.0030.00317.06
8.0.240.0070.00016.95
8.0.230.0040.00416.98
8.0.220.0070.00017.03
8.0.210.0000.00716.86
8.0.200.0000.00617.07
8.0.190.0000.00817.03
8.0.180.0040.00417.01
8.0.170.0030.00617.04
8.0.160.0070.00016.86
8.0.150.0030.00316.91
8.0.140.0040.00416.82
8.0.130.0050.00013.49
8.0.120.0030.00516.82
8.0.110.0080.00017.05
8.0.100.0000.00717.04
8.0.90.0000.00716.96
8.0.80.0100.01016.88
8.0.70.0000.00816.82
8.0.60.0000.00816.97
8.0.50.0000.00716.84
8.0.30.0100.01717.06
8.0.20.0080.01617.40
8.0.10.0040.00416.93
8.0.00.0150.00616.76
7.4.330.0050.00015.00
7.4.320.0040.00416.74
7.4.300.0000.00616.70
7.4.290.0070.00016.66
7.4.280.0040.00416.74
7.4.270.0000.00716.66
7.4.260.0000.00716.65
7.4.250.0000.00816.63
7.4.240.0040.00416.70
7.4.230.0070.00016.64
7.4.220.0100.01016.86
7.4.210.0030.01016.85
7.4.200.0050.00216.59
7.4.160.0090.00916.44
7.4.150.0060.01917.40
7.4.140.0050.01317.86
7.4.130.0080.00816.73
7.4.120.0110.00616.70
7.4.110.0100.00616.64
7.4.100.0050.01416.51
7.4.90.0100.01316.85
7.4.80.0060.01219.39
7.4.70.0110.01116.53
7.4.60.0110.00616.45
7.4.50.0000.00816.48
7.4.40.0030.01516.53
7.4.30.0060.01016.51
7.4.00.0000.01415.23
7.3.330.0000.00713.21
7.3.320.0050.00013.27
7.3.310.0070.00016.36
7.3.300.0070.00016.32
7.3.290.0060.01216.33
7.3.280.0060.01016.39
7.3.270.0110.00717.40
7.3.260.0070.01016.86
7.3.250.0060.01216.50
7.3.240.0160.00716.64
7.3.230.0120.00616.39
7.3.210.0090.00916.45
7.3.200.0120.00919.39
7.3.190.0120.00916.46
7.3.180.0090.00616.33
7.3.170.0060.01116.27
7.3.160.0090.00616.61
7.2.330.0040.01516.71
7.2.320.0070.01516.54
7.2.310.0030.01516.73
7.2.300.0080.00816.63
7.2.290.0100.00716.67
7.2.00.0130.00319.67
7.1.100.0120.00018.27
7.1.70.0000.00717.45
7.1.60.0130.01319.46
7.1.50.0140.00734.95
7.1.00.0000.08022.43
7.0.200.0030.01016.66
7.0.140.0000.08022.01
7.0.60.0030.04319.93
7.0.50.0070.08017.75
7.0.40.0070.08020.30
7.0.30.0300.07020.23
7.0.20.0330.07720.20
7.0.10.0030.09020.11
7.0.00.0000.05020.14
5.6.280.0100.06720.82
5.6.210.0200.06320.54
5.6.200.0100.05018.16
5.6.190.0100.08320.52
5.6.180.0300.04020.77
5.6.170.0200.03720.50
5.6.160.0070.07020.61
5.6.150.0100.06718.14
5.6.140.0030.05018.24
5.6.130.0100.07718.17
5.6.120.0070.04721.00
5.6.110.0130.07321.13
5.6.100.0100.03721.00
5.6.90.0170.07320.88
5.6.80.0030.04020.52
5.5.350.0170.08320.31
5.5.340.0000.04318.08
5.5.330.0030.04320.45
5.5.320.0000.09020.35
5.5.310.0370.06320.23
5.5.300.0000.04018.08
5.5.290.0070.06018.03
5.5.280.0200.02720.83
5.5.270.0100.07320.75
5.5.260.0100.07720.76
5.5.250.0070.03720.57
5.5.240.0030.07320.18
5.4.450.0770.05719.70
5.4.440.0900.05719.38
5.4.430.1000.04719.38
5.4.420.0330.06019.16
5.4.410.0800.05319.57
5.4.400.0970.05319.14
5.4.390.0830.06019.30
5.4.380.0370.05018.78
5.4.370.0300.05018.79
5.4.360.0300.05318.57
5.4.350.0330.05718.73
5.4.340.0370.05318.77
5.4.320.0090.03412.48
5.4.310.0050.04212.48
5.4.300.0060.03712.48
5.4.290.0040.04012.48
5.4.280.0050.03712.38
5.4.270.0050.03612.38
5.4.260.0050.04512.38
5.4.250.0040.03912.38
5.4.240.0050.03512.38
5.4.230.0070.03912.37
5.4.220.0090.03312.37
5.4.210.0050.03712.37
5.4.200.0070.03712.37
5.4.190.0080.03312.36
5.4.180.0050.03712.36
5.4.170.0040.03812.38
5.4.160.0060.03612.38
5.4.150.0060.03812.37
5.4.140.0070.03512.05
5.4.130.0040.03712.04
5.4.120.0070.03312.00
5.4.110.0040.03711.99
5.4.100.0050.03511.99
5.4.90.0060.04112.00
5.4.80.0030.03912.00
5.4.70.0050.03811.99
5.4.60.0110.03711.99
5.4.50.0060.03511.99
5.4.40.0050.03511.98
5.4.30.0080.03811.98
5.4.20.0030.03911.98
5.4.10.0080.03211.98
5.4.00.0080.03311.47
5.3.290.0110.04812.80
5.3.280.0050.04012.71
5.3.270.0090.03712.72
5.3.260.0080.03812.72
5.3.250.0090.04412.72
5.3.240.0090.04512.72
5.3.230.0060.04312.71
5.3.220.0060.04212.68
5.3.210.0080.03912.68
5.3.200.0040.04112.68
5.3.190.0030.04212.68
5.3.180.0080.04012.68
5.3.170.0040.04412.67
5.3.160.0080.03512.67
5.3.150.0050.04112.68
5.3.140.0060.03712.66
5.3.130.0080.03912.66
5.3.120.0070.03712.66
5.3.110.0050.03912.66
5.3.100.0070.03812.12
5.3.90.0060.03612.10
5.3.80.0070.03812.09
5.3.70.0090.04212.09
5.3.60.0050.04112.08
5.3.50.0060.04712.02
5.3.40.0060.04712.02
5.3.30.0080.03211.98
5.3.20.0080.03511.76
5.3.10.0070.03911.73
5.3.00.0060.03811.71
5.2.170.0080.0319.21
5.2.160.0060.0369.22
5.2.150.0050.0359.22
5.2.140.0050.0309.21
5.2.130.0030.0329.17
5.2.120.0050.0309.17
5.2.110.0060.0329.18
5.2.100.0080.0249.18
5.2.90.0030.0309.18
5.2.80.0050.0359.17
5.2.70.0080.0289.17
5.2.60.0030.0319.13
5.2.50.0050.0299.09
5.2.40.0020.0319.07
5.2.30.0090.0309.06
5.2.20.0050.0269.04
5.2.10.0090.0268.94
5.2.00.0040.0288.79
5.1.60.0040.0268.06
5.1.50.0030.0268.05
5.1.40.0020.0268.04
5.1.30.0040.0268.39
5.1.20.0020.0288.41
5.1.10.0020.0278.14
5.1.00.0050.0268.13
5.0.50.0040.0206.62
5.0.40.0030.0276.47
5.0.30.0030.0316.29
5.0.20.0050.0176.26
5.0.10.0020.0236.23
5.0.00.0020.0386.23
4.4.90.0010.0204.78
4.4.80.0020.0164.75
4.4.70.0010.0174.75
4.4.60.0020.0164.76
4.4.50.0030.0184.77
4.4.40.0040.0244.71
4.4.30.0040.0144.76
4.4.20.0040.0144.85
4.4.10.0030.0154.85
4.4.00.0030.0264.76
4.3.110.0010.0194.67
4.3.100.0010.0214.67
4.3.90.0040.0134.64
4.3.80.0040.0234.58
4.3.70.0000.0174.63
4.3.60.0050.0124.63
4.3.50.0030.0154.63
4.3.40.0000.0274.54
4.3.30.0010.0173.28
4.3.20.0000.0183.26
4.3.10.0020.0153.22
4.3.00.0170.0277.77

preferences:
48.82 ms | 400 KiB | 5 Q