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.0090.00618.80
8.3.50.0110.00416.68
8.3.40.0040.01119.03
8.3.30.0080.00819.13
8.3.20.0000.00819.29
8.3.10.0080.00021.74
8.3.00.0000.00820.68
8.2.180.0110.00716.75
8.2.170.0160.00322.96
8.2.160.0060.01222.25
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00318.09
8.2.120.0000.00826.35
8.2.110.0060.00322.32
8.2.100.0080.00418.13
8.2.90.0000.00917.88
8.2.80.0040.00418.00
8.2.70.0000.00817.93
8.2.60.0000.00818.21
8.2.50.0000.00818.10
8.2.40.0000.00819.38
8.2.30.0000.00719.52
8.2.20.0040.00418.30
8.2.10.0040.00418.37
8.2.00.0000.00818.27
8.1.280.0090.00625.92
8.1.270.0040.00422.19
8.1.260.0030.00526.35
8.1.250.0050.00228.09
8.1.240.0040.00423.93
8.1.230.0040.00822.20
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0030.00717.61
8.1.190.0040.00417.48
8.1.180.0030.00618.10
8.1.170.0040.00418.68
8.1.160.0040.00419.07
8.1.150.0000.00819.05
8.1.140.0000.00722.10
8.1.130.0040.00420.12
8.1.120.0040.00417.65
8.1.110.0050.00217.62
8.1.100.0000.00717.60
8.1.90.0050.00217.52
8.1.80.0000.00717.52
8.1.70.0060.00317.72
8.1.60.0000.00917.79
8.1.50.0030.00617.60
8.1.40.0000.00817.71
8.1.30.0040.00417.83
8.1.20.0050.00717.87
8.1.10.0000.00817.76
8.1.00.0050.00317.78
8.0.300.0050.00318.77
8.0.290.0050.00317.00
8.0.280.0040.00418.44
8.0.270.0040.00417.32
8.0.260.0070.00018.51
8.0.250.0000.00717.18
8.0.240.0040.00417.16
8.0.230.0080.00017.11
8.0.220.0040.00417.23
8.0.210.0050.00217.19
8.0.200.0000.00617.22
8.0.190.0000.00817.11
8.0.180.0080.00017.16
8.0.170.0030.00617.02
8.0.160.0050.00317.15
8.0.150.0070.00017.08
8.0.140.0030.00517.11
8.0.130.0030.00313.54
8.0.120.0030.00517.22
8.0.110.0000.00717.14
8.0.100.0040.00417.00
8.0.90.0040.00417.16
8.0.80.0050.01317.13
8.0.70.0040.00417.30
8.0.60.0040.00417.03
8.0.50.0030.00517.22
8.0.30.0100.00817.43
8.0.20.0130.00617.40
8.0.10.0050.00217.32
8.0.00.0090.01017.07
7.4.330.0000.00515.55
7.4.320.0050.00316.92
7.4.300.0060.00016.76
7.4.290.0060.00316.90
7.4.280.0050.00216.79
7.4.270.0070.00016.88
7.4.260.0000.00816.88
7.4.250.0000.00816.79
7.4.240.0040.00416.89
7.4.230.0030.00317.00
7.4.220.0060.00316.79
7.4.210.0050.01316.78
7.4.200.0040.00417.01
7.4.160.0050.01216.81
7.4.140.0080.01217.86
7.4.130.0090.00916.87
7.4.120.0080.01016.77
7.4.110.0040.01216.83
7.4.100.0070.01016.91
7.4.90.0160.00316.54
7.4.80.0090.00919.39
7.4.70.0130.01016.81
7.4.60.0090.00916.82
7.4.50.0090.00316.91
7.4.40.0080.00816.55
7.4.00.0050.01315.30
7.3.330.0030.00313.39
7.3.320.0030.00313.42
7.3.310.0040.00416.39
7.3.300.0070.00016.43
7.3.290.0070.00016.48
7.3.280.0100.01116.54
7.3.260.0080.01216.74
7.3.240.0070.01316.64
7.3.230.0120.00616.57
7.3.210.0090.00616.70
7.3.200.0070.01116.91
7.3.190.0070.01016.55
7.3.180.0030.01316.80
7.3.170.0040.01716.66
7.3.160.0140.00816.66
7.3.120.0080.00715.13
7.3.110.0120.00714.99
7.3.100.0030.00815.09
7.3.90.0080.00514.97
7.3.80.0080.00815.02
7.3.70.0060.00514.92
7.3.60.0070.00915.02
7.3.50.0080.00514.92
7.3.40.0080.00814.89
7.3.30.0040.00815.14
7.3.20.0030.01116.74
7.3.10.0060.00816.85
7.3.00.0080.00616.91
7.2.330.0160.00916.75
7.2.320.0140.00516.86
7.2.310.0060.01016.80
7.2.300.0130.01016.78
7.2.290.0090.01216.95
7.2.250.0020.01415.37
7.2.240.0060.01115.03
7.2.230.0020.01015.44
7.2.220.0030.00715.29
7.2.210.0100.00615.26
7.2.200.0120.00615.47
7.2.190.0060.00815.16
7.2.180.0050.00915.28
7.2.170.0060.00715.44
7.2.130.0070.00617.10
7.2.120.0050.00717.04
7.2.110.0060.00817.11
7.2.100.0070.00916.99
7.2.90.0040.01117.09
7.2.80.0050.00916.99
7.2.70.0090.00517.00
7.2.60.0060.00917.00
7.2.50.0060.00917.11
7.2.40.0070.00917.11
7.2.30.0070.00717.12
7.2.20.0070.00817.06
7.2.10.0070.00816.90
7.2.00.0050.01017.06
7.1.330.0040.00916.14
7.1.320.0040.00916.10
7.1.310.0050.00516.02
7.1.300.0030.01015.97
7.1.290.0070.00516.07
7.1.280.0110.00516.04
7.1.270.0030.01115.83
7.1.260.0040.00715.97
7.1.250.0040.01015.88
7.1.230.0060.00915.61
7.1.220.0130.00015.89
7.1.210.0120.00015.86
7.1.200.0110.00515.90
7.1.190.0060.00915.97
7.1.180.0060.01015.92
7.1.170.0090.00615.84
7.1.160.0030.01216.04
7.1.150.0070.00715.92
7.1.140.0040.01215.73
7.1.130.0060.00616.01
7.1.120.0100.00715.85
7.1.110.0100.00316.07
7.1.100.0080.00416.10
7.1.90.0060.00615.89
7.1.80.0060.00616.11
7.1.70.0040.01116.05
7.1.60.0030.01015.92
7.1.50.0060.00616.01
7.1.40.0060.00615.86
7.1.30.0090.00615.97
7.1.20.0060.00615.93
7.1.10.0060.01115.82
7.1.00.0030.01016.08
5.6.380.0110.00814.32

preferences:
64.12 ms | 401 KiB | 5 Q