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'];} if(!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.40.0150.00019.38
8.3.30.0070.00719.22
8.3.20.0040.00419.23
8.3.10.0040.00421.90
8.3.00.0040.00420.61
8.2.170.0130.00722.96
8.2.160.0060.00922.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00518.01
8.2.120.0040.00426.35
8.2.110.0000.00921.01
8.2.100.0070.00718.10
8.2.90.0050.00317.88
8.2.80.0040.00418.00
8.2.70.0080.00017.93
8.2.60.0050.00318.34
8.2.50.0040.00418.10
8.2.40.0070.00419.28
8.2.30.0000.00919.43
8.2.20.0000.00718.31
8.2.10.0050.00318.18
8.2.00.0060.00318.33
8.1.270.0080.00021.97
8.1.260.0030.00526.35
8.1.250.0050.00228.09
8.1.240.0070.00322.62
8.1.230.0080.00417.82
8.1.220.0080.00017.89
8.1.210.0030.00618.77
8.1.200.0030.00717.47
8.1.190.0040.00417.47
8.1.180.0040.00418.10
8.1.170.0040.00418.76
8.1.160.0040.00418.99
8.1.150.0040.00419.06
8.1.140.0000.00722.14
8.1.130.0070.00020.13
8.1.120.0080.00317.63
8.1.110.0000.00717.60
8.1.100.0050.00517.55
8.1.90.0070.00417.54
8.1.80.0080.00017.54
8.1.70.0030.00717.68
8.1.60.0000.00817.65
8.1.50.0050.00317.57
8.1.40.0030.00617.68
8.1.30.0050.00317.80
8.1.20.0030.00717.79
8.1.10.0040.00417.78
8.1.00.0030.00617.69
8.0.300.0000.00718.77
8.0.290.0000.01117.13
8.0.280.0030.00318.53
8.0.270.0040.00417.01
8.0.260.0030.00318.54
8.0.250.0030.00317.18
8.0.240.0070.00017.20
8.0.230.0030.00317.17
8.0.220.0070.00017.06
8.0.210.0000.00717.10
8.0.200.0000.00817.07
8.0.190.0040.00417.17
8.0.180.0060.00317.05
8.0.170.0040.00417.07
8.0.160.0050.00317.04
8.0.150.0000.00717.02
8.0.140.0040.00417.05
8.0.130.0050.00013.55
8.0.120.0080.00017.04
8.0.110.0040.00417.24
8.0.100.0000.00717.09
8.0.90.0000.00717.23
8.0.80.0110.01017.10
8.0.70.0070.00017.05
8.0.60.0050.00217.21
8.0.50.0000.00717.22
8.0.30.0090.00717.44
8.0.20.0080.01217.50
8.0.10.0030.00617.18
8.0.00.0170.00517.24
7.4.330.0000.00715.55
7.4.320.0000.00716.80
7.4.300.0020.00516.71
7.4.290.0030.00616.80
7.4.280.0000.00816.86
7.4.270.0000.00716.82
7.4.260.0000.00716.78
7.4.250.0040.00416.88
7.4.240.0040.00416.74
7.4.230.0040.00316.98
7.4.220.0040.00416.93
7.4.210.0070.01116.86
7.4.200.0000.00816.79
7.4.160.0090.00816.85
7.4.140.0090.01017.86
7.4.130.0070.01016.92
7.4.120.0110.00916.83
7.4.110.0110.00716.60
7.4.100.0100.00716.72
7.4.90.0180.00716.78
7.4.80.0060.01119.39
7.4.70.0160.00316.77
7.4.60.0030.01416.86
7.4.50.0090.00616.75
7.4.40.0030.01416.78
7.4.00.0100.00715.21
7.3.330.0050.00013.56
7.3.320.0000.00613.28
7.3.310.0000.00916.43
7.3.300.0030.00316.57
7.3.290.0000.00716.56
7.3.280.0080.00916.57
7.3.260.0090.00916.67
7.3.240.0090.01116.60
7.3.230.0060.01216.81
7.3.210.0170.00016.86
7.3.200.0140.01016.63
7.3.190.0120.00616.75
7.3.180.0140.00316.46
7.3.170.0060.01116.68
7.3.160.0040.01716.85
7.2.330.0100.01416.81
7.2.320.0060.01816.84
7.2.310.0130.00316.96
7.2.300.0040.01716.67
7.2.290.0120.00416.79
7.2.110.0160.00915.09
7.2.100.0650.00415.02
7.2.90.0520.00814.91
7.2.80.0180.00815.02
7.2.70.0160.00915.24
7.2.60.0190.00915.32
7.2.50.0210.00715.30
7.2.40.0250.00515.14
7.2.30.0210.01015.24
7.2.20.0230.00615.15
7.2.10.0230.00615.28
7.2.00.0320.00915.12
7.1.230.0280.00714.14
7.1.220.0220.00614.02
7.1.210.0240.00514.11
7.1.200.0200.00614.18
7.1.190.0220.00414.05
7.1.180.0210.00614.06
7.1.170.0270.00614.22
7.1.160.0180.00913.98
7.1.150.0210.00714.14
7.1.140.0230.01013.90
7.1.130.0190.00713.99
7.1.120.0220.00713.96
7.1.110.0200.01014.11
7.1.100.0260.00514.02
7.1.90.0200.01014.04
7.1.80.0560.00414.10
7.1.70.0160.01014.10
7.1.60.0200.00614.09
7.1.50.0240.00514.14
7.1.40.0470.00714.07
7.1.30.0200.00714.03
7.1.20.0210.00914.17
7.1.10.0200.00513.93
7.1.00.0210.00714.08
5.6.380.0120.00514.59

preferences:
37.58 ms | 400 KiB | 5 Q