3v4l.org

run code in 300+ PHP versions simultaneously
<?php $applicant_person_id='44265, 442657, 224585 SSS'; // 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.60.0090.00618.28
8.3.50.0100.00921.12
8.3.40.0040.01118.79
8.3.30.0100.00319.14
8.3.20.0040.00420.29
8.3.10.0000.00823.65
8.3.00.0060.00319.50
8.2.180.0140.00718.66
8.2.170.0120.00322.96
8.2.160.0140.00020.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.21
8.2.110.0060.00320.35
8.2.100.0060.00617.95
8.2.90.0000.00819.17
8.2.80.0030.00617.97
8.2.70.0060.00317.59
8.2.60.0030.00517.80
8.2.50.0030.00718.07
8.2.40.0040.00419.65
8.2.30.0060.00318.07
8.2.20.0040.00417.77
8.2.10.0000.00717.96
8.2.00.0090.00017.70
8.1.280.0170.00325.92
8.1.270.0130.00323.96
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0100.00723.83
8.1.230.0070.00419.01
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0000.00817.48
8.1.180.0030.00518.10
8.1.170.0000.01218.65
8.1.160.0030.00521.92
8.1.150.0040.00418.93
8.1.140.0050.00317.44
8.1.130.0000.00717.89
8.1.120.0000.00717.59
8.1.110.0030.00517.50
8.1.100.0000.00717.54
8.1.90.0030.00517.54
8.1.80.0040.00417.49
8.1.70.0030.00317.47
8.1.60.0040.00417.55
8.1.50.0060.00317.45
8.1.40.0050.00317.64
8.1.30.0030.00617.78
8.1.20.0000.00717.76
8.1.10.0020.00517.47
8.1.00.0030.00617.50
8.0.300.0000.00818.77
8.0.290.0050.00216.63
8.0.280.0000.00718.27
8.0.270.0070.00017.22
8.0.260.0040.00417.22
8.0.250.0000.00716.93
8.0.240.0000.00717.00
8.0.230.0080.00016.88
8.0.220.0070.00016.96
8.0.210.0040.00416.84
8.0.200.0040.00417.04
8.0.190.0000.00716.96
8.0.180.0040.00417.05
8.0.170.0040.00416.86
8.0.160.0040.00416.94
8.0.150.0080.00016.81
8.0.140.0000.00716.81
8.0.130.0000.00813.36
8.0.120.0040.00416.92
8.0.110.0000.00716.96
8.0.100.0000.00716.79
8.0.90.0000.00717.04
8.0.80.0120.00316.88
8.0.70.0040.00416.75
8.0.60.0070.00016.94
8.0.50.0070.00016.98
8.0.30.0090.01517.19
8.0.20.0110.01117.41
8.0.10.0040.00417.13
8.0.00.0060.01116.75
7.4.330.0050.00015.02
7.4.320.0060.00016.73
7.4.300.0030.00316.65
7.4.290.0070.00016.65
7.4.280.0060.00316.77
7.4.270.0000.00816.71
7.4.260.0030.00616.62
7.4.250.0000.00716.66
7.4.240.0030.00416.68
7.4.230.0030.00516.84
7.4.220.0070.01116.62
7.4.210.0110.00416.65
7.4.200.0040.00416.77
7.4.160.0140.00316.57
7.4.150.0150.00617.40
7.4.140.0160.00517.86
7.4.130.0080.01216.83
7.4.120.0100.00716.51
7.4.110.0040.01416.46
7.4.100.0030.01316.68
7.4.90.0130.01016.48
7.4.80.0080.01219.39
7.4.70.0070.01016.63
7.4.60.0130.01016.71
7.4.50.0000.00816.42
7.4.40.0070.01016.51
7.4.30.0070.01016.73
7.4.00.0070.01014.80
7.3.330.0000.00513.07
7.3.320.0000.00513.12
7.3.310.0070.00016.32
7.3.300.0000.00716.29
7.3.290.0050.01016.29
7.3.280.0080.00916.31
7.3.270.0150.00317.40
7.3.260.0090.00916.39
7.3.250.0110.00816.29
7.3.240.0160.00516.53
7.3.230.0080.00816.39
7.3.210.0110.00616.52
7.3.200.0110.00519.39
7.3.190.0090.00916.24
7.3.180.0130.00316.59
7.3.170.0070.01016.27
7.3.160.0060.01216.68
7.2.330.0090.00916.50
7.2.320.0090.00916.40
7.2.310.0030.01316.75
7.2.300.0080.00816.65
7.2.290.0090.00916.63
7.2.00.0030.01319.14
7.1.200.0050.00815.85
7.1.100.0000.01117.98
7.1.70.0090.00616.97
7.1.60.0030.02019.11
7.1.50.0170.00716.78
7.1.00.0000.07322.46
7.0.200.0060.00316.91
7.0.140.0030.07322.15
7.0.60.0170.06319.91
7.0.50.0100.06317.84
7.0.40.0030.06020.25
7.0.30.0470.07720.32
7.0.20.0130.04720.11
7.0.10.0170.06020.04
7.0.00.0070.04720.20
5.6.280.0000.07720.96
5.6.210.0130.07720.76
5.6.200.0030.05018.16
5.6.190.0070.04720.69
5.6.180.0300.07320.67
5.6.170.0270.07720.66
5.6.160.0200.07020.71
5.6.150.0100.03318.22
5.6.140.0070.06718.22
5.6.130.0170.07018.18
5.6.120.0130.08721.09
5.6.110.0070.08320.98
5.6.100.0170.07020.96
5.6.90.0030.07320.84
5.6.80.0070.07020.40
5.6.70.4100.03720.48
5.5.350.0130.08020.32
5.5.340.0130.07717.97
5.5.330.0130.06720.57
5.5.320.0270.07720.34
5.5.310.0230.04720.29
5.5.300.0000.07317.99
5.5.290.0100.07717.93
5.5.280.0100.07320.96
5.5.270.0130.06320.85
5.5.260.0200.06720.70
5.5.250.0100.08320.61
5.5.240.0300.06720.25
5.4.450.0070.07019.43
5.4.440.0970.07019.27
5.4.430.0830.05719.51
5.4.420.0670.00019.51
5.4.410.0670.00019.34
5.4.400.0630.00019.02
5.4.390.0830.00019.19
5.4.380.0630.00019.13
5.4.370.0670.00019.07
5.4.360.0630.00018.96
5.4.350.0630.00019.09
5.4.340.0040.03611.96
5.4.320.0100.03112.45
5.4.310.0040.03912.45
5.4.300.0080.03312.45
5.4.290.0030.04012.45
5.4.280.0050.03612.35
5.4.270.0080.03512.34
5.4.260.0090.03512.35
5.4.250.0060.03812.34
5.4.240.0060.04812.34
5.4.230.0080.04212.34
5.4.220.0040.03712.34
5.4.210.0050.03612.34
5.4.200.0070.04112.34
5.4.190.0070.03512.33
5.4.180.0060.03612.34
5.4.170.0050.03812.34
5.4.160.0090.03312.34
5.4.150.0070.03512.34
5.4.140.0060.03912.02
5.4.130.0090.03412.01
5.4.120.0050.03811.96
5.4.110.0070.03511.96
5.4.100.0080.03211.96
5.4.90.0040.03911.96
5.4.80.0050.03711.96
5.4.70.0070.03311.96
5.4.60.0030.03711.96
5.4.50.0060.03911.96
5.4.40.0060.03311.95
5.4.30.0090.03111.95
5.4.20.0050.03511.94
5.4.10.0060.03311.95
5.4.00.0050.03711.43
5.3.290.0070.03712.80
5.3.280.0050.03812.71
5.3.270.0060.03912.72
5.3.260.0070.03712.72
5.3.250.0090.03312.72
5.3.240.0060.03812.72
5.3.230.0060.03812.71
5.3.220.0050.03912.68
5.3.210.0050.03912.68
5.3.200.0060.03612.68
5.3.190.0070.03712.68
5.3.180.0030.03912.68
5.3.170.0070.03912.67
5.3.160.0040.03812.67
5.3.150.0080.03612.68
5.3.140.0080.03712.66
5.3.130.0050.04012.66
5.3.120.0080.03712.66
5.3.110.0080.03712.66
5.3.100.0080.03512.12
5.3.90.0070.03512.08
5.3.80.0040.03712.07
5.3.70.0090.03212.07
5.3.60.0050.03712.06
5.3.50.0070.03612.00
5.3.40.0070.03612.00
5.3.30.0070.03311.95
5.3.20.0060.03511.73
5.3.10.0070.03311.69
5.3.00.0060.03511.68
5.2.170.0050.0389.18
5.2.160.0060.0319.18
5.2.150.0040.0309.18
5.2.140.0040.0319.17
5.2.130.0050.0289.13
5.2.120.0040.0299.13
5.2.110.0050.0289.14
5.2.100.0030.0309.14
5.2.90.0040.0299.14
5.2.80.0030.0339.13
5.2.70.0020.0339.13
5.2.60.0050.0299.09
5.2.50.0040.0359.05
5.2.40.0040.0299.04
5.2.30.0050.0299.01
5.2.20.0050.0309.00
5.2.10.0050.0328.92
5.2.00.0050.0298.78
5.1.60.0080.0218.06
5.1.50.0030.0278.05
5.1.40.0070.0298.04
5.1.30.0100.0208.39
5.1.20.0060.0248.41
5.1.10.0070.0308.13
5.1.00.0040.0288.14
5.0.50.0020.0226.61
5.0.40.0030.0206.47
5.0.30.0070.0276.29
5.0.20.0020.0206.26
5.0.10.0050.0186.24
5.0.00.0020.0326.23
4.4.90.0040.0194.78
4.4.80.0050.0134.75
4.4.70.0010.0174.75
4.4.60.0030.0154.76
4.4.50.0000.0184.77
4.4.40.0030.0254.71
4.4.30.0000.0184.76
4.4.20.0040.0144.84
4.4.10.0030.0154.85
4.4.00.0050.0224.76
4.3.110.0030.0154.67
4.3.100.0040.0144.66
4.3.90.0000.0174.64
4.3.80.0000.0274.58
4.3.70.0040.0134.63
4.3.60.0000.0174.62
4.3.50.0030.0154.62
4.3.40.0030.0244.54
4.3.30.0010.0173.28
4.3.20.0050.0133.26
4.3.10.0010.0163.22
4.3.00.0070.0207.28

preferences:
37.61 ms | 401 KiB | 5 Q