3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "ukahfranklin@yahoo.com, abhishek.b@contecglobal.com, Ukah Franklin B , <<option1>>, <<<option2>>>, Okechukwu Second name\n Abuja Airport, abvairport@contecglobal.com, <<<this option2>>>\n accounts.abuja@contecglobal.com, Accounts Abuja \n dejiashiru@contecglobal.com, Adeji Ashiru "; $result=array(); $no=0; $var = explode("\n",$string); foreach($var as $v){ $w = preg_split('/[,;]/',$v); foreach($w as $l){ if(preg_match('/((?<option2>(<{3}.+>{3}))|(?<option1>(<{2}.+>{2}))|(?<email>([a-zA-Z0-9.!#$%&?+\/=?^_`{|}~-]+@{1}[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]{2,}){1,11}))|(?<name>([^<>(@.*\.)]{2,10}[\w\W])+))/', $l, $matches)){ if(!empty($matches['option2'])){$result[$no]['option2']=$matches['option2'];} if(!empty($matches['option1'])){$result[$no]['option1']=$matches['option1'];} if(!empty($matches['email'])){ $result[$no]['email']=$matches['email']; }elseif(!empty($matches['name'])){ $result[$no]['name']=$matches['name']; } } } $no++; } print("<pre>".print_r($result,true)."</pre>"); exit();

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.0160.00018.55
8.3.50.0040.01116.69
8.3.40.0160.00619.16
8.3.30.0030.01319.15
8.3.20.0000.00819.23
8.3.10.0000.00821.76
8.3.00.0040.00420.67
8.2.180.0110.00417.00
8.2.170.0070.01122.96
8.2.160.0100.00722.34
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00317.97
8.2.120.0080.00026.35
8.2.110.0050.00521.02
8.2.100.0040.00718.16
8.2.90.0000.00817.88
8.2.80.0060.00317.97
8.2.70.0030.00618.03
8.2.60.0030.00518.22
8.2.50.0000.00918.10
8.2.40.0000.00819.52
8.2.30.0040.00419.44
8.2.20.0000.00818.25
8.2.10.0040.00418.36
8.2.00.0030.00518.26
8.1.280.0110.00425.92
8.1.270.0040.00422.32
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00617.61
8.1.230.0070.00419.00
8.1.220.0040.00417.77
8.1.210.0030.00618.77
8.1.200.0090.00017.60
8.1.190.0040.00417.73
8.1.180.0050.00318.10
8.1.170.0080.00018.71
8.1.160.0000.00719.12
8.1.150.0060.00318.94
8.1.140.0000.00722.18
8.1.130.0000.00720.26
8.1.120.0000.00717.68
8.1.110.0080.00017.52
8.1.100.0000.00817.64
8.1.90.0000.00817.59
8.1.80.0050.00217.64
8.1.70.0060.00317.69
8.1.60.0040.00417.79
8.1.50.0000.00817.70
8.1.40.0060.00317.61
8.1.30.0000.00717.79
8.1.20.0090.00317.87
8.1.10.0060.00317.75
8.1.00.0000.00917.60
8.0.300.0030.00618.77
8.0.290.0030.00617.00
8.0.280.0030.00318.40
8.0.270.0040.00417.21
8.0.260.0000.00718.37
8.0.250.0000.00717.21
8.0.240.0030.00317.22
8.0.230.0000.00717.15
8.0.220.0000.00717.18
8.0.210.0000.00717.02
8.0.200.0000.00717.23
8.0.190.0000.00817.06
8.0.180.0060.00317.07
8.0.170.0040.00417.16
8.0.160.0040.00417.15
8.0.150.0000.00717.09
8.0.140.0040.00417.11
8.0.130.0000.00613.52
8.0.120.0040.00417.14
8.0.110.0040.00417.05
8.0.100.0040.00417.24
8.0.90.0040.00416.98
8.0.80.0090.00817.19
8.0.70.0000.00817.06
8.0.60.0030.00517.21
8.0.50.0040.00417.21
8.0.30.0080.01217.33
8.0.20.0100.00917.41
8.0.10.0020.00517.22
8.0.00.0090.01016.92
7.4.330.0060.00015.55
7.4.320.0030.00516.86
7.4.300.0030.00616.79
7.4.290.0040.00716.93
7.4.280.0040.00416.70
7.4.270.0030.00316.82
7.4.260.0000.00816.90
7.4.250.0050.00316.77
7.4.240.0000.00716.69
7.4.230.0000.00716.71
7.4.220.0080.00016.91
7.4.210.0050.01016.94
7.4.200.0000.00716.64
7.4.160.0110.00816.78
7.4.140.0110.00717.86
7.4.130.0040.01516.74
7.4.120.0100.00816.80
7.4.110.0120.00616.66
7.4.100.0120.00616.77
7.4.90.0180.00016.72
7.4.80.0000.01919.39
7.4.70.0130.01016.76
7.4.60.0090.01217.05
7.4.50.0070.00716.71
7.4.40.0110.00616.84
7.4.10.0050.01415.10
7.4.00.0060.01015.20
7.3.330.0060.00013.35
7.3.320.0000.00613.38
7.3.310.0030.00616.53
7.3.300.0000.00716.59
7.3.290.0030.00316.57
7.3.280.0060.00916.51
7.3.260.0130.00916.67
7.3.240.0100.00916.77
7.3.230.0140.00316.88
7.3.210.0100.00716.80
7.3.200.0130.00616.63
7.3.190.0060.01216.55
7.3.180.0080.00816.63
7.3.170.0090.00916.65
7.3.160.0120.00616.73
7.3.130.0060.01415.02
7.3.120.0070.01115.15
7.3.110.0060.01015.20
7.3.100.0060.00915.10
7.3.90.0090.00815.21
7.3.80.0020.01215.01
7.3.70.0070.01014.97
7.3.60.0090.00815.02
7.3.50.0050.01014.96
7.3.40.0070.00714.86
7.3.30.0040.01115.05
7.3.20.0090.00517.07
7.3.10.0090.00716.96
7.3.00.0080.00616.90
7.2.330.0150.00416.84
7.2.320.0090.01216.80
7.2.310.0090.00916.85
7.2.300.0130.01116.84
7.2.290.0130.00316.98
7.2.260.0080.01115.27
7.2.250.0080.01015.13
7.2.240.0070.00715.28
7.2.230.0060.01015.33
7.2.220.0080.00815.28
7.2.210.0070.00715.30
7.2.200.0080.00915.29
7.2.190.0050.01115.35
7.2.180.0030.01315.03
7.2.170.0050.01115.21
7.2.160.0030.01015.30
7.2.150.0060.01117.24
7.2.140.0080.00517.14
7.2.130.0030.01117.04
7.2.120.0070.00817.16
7.2.110.0070.00916.94
7.2.100.0040.00916.89
7.2.90.0090.00917.10
7.2.80.0030.01217.11
7.2.70.0080.01217.26
7.2.60.0050.00917.21
7.2.50.0050.00817.15
7.2.40.0040.00917.04
7.2.30.0050.01017.25
7.2.20.0080.00817.06
7.2.10.0110.00417.02
7.2.00.0030.01017.20
7.1.330.0050.01015.85
7.1.320.0040.01016.00
7.1.310.0090.00516.05
7.1.300.0050.01116.12
7.1.290.0050.00715.97
7.1.280.0070.00916.14
7.1.270.0070.00715.88
7.1.260.0030.01016.03
7.1.250.0090.00416.10
7.1.240.0090.00515.88
7.1.230.0060.00816.09
7.1.220.0070.00515.92
7.1.210.0070.00815.90
7.1.200.0060.00815.86
7.1.190.0030.01116.03
7.1.180.0030.01216.06
7.1.170.0070.00715.86
7.1.160.0050.00815.83
7.1.150.0030.01115.94
7.1.140.0020.01115.96
7.1.130.0060.00615.91
7.1.120.0030.00915.97
7.1.110.0030.00916.05
7.1.100.0090.00416.13
7.1.90.0070.00616.01
7.1.80.0020.01215.93
7.1.70.0070.00715.86
7.1.60.0040.00915.99
7.1.50.0050.01215.90
7.1.40.0070.00716.00
7.1.30.0070.00715.87
7.1.20.0020.00815.91
7.1.10.0060.00515.99
7.1.00.0020.01115.88
7.0.330.0100.00315.53
7.0.320.0050.00815.37
7.0.310.0080.00715.66
7.0.300.0070.00415.58
7.0.290.0040.00715.48
7.0.280.0050.00815.45
7.0.270.0070.00615.52
7.0.260.0120.00215.44
7.0.250.0050.00915.44
7.0.240.0050.01115.72
7.0.230.0030.00815.42
7.0.220.0020.01015.55
7.0.210.0040.00615.48
7.0.200.0060.00715.66
7.0.190.0090.00715.45
7.0.180.0060.00515.83
7.0.170.0070.00715.74
7.0.160.0100.00315.65
7.0.150.0040.01115.72
7.0.140.0030.01215.46
7.0.130.0070.00715.62
7.0.120.0020.00915.44
7.0.110.0050.00915.46
7.0.100.0040.01115.64
7.0.90.0060.00815.54
7.0.80.0050.00515.62
7.0.70.0030.00915.76
7.0.60.0070.00715.75
7.0.50.0030.00715.84
7.0.40.0020.01113.81
7.0.30.0060.00913.75
7.0.20.0050.00713.81
7.0.10.0080.00413.73
7.0.00.0070.00213.61
5.6.400.0080.00514.49
5.6.390.0040.01314.57
5.6.380.0050.00814.54
5.6.370.0110.00314.44
5.6.360.0070.00614.63
5.6.350.0030.01214.52
5.6.340.0000.01414.53
5.6.330.0050.00914.46
5.6.320.0050.00914.81
5.6.310.0040.00914.46
5.6.300.0040.01114.21
5.6.290.0070.00614.39
5.6.280.0030.01014.56
5.6.270.0050.00914.68
5.6.260.0100.00414.76
5.6.250.0020.01214.62
5.6.240.0060.00614.61
5.6.230.0030.01414.49
5.6.220.0090.00614.60
5.6.210.0070.01014.56
5.6.200.0030.00914.67
5.6.190.0030.01114.63
5.6.180.0030.00614.51
5.6.170.0030.01214.44
5.6.160.0080.00614.46
5.6.150.0060.00614.56
5.6.140.0120.00414.78
5.6.130.0060.00914.54
5.6.120.0050.00814.64
5.6.110.0030.01214.50
5.6.100.0050.00714.32
5.6.90.0030.01014.60
5.6.80.0030.01014.53
5.6.70.0070.00414.46
5.6.60.0070.00714.53
5.6.50.0060.00814.42
5.6.40.0020.01214.55
5.6.30.0070.00914.35
5.6.20.0060.00914.33
5.6.10.0070.00614.60
5.6.00.0040.00914.44

preferences:
67.7 ms | 400 KiB | 5 Q