3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '182507 { 6661(T) }, 182514 { 5551(T), 5553(T), 5552(T) }'; preg_match_all('/(\d+)\s*{\s*([^}]+)\s*}/', $string, $matches); $output = array(); foreach ($matches[1] as $key => $value) { $output[$key] = array_merge(array($value), preg_split('/\s*,\s*/', $matches[2][$key])); } print_r($output);

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.5.00.0150.00620.02
8.4.150.0010.00114.05
8.4.140.0140.00717.90
8.4.130.0080.01318.09
8.4.120.0120.00822.63
8.4.110.0130.00718.72
8.4.100.0090.01018.68
8.4.90.0110.01018.57
8.4.80.0100.01017.94
8.4.70.0060.00318.22
8.4.60.0180.00418.98
8.4.50.0140.00620.36
8.4.40.0100.01019.57
8.4.30.0040.00420.48
8.4.20.0100.01017.98
8.4.10.0090.00019.75
8.3.280.0120.01020.52
8.3.270.0130.00616.76
8.3.260.0160.00516.45
8.3.250.0120.00717.24
8.3.240.0110.00816.52
8.3.230.0120.00816.40
8.3.220.0050.00517.23
8.3.210.0120.00716.85
8.3.200.0030.00616.72
8.3.190.0050.00419.14
8.3.180.0110.00717.23
8.3.170.0150.00420.59
8.3.160.0160.00316.63
8.3.150.0060.01317.00
8.3.140.0030.00716.62
8.3.130.0070.00318.31
8.3.120.0040.00420.65
8.3.110.0100.00720.94
8.3.100.0070.01116.64
8.3.90.0120.00326.77
8.3.80.0060.00319.36
8.3.70.0070.01118.43
8.3.60.0130.00618.27
8.3.50.0070.00623.65
8.3.40.0040.01518.84
8.3.30.0120.00918.92
8.3.20.0040.00420.82
8.3.10.0030.00521.90
8.3.00.0040.00421.90
8.2.290.0060.00320.48
8.2.280.0080.01216.61
8.2.270.0050.00317.20
8.2.260.0120.00318.65
8.2.250.0080.00018.55
8.2.240.0060.00319.16
8.2.230.0090.00322.58
8.2.220.0000.00824.06
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0120.00618.48
8.2.180.0110.01118.53
8.2.170.0100.00622.96
8.2.160.0070.00722.43
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0040.00420.08
8.2.110.0060.00322.41
8.2.100.0090.00618.03
8.2.90.0000.00818.00
8.2.80.0040.00419.03
8.2.70.0030.00617.88
8.2.60.0100.00518.07
8.2.50.0040.00418.10
8.2.40.0000.00821.03
8.2.30.0040.00419.34
8.2.20.0060.00318.04
8.2.10.0070.00019.35
8.2.00.0030.00519.34
8.1.330.0120.00822.25
8.1.320.0120.01016.29
8.1.310.0080.00016.52
8.1.300.0060.00318.08
8.1.290.0090.00030.84
8.1.280.0160.00325.92
8.1.270.0040.00422.63
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0060.00322.16
8.1.230.0090.00317.89
8.1.220.0000.00817.78
8.1.210.0030.00518.77
8.1.200.0040.00417.38
8.1.190.0000.00817.48
8.1.180.0000.00818.10
8.1.170.0000.00818.79
8.1.160.0070.00018.95
8.1.150.0000.00718.70
8.1.140.0000.00820.83
8.1.130.0000.00721.95
8.1.120.0000.00817.61
8.1.110.0000.00917.64
8.1.100.0040.00417.61
8.1.90.0000.00817.64
8.1.80.0070.00017.57
8.1.70.0030.00517.61
8.1.60.0080.00317.62
8.1.50.0030.00517.70
8.1.40.0060.00317.56
8.1.30.0000.00817.68
8.1.20.0060.00317.70
8.1.10.0000.00817.66
8.1.00.0040.00417.67
8.0.300.0070.00018.93
8.0.290.0040.00416.88
8.0.280.0040.00418.43
8.0.270.0000.00718.21
8.0.260.0000.00620.06
8.0.250.0000.00717.02
8.0.240.0070.00317.16
8.0.230.0020.00517.11
8.0.220.0000.00717.06
8.0.210.0030.00316.93
8.0.200.0000.00717.12
8.0.190.0040.00417.00
8.0.180.0030.00517.04
8.0.170.0000.00917.10
8.0.160.0040.00416.97
8.0.150.0070.00016.95
8.0.140.0000.00716.91
8.0.130.0060.00013.43
8.0.120.0000.00817.00
8.0.110.0000.00716.86
8.0.100.0090.00017.00
8.0.90.0030.00617.08
8.0.80.0050.01017.01
8.0.70.0050.00216.95
8.0.60.0050.00216.93
8.0.50.0080.00017.06
8.0.30.0140.00317.19
8.0.20.0140.00716.96
8.0.10.0000.00717.19
8.0.00.0090.00916.86
7.4.330.0000.00616.73
7.4.320.0030.00316.81
7.4.300.0000.00616.71
7.4.290.0040.00416.86
7.4.280.0000.00816.70
7.4.270.0000.01016.75
7.4.260.0000.00513.47
7.4.250.0080.00016.70
7.4.240.0000.00716.77
7.4.230.0080.00016.75
7.4.220.0020.00516.71
7.4.210.0080.00916.77
7.4.200.0040.00416.64
7.4.130.0150.00616.73
7.4.120.0140.00316.73
7.4.110.0140.00416.61
7.4.100.0140.00316.68
7.4.90.0180.00016.80
7.4.80.0070.01019.39
7.4.70.0160.00016.66
7.4.60.0070.01016.64
7.4.50.0070.01016.50
7.4.40.0060.01116.79
7.4.10.0090.00715.07
7.4.00.0000.01414.81
7.3.330.0030.00316.32
7.3.320.0000.00613.21
7.3.310.0000.00716.55
7.3.300.0000.00716.51
7.3.290.0070.01016.54
7.3.260.0090.00916.86
7.3.240.0090.00816.63
7.3.230.0100.00716.83
7.3.210.0100.00616.49
7.3.200.0110.00816.89
7.3.190.0030.01416.54
7.3.180.0030.01316.55
7.3.170.0100.00616.77
7.3.160.0150.00916.55
7.3.130.0170.00015.21
7.3.120.0090.00414.86
7.3.110.0130.00014.92
7.3.100.0100.00614.93
7.3.90.0090.00614.86
7.3.80.0030.01114.66
7.3.70.0120.00215.05
7.3.60.0090.00915.03
7.3.50.0070.01014.88
7.3.40.0100.00314.75
7.3.30.0030.01014.96
7.3.20.0120.00414.96
7.3.10.0070.00714.96
7.3.00.0050.00914.84
7.2.330.0100.00716.95
7.2.320.0120.00916.73
7.2.310.0120.00916.89
7.2.300.0090.00916.91
7.2.290.0070.01016.96
7.2.260.0140.00715.19
7.2.250.0000.01415.33
7.2.240.0130.00615.16
7.2.230.0030.01215.14
7.2.220.0000.01815.01
7.2.210.0030.01415.18
7.2.200.0120.00315.29
7.2.190.0070.00715.09
7.2.180.0030.01114.99
7.2.170.0060.00914.89
7.2.160.0080.00815.21
7.2.150.0040.00915.20
7.2.140.0040.01115.25
7.2.130.0120.00415.24
7.2.120.0030.01215.29
7.2.110.0130.00315.22
7.2.100.0060.00915.09
7.2.90.0110.00815.15
7.2.80.0080.00914.90
7.2.70.0080.01114.86
7.2.60.0060.01215.23
7.2.50.0040.01215.15
7.2.40.0040.01414.88
7.2.30.0090.00614.57
7.2.20.0090.00915.25
7.2.10.0080.01115.13
7.2.00.0110.00415.29

preferences:
163.27 ms | 403 KiB | 5 Q