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.0140.00716.75
8.3.60.0110.00318.18
8.3.50.0060.01221.14
8.3.40.0030.01218.88
8.3.30.0110.00418.92
8.3.20.0040.00420.16
8.3.10.0080.00023.65
8.3.00.0100.01019.25
8.2.180.0090.01218.51
8.2.170.0070.00722.96
8.2.160.0140.00020.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00922.23
8.2.110.0100.00020.29
8.2.100.0120.00017.80
8.2.90.0050.00319.11
8.2.80.0080.00017.97
8.2.70.0090.00017.75
8.2.60.0000.00817.91
8.2.50.0030.00618.07
8.2.40.0000.00819.76
8.2.30.0070.00318.09
8.2.20.0000.00717.64
8.2.10.0000.00717.99
8.2.00.0040.00417.80
8.1.280.0170.00325.92
8.1.270.0040.00423.79
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.85
8.1.230.0120.00019.04
8.1.220.0020.00517.74
8.1.210.0080.00018.77
8.1.200.0000.00917.36
8.1.190.0030.00617.34
8.1.180.0000.00818.10
8.1.170.0030.00718.79
8.1.160.0000.00721.97
8.1.150.0040.00418.72
8.1.140.0000.00717.58
8.1.130.0070.00017.80
8.1.120.0040.00417.45
8.1.110.0040.00417.49
8.1.100.0040.00417.52
8.1.90.0040.00417.41
8.1.80.0040.00317.38
8.1.70.0000.00717.38
8.1.60.0000.00817.66
8.1.50.0040.00417.57
8.1.40.0040.00417.57
8.1.30.0060.00317.76
8.1.20.0000.00717.71
8.1.10.0040.00417.56
8.1.00.0030.00617.41
8.0.300.0050.00218.77
8.0.290.0040.00416.63
8.0.280.0070.00018.44
8.0.270.0000.00717.26
8.0.260.0080.00017.14
8.0.250.0000.00717.06
8.0.240.0030.00316.90
8.0.230.0000.00816.99
8.0.220.0030.00316.98
8.0.210.0030.00316.85
8.0.200.0050.00316.89
8.0.190.0000.00716.95
8.0.180.0070.00016.88
8.0.170.0050.00317.00
8.0.160.0060.00317.02
8.0.150.0040.00416.91
8.0.140.0020.00516.97
8.0.130.0070.00013.36
8.0.120.0000.00816.83
8.0.110.0030.00316.95
8.0.100.0000.00916.97
8.0.90.0040.00416.94
8.0.80.0090.00617.05
8.0.70.0000.00716.82
8.0.60.0040.00416.87
8.0.50.0000.00716.97
8.0.30.0160.00717.27
8.0.20.0100.01017.40
8.0.10.0030.00516.90
8.0.00.0090.00916.74
7.4.330.0020.00215.12
7.4.320.0060.00016.74
7.4.300.0000.00616.64
7.4.290.0030.00516.65
7.4.280.0050.00316.73
7.4.270.0000.00716.60
7.4.260.0000.00916.64
7.4.250.0080.00016.76
7.4.240.0040.00416.70
7.4.230.0080.00016.63
7.4.220.0140.00616.70
7.4.210.0090.00916.80
7.4.200.0040.00416.54
7.4.160.0150.00616.64
7.4.150.0040.01417.40
7.4.140.0070.01217.86
7.4.130.0100.01216.83
7.4.120.0060.01416.68
7.4.110.0130.00616.61
7.4.100.0060.01216.71
7.4.90.0090.00916.56
7.4.80.0090.00919.39
7.4.70.0100.00716.68
7.4.60.0060.01616.58
7.4.50.0060.00316.69
7.4.40.0080.00816.75
7.4.30.0180.00616.56
7.4.00.0040.01115.07
7.3.330.0050.00012.97
7.3.320.0000.00513.11
7.3.310.0030.00316.35
7.3.300.0030.00316.12
7.3.290.0080.01016.33
7.3.280.0110.00616.29
7.3.270.0100.00717.40
7.3.260.0070.01016.39
7.3.250.0100.01216.34
7.3.240.0070.01016.34
7.3.230.0070.01016.42
7.3.210.0060.01216.57
7.3.200.0100.00719.39
7.3.190.0170.00016.18
7.3.180.0070.01016.50
7.3.170.0130.00316.32
7.3.160.0100.00616.33
7.2.330.0110.00816.74
7.2.320.0150.00716.74
7.2.310.0100.00716.64
7.2.300.0090.00916.77
7.2.290.0130.01016.55
7.2.00.0130.00619.74
7.1.100.0080.01118.20
7.1.70.0050.00317.36
7.1.60.0070.01819.11
7.1.50.0140.01017.20
7.1.00.0030.07722.42
7.0.200.0030.00316.91
7.0.140.0030.07721.97
7.0.60.0030.08719.82
7.0.50.0130.08017.68
7.0.40.0030.04320.29
7.0.30.0200.04020.22
7.0.20.0200.08020.14
7.0.10.0330.07720.21
7.0.00.0000.07020.00
5.6.280.0030.07320.89
5.6.210.0100.06320.75
5.6.200.0030.09018.17
5.6.190.0130.08320.60
5.6.180.0300.06020.41
5.6.170.0230.05020.54
5.6.160.0030.06720.37
5.6.150.0000.06018.16
5.6.140.0030.06018.15
5.6.130.0000.08318.09
5.6.120.0100.03720.96
5.6.110.0200.08021.03
5.6.100.0030.04020.96
5.6.90.0070.08720.96
5.6.80.0070.03720.51
5.6.70.4400.04020.36
5.5.350.0070.05720.47
5.5.340.0070.07317.93
5.5.330.0070.05020.25
5.5.320.0330.06020.21
5.5.310.0200.07020.20
5.5.300.0000.04317.96
5.5.290.0000.04317.92
5.5.280.0100.06020.86
5.5.270.0070.05320.76
5.5.260.0100.03320.71
5.5.250.0100.05320.60
5.5.240.0200.07320.03
5.4.450.0930.06019.61
5.4.440.1130.06719.52
5.4.430.0970.05719.46
5.4.420.0630.00019.42
5.4.410.0630.00019.21
5.4.400.0670.00019.40
5.4.390.0830.00019.25
5.4.380.0730.00019.13
5.4.370.0630.00019.06
5.4.360.0670.00019.07
5.4.350.0670.00018.96
5.4.340.0040.03611.97
5.4.320.0090.03312.45
5.4.310.0090.03612.45
5.4.300.0050.03812.45
5.4.290.0060.03712.45
5.4.280.0090.03312.35
5.4.270.0060.03612.34
5.4.260.0060.03812.34
5.4.250.0070.03712.35
5.4.240.0060.03612.34
5.4.230.0050.03812.34
5.4.220.0050.03712.34
5.4.210.0100.03212.34
5.4.200.0070.03612.34
5.4.190.0100.03212.33
5.4.180.0120.03112.34
5.4.170.0080.03812.35
5.4.160.0050.03812.34
5.4.150.0060.03712.34
5.4.140.0060.03712.02
5.4.130.0100.04312.01
5.4.120.0130.05911.96
5.4.110.0080.04811.96
5.4.100.0100.04411.96
5.4.90.0120.05111.96
5.4.80.0070.05511.96
5.4.70.0040.03711.96
5.4.60.0080.03511.96
5.4.50.0080.03711.96
5.4.40.0070.03311.95
5.4.30.0060.03511.95
5.4.20.0080.03411.94
5.4.10.0050.03611.95
5.4.00.0060.03511.43
5.3.290.0050.04012.80
5.3.280.0060.03912.71
5.3.270.0050.03912.72
5.3.260.0050.03912.72
5.3.250.0050.03912.72
5.3.240.0080.03612.72
5.3.230.0050.03912.71
5.3.220.0080.03612.68
5.3.210.0090.03912.68
5.3.200.0100.03212.68
5.3.190.0090.03512.68
5.3.180.0050.04612.67
5.3.170.0050.03912.67
5.3.160.0040.03912.67
5.3.150.0070.03712.67
5.3.140.0140.04612.66
5.3.130.0090.04912.66
5.3.120.0060.04412.66
5.3.110.0070.04212.66
5.3.100.0080.03612.12
5.3.90.0070.03812.09
5.3.80.0090.04712.08
5.3.70.0070.03912.08
5.3.60.0070.03912.06
5.3.50.0050.03812.00
5.3.40.0080.03512.00
5.3.30.0090.03211.95
5.3.20.0060.03511.72
5.3.10.0070.03511.69
5.3.00.0060.04311.68
5.2.170.0070.0319.18
5.2.160.0030.0319.18
5.2.150.0030.0329.18
5.2.140.0060.0289.17
5.2.130.0020.0329.13
5.2.120.0060.0269.13
5.2.110.0060.0279.14
5.2.100.0020.0399.14
5.2.90.0050.0289.14
5.2.80.0030.0319.13
5.2.70.0040.0319.13
5.2.60.0040.0309.09
5.2.50.0040.0319.06
5.2.40.0040.0299.04
5.2.30.0050.0299.01
5.2.20.0060.0279.01
5.2.10.0040.0288.92
5.2.00.0040.0308.78
5.1.60.0040.0248.06
5.1.50.0080.0228.06
5.1.40.0050.0288.04
5.1.30.0060.0258.39
5.1.20.0050.0268.41
5.1.10.0030.0278.13
5.1.00.0060.0248.13
5.0.50.0020.0226.61
5.0.40.0060.0266.47
5.0.30.0040.0316.29
5.0.20.0040.0196.26
5.0.10.0030.0266.23
5.0.00.0050.0306.23
4.4.90.0030.0154.78
4.4.80.0040.0144.75
4.4.70.0020.0164.75
4.4.60.0030.0154.76
4.4.50.0030.0224.77
4.4.40.0020.0264.71
4.4.30.0010.0174.76
4.4.20.0010.0174.85
4.4.10.0050.0194.84
4.4.00.0020.0264.76
4.3.110.0020.0164.67
4.3.100.0020.0164.67
4.3.90.0040.0134.63
4.3.80.0020.0254.58
4.3.70.0000.0174.63
4.3.60.0020.0154.62
4.3.50.0020.0164.62
4.3.40.0070.0214.54
4.3.30.0010.0173.28
4.3.20.0020.0163.26
4.3.10.0020.0163.22
4.3.00.0030.0207.28

preferences:
49.82 ms | 401 KiB | 5 Q