3v4l.org

run code in 300+ PHP versions simultaneously
<?php $applicant_person_id='44265, 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); // 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.40.0110.00718.84
8.3.30.0140.00018.92
8.3.20.0090.00020.09
8.3.10.0080.00023.65
8.3.00.0100.00719.50
8.2.170.0000.01422.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0160.00322.37
8.2.110.0030.00620.57
8.2.100.0080.00318.09
8.2.90.0000.00819.05
8.2.80.0030.00717.97
8.2.70.0090.00017.63
8.2.60.0060.00317.80
8.2.50.0080.00018.07
8.2.40.0030.00519.95
8.2.30.0000.00818.02
8.2.20.0040.00417.64
8.2.10.0000.00718.08
8.2.00.0030.00517.73
8.1.270.0060.00323.91
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.96
8.1.230.0070.00419.16
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0060.00618.46
8.1.160.0030.00521.98
8.1.150.0000.00718.86
8.1.140.0040.00417.53
8.1.130.0030.00317.82
8.1.120.0000.00717.60
8.1.110.0000.00817.53
8.1.100.0000.00717.57
8.1.90.0040.00417.57
8.1.80.0050.00317.40
8.1.70.0070.00017.48
8.1.60.0030.00617.68
8.1.50.0050.00317.50
8.1.40.0040.00417.49
8.1.30.0000.00717.80
8.1.20.0040.00417.74
8.1.10.0070.00017.61
8.1.00.0000.00717.46
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.34
8.0.270.0000.00817.20
8.0.260.0030.00317.20
8.0.250.0070.00017.06
8.0.240.0000.00816.95
8.0.230.0000.00716.99
8.0.220.0030.00317.03
8.0.210.0000.00716.95
8.0.200.0000.00816.95
8.0.190.0040.00416.95
8.0.180.0030.00516.95
8.0.170.0040.00417.02
8.0.160.0000.00716.96
8.0.150.0040.00416.90
8.0.140.0040.00416.92
8.0.130.0040.00413.36
8.0.120.0000.00817.00
8.0.110.0000.00716.89
8.0.100.0000.00816.82
8.0.90.0040.00416.97
8.0.80.0120.00916.85
8.0.70.0050.00316.77
8.0.60.0070.00016.77
8.0.50.0040.00416.76
8.0.30.0120.01117.02
8.0.20.0150.00517.40
8.0.10.0040.00417.21
8.0.00.0050.01317.02
7.4.330.0000.00515.03
7.4.320.0030.00316.64
7.4.300.0030.00316.55
7.4.290.0070.00016.72
7.4.280.0040.00416.64
7.4.270.0030.00316.79
7.4.260.0000.00716.60
7.4.250.0030.00316.66
7.4.240.0030.00416.65
7.4.230.0030.00616.64
7.4.220.0150.00416.84
7.4.210.0060.01716.57
7.4.200.0000.00816.75
7.4.160.0160.00616.55
7.4.150.0090.00917.40
7.4.140.0120.01317.86
7.4.130.0080.00816.58
7.4.120.0080.00916.58
7.4.110.0080.01216.69
7.4.100.0140.00416.68
7.4.90.0120.00616.73
7.4.80.0070.01319.39
7.4.70.0130.00316.54
7.4.60.0130.00316.55
7.4.50.0040.00416.65
7.4.40.0060.01016.68
7.4.30.0050.01116.72
7.4.00.0110.00414.90
7.3.330.0000.00513.15
7.3.320.0030.00313.26
7.3.310.0060.00316.38
7.3.300.0000.00716.27
7.3.290.0090.00716.30
7.3.280.0070.00916.28
7.3.270.0030.01617.40
7.3.260.0160.00616.23
7.3.250.0090.01116.44
7.3.240.0070.01116.48
7.3.230.0100.01016.39
7.3.210.0060.00916.28
7.3.200.0090.00919.39
7.3.190.0100.01316.39
7.3.180.0100.01316.53
7.3.170.0060.01116.40
7.3.160.0070.01016.54
7.2.330.0000.02316.87
7.2.320.0110.00616.61
7.2.310.0110.00916.65
7.2.300.0080.00816.47
7.2.290.0040.01316.79
7.1.70.0000.01616.98
7.1.60.0090.01219.11
7.1.50.0110.01417.04
7.1.00.0030.07722.41
7.0.200.0060.00316.80
7.0.140.0030.07321.95
7.0.60.0000.08721.66
7.0.50.0070.06317.89
7.0.40.0030.09020.00
7.0.30.0330.07320.27
7.0.20.0130.04720.14
7.0.10.0030.04320.22
7.0.00.0100.08720.12
5.6.210.0030.08020.62
5.6.200.0070.05318.12
5.6.190.0030.04720.39
5.6.180.0200.06720.41
5.6.170.0330.06320.38
5.6.160.0100.07020.41
5.6.150.0000.04318.13
5.6.140.0100.08318.13
5.6.130.0030.08018.11
5.6.120.0030.04721.11
5.6.110.0130.04720.97
5.6.100.0000.06721.03
5.6.90.0100.08020.99
5.6.80.0100.08020.39
5.5.350.0030.05720.41
5.5.340.0030.04017.91
5.5.330.0200.06720.41
5.5.320.0130.04020.41
5.5.310.0270.04720.16
5.5.300.0070.04317.88
5.5.290.0030.05717.91
5.5.280.0130.04320.73
5.5.270.0100.06720.85
5.5.260.0100.06020.74
5.5.250.0100.07020.66
5.5.240.0400.05320.27
5.4.450.0800.08319.61
5.4.440.0900.06319.40
5.4.430.0970.05019.44
5.4.420.0670.00019.25
5.4.410.0900.00019.36
5.4.400.0630.00019.03
5.4.390.0630.00019.05
5.4.380.0630.00019.09
5.4.370.0670.00018.96
5.4.360.0670.00019.05
5.4.350.0630.00019.26
5.4.340.0040.03711.97
5.4.320.0050.04312.45
5.4.310.0080.03612.45
5.4.300.0110.03912.45
5.4.290.0080.03712.45
5.4.280.0080.03312.35
5.4.270.0040.04012.35
5.4.260.0060.03912.35
5.4.250.0060.04012.35
5.4.240.0030.04012.34
5.4.230.0070.03712.34
5.4.220.0050.03912.34
5.4.210.0080.03612.34
5.4.200.0050.03812.34
5.4.190.0070.04812.34
5.4.180.0070.03812.34
5.4.170.0050.03712.35
5.4.160.0080.03412.34
5.4.150.0060.03812.34
5.4.140.0070.03712.02
5.4.130.0080.03512.01
5.4.120.0040.03711.96
5.4.110.0060.03811.96
5.4.100.0090.03411.96
5.4.90.0110.03011.96
5.4.80.0050.04511.96
5.4.70.0060.03311.96
5.4.60.0040.03611.96
5.4.50.0130.03211.96
5.4.40.0080.03711.95
5.4.30.0070.03911.95
5.4.20.0060.03611.95
5.4.10.0030.04111.94
5.4.00.0090.03711.44
5.3.290.0060.04512.80
5.3.280.0120.03612.71
5.3.270.0090.03912.72
5.3.260.0050.04112.72
5.3.250.0070.03712.72
5.3.240.0070.04112.72
5.3.230.0050.05112.71
5.3.220.0040.04012.68
5.3.210.0060.04012.68
5.3.200.0050.04112.68
5.3.190.0100.04312.68
5.3.180.0090.03712.67
5.3.170.0080.03912.67
5.3.160.0040.03912.67
5.3.150.0060.03812.67
5.3.140.0070.03912.66
5.3.130.0090.03812.65
5.3.120.0080.03912.66
5.3.110.0050.04212.66
5.3.100.0030.03912.11
5.3.90.0070.03512.09
5.3.80.0030.03912.07
5.3.70.0050.03912.07
5.3.60.0080.03612.06
5.3.50.0030.04212.00
5.3.40.0060.04212.00
5.3.30.0080.03611.94
5.3.20.0060.03511.72
5.3.10.0060.04011.69
5.3.00.0040.03911.68
5.2.170.0070.0289.18
5.2.160.0050.0289.18
5.2.150.0040.0319.18
5.2.140.0030.0339.17
5.2.130.0020.0339.13
5.2.120.0070.0299.13
5.2.110.0060.0379.14
5.2.100.0030.0309.14
5.2.90.0030.0319.14
5.2.80.0100.0269.13
5.2.70.0060.0339.13
5.2.60.0070.0309.09
5.2.50.0070.0379.05
5.2.40.0090.0389.04
5.2.30.0040.0329.01
5.2.20.0050.0309.01
5.2.10.0060.0318.92
5.2.00.0060.0328.78
5.1.60.0060.0268.06
5.1.50.0040.0258.06
5.1.40.0060.0298.04
5.1.30.0050.0338.39
5.1.20.0050.0268.41
5.1.10.0030.0278.14
5.1.00.0040.0258.14
5.0.50.0020.0256.61
5.0.40.0050.0226.47
5.0.30.0040.0316.29
5.0.20.0030.0206.26
5.0.10.0030.0216.23
5.0.00.0030.0306.23
4.4.90.0020.0224.78
4.4.80.0020.0164.75
4.4.70.0060.0164.75
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0030.0284.71
4.4.30.0030.0234.76
4.4.20.0020.0184.84
4.4.10.0030.0204.85
4.4.00.0040.0254.76
4.3.110.0030.0154.67
4.3.100.0030.0274.66
4.3.90.0020.0154.63
4.3.80.0050.0384.58
4.3.70.0040.0154.63
4.3.60.0030.0194.63
4.3.50.0040.0144.63
4.3.40.0020.0244.54
4.3.30.0010.0193.28
4.3.20.0030.0193.26
4.3.10.0030.0153.22
4.3.00.0200.0237.28

preferences:
50.27 ms | 400 KiB | 5 Q