3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrayOfString = array( 'customer service[-3] technical support[-3]', 'picture quality[+2]feature[+2]', 'smell[-2]', 'player[+2]', 'player[-3][u]', 'dvd player[-2]', 'player[+2][p]', 'format[+2][u]progressive scan[-2]' ); preg_match_all("/([\w ]+[^[]]*)\[([+-]\d*?)\]/", implode(",", $arrayOfString) , $matches); print_r(array_combine(array_filter($matches[1], 'trim'), $matches[2]));

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.0140.00716.58
8.3.60.0120.00618.56
8.3.50.0090.00822.11
8.3.40.0070.01418.92
8.3.30.0100.00320.43
8.3.20.0040.00420.41
8.3.10.0040.00422.03
8.3.00.0080.00022.41
8.2.180.0140.00716.75
8.2.170.0170.00322.96
8.2.160.0070.00722.25
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0080.00020.08
8.2.110.0050.00520.45
8.2.100.0090.00318.03
8.2.90.0040.00419.21
8.2.80.0030.00519.38
8.2.70.0050.00317.61
8.2.60.0000.00917.93
8.2.50.0060.00318.07
8.2.40.0080.00018.34
8.2.30.0030.00618.04
8.2.20.0050.00317.74
8.2.10.0040.00417.86
8.2.00.0070.00317.78
8.1.280.0110.00425.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.84
8.1.230.0060.00619.03
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0080.00317.61
8.1.190.0000.00817.65
8.1.180.0000.00819.13
8.1.170.0050.00318.77
8.1.160.0050.00322.13
8.1.150.0040.00418.81
8.1.140.0040.00417.60
8.1.130.0000.00717.88
8.1.120.0050.00217.47
8.1.110.0070.00017.49
8.1.100.0040.00417.57
8.1.90.0090.00017.54
8.1.80.0070.00017.46
8.1.70.0000.00717.52
8.1.60.0000.00817.59
8.1.50.0040.00417.52
8.1.40.0000.00817.50
8.1.30.0030.00517.65
8.1.20.0050.00317.78
8.1.10.0000.00717.66
8.1.00.0000.00817.73
8.0.300.0070.00018.77
8.0.290.0080.00017.15
8.0.280.0000.00718.41
8.0.270.0070.00017.08
8.0.260.0030.00316.81
8.0.250.0040.00417.06
8.0.240.0080.00017.02
8.0.230.0030.00316.93
8.0.220.0040.00416.91
8.0.210.0040.00416.99
8.0.200.0030.00316.91
8.0.190.0000.00817.07
8.0.180.0020.00517.04
8.0.170.0030.00516.97
8.0.160.0000.00816.93
8.0.150.0040.00416.92
8.0.140.0040.00417.01
8.0.130.0030.00313.41
8.0.120.0030.00616.93
8.0.110.0020.00516.96
8.0.100.0030.00516.87
8.0.90.0000.00717.05
8.0.80.0140.00316.98
8.0.70.0000.00717.07
8.0.60.0000.00817.08
8.0.50.0040.00417.11
8.0.30.0100.01117.17
8.0.20.0140.00717.40
8.0.10.0000.00817.04
8.0.00.0090.01116.97
7.4.330.0030.00315.12
7.4.320.0040.00416.73
7.4.300.0060.00016.73
7.4.290.0070.00016.76
7.4.280.0030.00316.64
7.4.270.0030.00316.72
7.4.260.0050.00013.55
7.4.250.0030.00316.85
7.4.240.0020.00516.81
7.4.230.0000.00716.82
7.4.220.0000.02216.82
7.4.210.0090.00716.67
7.4.200.0070.00016.61
7.4.190.0000.01116.66
7.4.160.0070.01016.70
7.4.150.0120.00617.40
7.4.140.0110.01117.86
7.4.130.0120.00516.70
7.4.120.0100.00916.67
7.4.110.0120.00916.80
7.4.100.0130.01316.71
7.4.90.0080.01116.63
7.4.80.0030.01919.39
7.4.70.0040.01216.65
7.4.60.0170.00016.73
7.4.50.0040.00416.67
7.4.40.0130.00422.77
7.4.30.0130.00616.61
7.4.00.0000.01615.29
7.3.330.0000.00513.10
7.3.320.0000.00513.19
7.3.310.0040.00416.45
7.3.300.0070.00016.33
7.3.290.0030.01416.36
7.3.280.0060.00916.40
7.3.270.0140.00417.40
7.3.260.0170.00716.39
7.3.250.0090.00716.46
7.3.240.0140.00916.82
7.3.230.0090.00616.42
7.3.210.0130.01016.40
7.3.200.0120.00619.39
7.3.190.0110.01116.47
7.3.180.0060.00916.62
7.3.170.0060.00916.36
7.3.160.0090.00616.46
7.3.120.0110.00314.79
7.3.10.0100.00316.66
7.3.00.0070.00416.73
7.2.330.0070.01016.73
7.2.320.0090.01416.56
7.2.310.0060.01516.72
7.2.300.0080.00816.57
7.2.290.0130.00316.57
7.2.130.0060.00316.95
7.2.120.0040.00817.17
7.2.110.0070.00716.86
7.2.100.0070.00317.06
7.2.90.0100.00317.12
7.2.80.0100.00317.10
7.2.70.0000.01816.99
7.2.60.0060.00716.86
7.2.50.0110.00416.87
7.2.40.0120.00317.02
7.2.30.0050.01016.76
7.2.20.0150.00816.77
7.2.10.0030.00916.98
7.2.00.0030.01118.28
7.1.250.0000.01015.72
7.1.200.0030.01016.05
7.1.100.0070.01118.03
7.1.70.0000.00817.08
7.1.60.0070.01719.43
7.1.50.0090.00316.90
7.1.00.0070.03022.50
7.0.200.0030.00716.77
7.0.140.0030.07322.04
7.0.60.0130.07319.91
7.0.50.0000.04317.94
7.0.40.0070.08020.21
7.0.30.0300.05020.22
7.0.20.0300.07020.19
7.0.10.0170.06720.31
7.0.00.0070.08020.13
5.6.280.0130.06020.91
5.6.210.0130.04720.50
5.6.200.0070.03718.19
5.6.190.0070.05720.60
5.6.180.0170.04320.64
5.6.170.0370.06020.41
5.6.160.0070.05720.52
5.6.150.0130.04018.12
5.6.140.0070.05018.07
5.6.130.0170.08018.22
5.6.120.0070.04320.98
5.6.110.0030.04720.96
5.6.100.0130.07021.11
5.6.90.0100.06020.98
5.6.80.0070.07720.38
5.6.70.0300.07020.50
5.5.350.0030.07720.36
5.5.340.0000.08317.96
5.5.330.0130.04020.13
5.5.320.0270.07320.50
5.5.310.0230.04020.20
5.5.300.0000.08717.96
5.5.290.0070.08317.88
5.5.280.0130.07720.97
5.5.270.0030.05020.86
5.5.260.0130.07020.95
5.5.250.0030.07320.68
5.5.240.0100.03320.34
5.4.450.0170.05319.60
5.4.440.0200.05719.49
5.4.430.0230.05319.42
5.4.420.0270.07019.13
5.4.410.0300.04319.39
5.4.400.0600.06018.70
5.4.390.0430.06018.50
5.4.380.0230.05318.70
5.4.370.0070.05718.56
5.4.360.0070.05718.69
5.4.350.0050.04211.98
5.4.340.0080.03511.98
5.4.320.0050.03712.46
5.4.310.0060.03712.45
5.4.300.0070.04212.46
5.4.290.0060.03812.45
5.4.280.0070.03812.35
5.4.270.0060.03612.35
5.4.260.0050.03812.35
5.4.250.0110.03412.35
5.4.240.0170.06718.89
5.4.230.0270.05018.69
5.4.220.0100.07318.70
5.4.210.0100.05018.93
5.4.200.0170.04318.69
5.4.190.0130.04318.87
5.4.180.0070.05318.86
5.4.170.0100.05018.87
5.4.160.0070.05318.97
5.4.150.0200.06718.91
5.4.140.0100.05016.26
5.4.130.0030.05316.51
5.4.120.0130.04016.48
5.4.110.0070.05016.29
5.4.100.0000.05716.42
5.4.90.0070.04716.21
5.4.80.0030.06016.50
5.4.70.0100.04316.18
5.4.60.0230.05716.47
5.4.50.0100.05716.33
5.4.40.0130.04316.55
5.4.30.0170.03716.43
5.4.20.0130.04316.46
5.4.10.0170.04716.46
5.4.00.0100.05315.74
5.3.290.0110.04012.80
5.3.280.0030.05314.54
5.3.270.0070.07014.45
5.3.260.0130.04714.61
5.3.250.0070.05014.48
5.3.240.0100.05714.52
5.3.230.0100.05314.64
5.3.220.0070.05014.35
5.3.210.0030.05714.59
5.3.200.0130.05314.59
5.3.190.0170.04014.43
5.3.180.0000.05714.46
5.3.170.0170.05014.44
5.3.160.0030.06714.59
5.3.150.0170.06314.56
5.3.140.0030.05314.65
5.3.130.0230.03714.60
5.3.120.0070.05714.56
5.3.110.0170.05014.55
5.3.100.0130.04314.19
5.3.90.0070.05014.03
5.3.80.0170.04014.17
5.3.70.0070.05713.88
5.3.60.0130.05714.02
5.3.50.0000.05713.96
5.3.40.0030.05013.95
5.3.30.0200.03314.00
5.3.20.0130.04713.58
5.3.10.0130.06013.43
5.3.00.0030.05013.58
5.2.170.0070.05010.98
5.2.160.0000.04311.06
5.2.150.0200.02710.91
5.2.140.0030.04310.91
5.2.130.0030.04011.02
5.2.120.0130.03711.13
5.2.110.0030.04711.11
5.2.100.0030.04011.13
5.2.90.0000.04311.02
5.2.80.0170.03010.93
5.2.70.0070.04311.19
5.2.60.0000.04310.96
5.2.50.0070.04711.11
5.2.40.0000.04310.77
5.2.30.0030.06310.90
5.2.20.0070.03710.96
5.2.10.0030.04311.02
5.2.00.0000.04310.73
5.1.60.0030.03310.03
5.1.50.0030.05010.15
5.1.40.0030.0339.87
5.1.30.0070.05010.34
5.1.20.0030.03710.12
5.1.10.0170.0239.98
5.1.00.0030.03710.11
5.0.50.0070.0308.46
5.0.40.0070.0238.30
5.0.30.0070.0478.27
5.0.20.0070.0378.25
5.0.10.0200.0238.16
5.0.00.0070.0438.36
4.4.90.0030.0307.32
4.4.80.0000.0237.32
4.4.70.0000.0237.32
4.4.60.0100.0177.32
4.4.50.0000.0237.32
4.4.40.0030.0307.32
4.4.30.0000.0237.32
4.4.20.0070.0177.32
4.4.10.0000.0237.32
4.4.00.0000.0377.32
4.3.110.0000.0237.32
4.3.100.0000.0237.32
4.3.90.0100.0237.32
4.3.80.0000.0507.31
4.3.70.0030.0207.31
4.3.60.0030.0277.31
4.3.50.0000.0237.31
4.3.40.0070.0277.31
4.3.30.0030.0207.31
4.3.20.0000.0237.31
4.3.10.0030.0207.31
4.3.00.0030.0207.00

preferences:
52.16 ms | 401 KiB | 5 Q