3v4l.org

run code in 300+ PHP versions simultaneously
<?php $applicant_person_id='44265,SS 442657, 224585'; // Replace any non-integer at the end by space, then trim it. $cleanstring = preg_replace("/[^0-9]+$/", "", $applicant_person_id); $person_id_list = rtrim($cleanstring); var_dump($cleanstring); // Split on any non-integer value $person_ids = preg_split("/[^0-9]+/", $person_id_list); var_dump($person_ids);

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.70.0030.01516.48
8.3.60.0090.00618.55
8.3.50.0130.00521.29
8.3.40.0090.00918.54
8.3.30.0070.00718.84
8.3.20.0030.00520.33
8.3.10.0030.00623.73
8.3.00.0090.00919.25
8.2.180.0040.01118.79
8.2.170.0110.00722.96
8.2.160.0100.00320.43
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00422.31
8.2.110.0100.00020.35
8.2.100.0080.00317.78
8.2.90.0000.00919.11
8.2.80.0090.00017.97
8.2.70.0000.00817.63
8.2.60.0000.00817.71
8.2.50.0040.00418.07
8.2.40.0050.00319.82
8.2.30.0000.00918.05
8.2.20.0050.00317.64
8.2.10.0040.00417.96
8.2.00.0000.00817.87
8.1.280.0070.01025.92
8.1.270.0070.00724.02
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00422.23
8.1.230.0110.00019.18
8.1.220.0000.00717.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0050.00518.71
8.1.160.0000.00822.01
8.1.150.0080.00018.72
8.1.140.0030.00517.58
8.1.130.0070.00017.79
8.1.120.0040.00417.57
8.1.110.0040.00417.55
8.1.100.0040.00417.44
8.1.90.0030.00417.55
8.1.80.0000.00717.58
8.1.70.0030.00517.45
8.1.60.0000.00917.56
8.1.50.0040.00417.58
8.1.40.0040.00417.66
8.1.30.0000.00817.80
8.1.20.0060.00317.72
8.1.10.0070.00017.58
8.1.00.0000.00817.41
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0030.00318.31
8.0.270.0030.00317.08
8.0.260.0030.00317.14
8.0.250.0070.00016.95
8.0.240.0000.00716.96
8.0.230.0000.00717.04
8.0.220.0030.00317.01
8.0.210.0030.00316.86
8.0.200.0040.00417.03
8.0.190.0040.00417.04
8.0.180.0000.00717.02
8.0.170.0030.00517.01
8.0.160.0000.00816.86
8.0.150.0030.00516.79
8.0.140.0070.00016.89
8.0.130.0060.00313.39
8.0.120.0000.00816.86
8.0.110.0040.00416.89
8.0.100.0070.00017.08
8.0.90.0000.00816.84
8.0.80.0100.00617.02
8.0.70.0030.00516.81
8.0.60.0000.00816.81
8.0.50.0070.00016.85
8.0.30.0090.01317.26
8.0.20.0110.00817.40
8.0.10.0040.00417.12
8.0.00.0120.00516.76
7.4.330.0000.00515.02
7.4.320.0000.00616.54
7.4.300.0030.00316.71
7.4.290.0000.00716.67
7.4.280.0030.00516.62
7.4.270.0000.00716.63
7.4.260.0040.00416.57
7.4.250.0050.00216.50
7.4.240.0030.00316.60
7.4.230.0000.00816.75
7.4.220.0030.01716.51
7.4.210.0030.01816.84
7.4.200.0000.00716.73
7.4.160.0130.00316.66
7.4.150.0160.00317.40
7.4.140.0160.00317.86
7.4.130.0080.01016.47
7.4.120.0110.01116.52
7.4.110.0130.01016.63
7.4.100.0060.01116.61
7.4.90.0030.01616.83
7.4.80.0120.00619.39
7.4.70.0110.00716.50
7.4.60.0090.00616.55
7.4.50.0040.00416.62
7.4.40.0000.01616.58
7.4.30.0110.00816.57
7.4.00.0090.00614.92
7.3.330.0030.00313.21
7.3.320.0000.00513.02
7.3.310.0000.00716.22
7.3.300.0030.00316.31
7.3.290.0060.01216.24
7.3.280.0090.00716.29
7.3.270.0140.00317.40
7.3.260.0090.00916.82
7.3.250.0050.01316.39
7.3.240.0070.01416.28
7.3.230.0110.00716.63
7.3.210.0030.01416.61
7.3.200.0100.00719.39
7.3.190.0090.01316.50
7.3.180.0090.00616.58
7.3.170.0130.00316.32
7.3.160.0080.00916.47
7.2.330.0120.00616.52
7.2.320.0090.00816.61
7.2.310.0060.01216.59
7.2.300.0120.00516.62
7.2.290.0100.01016.68
7.1.200.0070.00716.08
7.1.70.0070.00017.18
7.1.60.0180.00719.11
7.1.50.0100.01417.08
7.1.00.0070.07022.29
7.0.200.0000.00916.80
7.0.140.0130.06321.97
7.0.60.0100.07319.82
7.0.50.0030.07317.68
7.0.40.0100.07720.23
7.0.30.0400.06320.36
7.0.20.0270.07720.18
7.0.10.0170.06720.18
7.0.00.0030.05020.18
5.6.280.0100.06320.89
5.6.210.0100.05320.71
5.6.200.0030.04318.18
5.6.190.0000.05020.56
5.6.180.0270.07720.41
5.6.170.0230.07320.41
5.6.160.0070.07020.32
5.6.150.0030.04018.11
5.6.140.0130.07718.15
5.6.130.0100.06318.23
5.6.120.0100.08021.01
5.6.110.0030.05721.02
5.6.100.0230.06021.07
5.6.90.0070.06320.96
5.6.80.0100.08020.40
5.6.70.4430.04020.39
5.5.350.0130.06320.33
5.5.340.0030.03718.02
5.5.330.0030.05320.36
5.5.320.0200.08020.21
5.5.310.0200.04320.41
5.5.300.0070.08017.89
5.5.290.0130.04017.91
5.5.280.0030.08720.82
5.5.270.0170.05720.86
5.5.260.0070.04020.79
5.5.250.0100.05320.68
5.5.240.0330.06320.26
5.4.450.0600.06019.53
5.4.440.0800.05719.42
5.4.430.0870.04719.23
5.4.420.0670.00019.46
5.4.410.0700.00019.21
5.4.400.0600.00019.04
5.4.390.0700.00019.00
5.4.380.0670.00019.07
5.4.370.0670.00018.95
5.4.360.0630.00019.16
5.4.350.0900.00019.13
5.4.340.0040.03611.96
5.4.320.0100.03212.45
5.4.310.0050.03912.45
5.4.300.0030.03912.45
5.4.290.0040.04012.45
5.4.280.0080.03412.34
5.4.270.0060.03712.34
5.4.260.0060.03812.35
5.4.250.0080.03612.35
5.4.240.0060.03612.34
5.4.230.0050.03812.34
5.4.220.0060.03512.34
5.4.210.0060.03412.34
5.4.200.0030.03912.34
5.4.190.0070.03412.34
5.4.180.0080.03312.33
5.4.170.0070.03512.34
5.4.160.0030.03812.34
5.4.150.0050.03912.34
5.4.140.0070.03612.02
5.4.130.0040.03712.01
5.4.120.0060.03511.96
5.4.110.0090.03211.96
5.4.100.0050.03611.96
5.4.90.0050.04111.96
5.4.80.0070.04011.96
5.4.70.0070.03311.96
5.4.60.0070.03311.96
5.4.50.0040.03711.96
5.4.40.0040.03711.95
5.4.30.0100.03111.95
5.4.20.0070.03811.95
5.4.10.0040.04311.95
5.4.00.0100.03611.44
5.3.290.0090.03612.80
5.3.280.0060.03712.71
5.3.270.0060.04212.72
5.3.260.0070.03612.72
5.3.250.0110.03812.72
5.3.240.0050.04212.71
5.3.230.0040.04212.71
5.3.220.0050.04012.68
5.3.210.0090.03612.68
5.3.200.0060.03912.68
5.3.190.0080.04412.67
5.3.180.0050.03812.68
5.3.170.0070.03612.67
5.3.160.0080.03512.68
5.3.150.0050.03812.67
5.3.140.0060.03612.66
5.3.130.0060.03912.66
5.3.120.0080.04312.66
5.3.110.0070.04212.66
5.3.100.0060.03712.12
5.3.90.0080.03312.09
5.3.80.0040.03712.07
5.3.70.0090.03412.07
5.3.60.0030.03812.06
5.3.50.0050.04212.00
5.3.40.0080.03812.00
5.3.30.0050.03511.94
5.3.20.0050.03511.73
5.3.10.0080.03211.69
5.3.00.0040.03711.68
5.2.170.0050.0339.18
5.2.160.0090.0249.18
5.2.150.0070.0319.18
5.2.140.0020.0329.18
5.2.130.0060.0309.14
5.2.120.0040.0289.14
5.2.110.0090.0279.14
5.2.100.0060.0279.14
5.2.90.0030.0309.14
5.2.80.0050.0299.13
5.2.70.0050.0299.13
5.2.60.0030.0309.09
5.2.50.0040.0309.06
5.2.40.0060.0289.04
5.2.30.0050.0299.02
5.2.20.0040.0299.00
5.2.10.0050.0278.92
5.2.00.0060.0278.78
5.1.60.0060.0228.07
5.1.50.0060.0238.06
5.1.40.0060.0238.04
5.1.30.0050.0258.39
5.1.20.0060.0248.41
5.1.10.0010.0288.14
5.1.00.0020.0288.14
5.0.50.0020.0226.61
5.0.40.0050.0206.47
5.0.30.0020.0346.29
5.0.20.0030.0206.25
5.0.10.0050.0196.23
5.0.00.0020.0356.23
4.4.90.0040.0144.78
4.4.80.0050.0214.76
4.4.70.0040.0144.75
4.4.60.0050.0134.75
4.4.50.0040.0204.77
4.4.40.0020.0264.70
4.4.30.0020.0164.76
4.4.20.0020.0164.84
4.4.10.0040.0174.85
4.4.00.0040.0304.76
4.3.110.0030.0154.67
4.3.100.0030.0144.67
4.3.90.0020.0144.63
4.3.80.0030.0234.58
4.3.70.0050.0174.63
4.3.60.0070.0104.63
4.3.50.0030.0154.63
4.3.40.0040.0244.54
4.3.30.0030.0153.28
4.3.20.0020.0173.25
4.3.10.0010.0163.21
4.3.00.0170.0237.28

preferences:
92.55 ms | 401 KiB | 5 Q