3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ' John David James (DEM) . . . . . . 7,808 10.51 Marvin D. Scott (DEM) . . . . . . 6,548 9.55 Maria "Mary" Williams (DEM) . . . . 4,551 8.58 Dwayne R. Johnson. . . . . . . . 4,322 8.22 WRITE-IN. . . . . . . . . . . 188 .29'; preg_match_all("/\s*(.*?)\s*\. \..*?([\d,]+)/", $str, $matches); foreach($matches[1] as $key => $name){ $new[] = $name . "," . str_replace(",", "", $matches[2][$key]); } Var_dump($new);

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.70.0040.01418.56
8.3.60.0080.00818.56
8.3.50.0140.00718.25
8.3.40.0040.01219.01
8.3.30.0030.01618.88
8.3.20.0040.00419.32
8.3.10.0020.00521.89
8.3.00.0040.00420.83
8.2.190.0070.01116.91
8.2.180.0120.00618.66
8.2.170.0040.01122.96
8.2.160.0110.00720.53
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00419.95
8.2.120.0070.00026.35
8.2.110.0060.00320.54
8.2.100.0030.00917.84
8.2.90.0030.00620.42
8.2.80.0000.00919.79
8.2.70.0040.00417.77
8.2.60.0060.00318.16
8.2.50.0000.00818.10
8.2.40.0040.00422.30
8.2.30.0000.00719.36
8.2.20.0030.00618.21
8.2.10.0040.00418.03
8.2.00.0000.00817.98
8.1.280.0160.00425.92
8.1.270.0000.00723.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00923.86
8.1.230.0070.00423.89
8.1.220.0080.00017.79
8.1.210.0040.00418.96
8.1.200.0040.00417.47
8.1.190.0030.00617.53
8.1.180.0090.00018.10
8.1.170.0040.00418.70
8.1.160.0040.00419.02
8.1.150.0040.00418.96
8.1.140.0070.00022.15
8.1.130.0070.00020.17
8.1.120.0070.00017.63
8.1.110.0030.00617.63
8.1.100.0030.00617.59
8.1.90.0000.00817.68
8.1.80.0000.00817.54
8.1.70.0050.00217.67
8.1.60.0030.00517.57
8.1.50.0060.00317.68
8.1.40.0060.00317.57
8.1.30.0000.00717.72
8.1.20.0040.00417.74
8.1.10.0040.00417.59
8.1.00.0040.00417.68
8.0.300.0020.00519.91
8.0.290.0080.00016.88
8.0.280.0000.00718.39
8.0.270.0000.00816.88
8.0.260.0000.00618.50
8.0.250.0030.00317.09
8.0.240.0050.00317.15
8.0.230.0050.00217.10
8.0.220.0070.00017.08
8.0.210.0000.00716.99
8.0.200.0040.00417.12
8.0.190.0000.00717.18
8.0.180.0050.00317.13
8.0.170.0050.00317.09
8.0.160.0070.00517.08
8.0.150.0040.00416.91
8.0.140.0070.00017.04
8.0.130.0050.00013.52
8.0.120.0070.00017.08
8.0.110.0040.00417.04
8.0.100.0000.00717.02
8.0.90.0000.01017.03
8.0.80.0110.00817.07
8.0.70.0090.00017.08
8.0.60.0040.00416.97
8.0.50.0030.00616.84
8.0.30.0100.00817.30
8.0.20.0110.00817.50
8.0.10.0040.00417.20
8.0.00.0070.01017.11
7.4.330.0000.00515.55
7.4.320.0060.00016.77
7.4.300.0060.00016.71
7.4.290.0030.00316.79
7.4.280.0030.00616.85
7.4.270.0000.00916.79
7.4.260.0000.00816.60
7.4.250.0040.00416.83
7.4.240.0070.00016.82
7.4.230.0040.00416.92
7.4.220.0040.00416.69
7.4.210.0070.00716.74
7.4.200.0000.00716.47
7.4.160.0090.00716.66
7.4.140.0070.01217.86
7.4.130.0090.00916.55
7.4.120.0140.00616.71
7.4.110.0120.00916.59
7.4.100.0070.01116.72
7.4.90.0110.00916.61
7.4.80.0090.00919.39
7.4.70.0100.00916.71
7.4.60.0120.00616.71
7.4.50.0070.01116.51
7.4.40.0140.00716.54
7.4.00.0070.01015.15
7.3.330.0020.00213.23
7.3.320.0000.00613.31
7.3.310.0000.00916.55
7.3.300.0070.00016.52
7.3.290.0040.00416.41
7.3.280.0180.00216.39
7.3.260.0130.00516.53
7.3.240.0110.00716.55
7.3.230.0120.00616.61
7.3.210.0120.00616.75
7.3.200.0060.01216.72
7.3.190.0130.00716.50
7.3.180.0060.01216.66
7.3.170.0160.00616.66
7.3.160.0080.00816.64
7.3.10.0040.01117.08
7.3.00.0060.00316.92
7.2.330.0140.00716.84
7.2.320.0060.01216.90
7.2.310.0090.01216.73
7.2.300.0100.01016.65
7.2.290.0090.01116.76
7.2.130.0070.00717.04
7.2.120.0550.00915.88
7.2.110.0660.01015.64
7.2.100.0640.01015.78
7.2.90.0380.00716.02
7.2.80.0670.01016.15
7.2.70.0750.01316.27
7.2.60.0700.01016.10
7.2.50.0360.01216.01
7.2.40.0420.00916.17
7.2.30.0350.01315.97
7.2.20.0420.00916.02
7.2.10.0650.01015.88
7.2.00.0770.00716.05
7.1.250.0090.00315.79
7.1.240.0780.00414.07
7.1.230.1120.00313.97
7.1.220.0710.00613.72
7.1.210.1380.01014.25
7.1.200.0690.01314.06
7.1.190.0770.00713.93
7.1.180.0790.00314.11
7.1.170.0700.01013.67
7.1.160.0830.01313.88
7.1.150.1570.01013.81
7.1.140.1510.01014.07
7.1.130.0750.00714.07
7.1.120.0700.00613.94
7.1.110.0720.01314.11
7.1.100.0740.00413.90
7.1.90.1440.00313.82
7.1.80.1000.00014.33
7.1.70.1050.00714.01
7.1.60.0940.01014.22
7.1.50.1800.00713.86
7.1.40.1560.00714.15
7.1.30.0820.01013.91
7.1.20.1200.00314.04
7.1.10.0730.00313.88
7.1.00.0930.00714.11
5.6.380.0110.00814.13

preferences:
43.73 ms | 401 KiB | 5 Q