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($matches);

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.0130.00616.62
8.3.60.0080.01118.55
8.3.50.0100.01022.05
8.3.40.0120.00318.79
8.3.30.0030.01020.13
8.3.20.0040.00420.29
8.3.10.0050.00322.00
8.3.00.0050.00222.43
8.2.180.0070.00718.31
8.2.170.0000.01422.96
8.2.160.0100.00322.25
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0030.00719.77
8.2.110.0030.00622.25
8.2.100.0060.00617.84
8.2.90.0000.00819.09
8.2.80.0030.00519.43
8.2.70.0050.00317.75
8.2.60.0050.00317.80
8.2.50.0090.00018.07
8.2.40.0040.00518.09
8.2.30.0030.00718.09
8.2.20.0000.00817.79
8.2.10.0040.00417.88
8.2.00.0030.00617.82
8.1.280.0090.00625.92
8.1.270.0050.00224.66
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00323.79
8.1.230.0070.00419.15
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0050.00317.52
8.1.180.0040.00419.13
8.1.170.0080.00018.59
8.1.160.0040.00422.12
8.1.150.0050.00218.66
8.1.140.0060.00317.60
8.1.130.0020.00517.90
8.1.120.0070.00017.46
8.1.110.0050.00317.57
8.1.100.0000.00817.46
8.1.90.0000.00817.44
8.1.80.0070.00017.46
8.1.70.0030.00317.50
8.1.60.0040.00417.64
8.1.50.0040.00417.52
8.1.40.0050.00317.61
8.1.30.0030.00617.61
8.1.20.0030.00617.72
8.1.10.0000.01017.57
8.1.00.0060.00317.59
8.0.300.0050.00218.77
8.0.290.0060.00317.05
8.0.280.0070.00018.34
8.0.270.0030.00317.19
8.0.260.0030.00316.89
8.0.250.0000.01117.00
8.0.240.0040.00416.97
8.0.230.0000.00717.04
8.0.220.0040.00417.06
8.0.210.0070.00016.95
8.0.200.0030.00316.97
8.0.190.0050.00317.05
8.0.180.0000.00816.89
8.0.170.0060.00316.98
8.0.160.0000.00716.98
8.0.150.0070.00016.94
8.0.140.0040.00416.97
8.0.130.0030.00313.45
8.0.120.0040.00417.00
8.0.110.0040.00416.86
8.0.100.0080.00017.03
8.0.90.0080.00016.86
8.0.80.0100.01017.08
8.0.70.0030.00316.90
8.0.60.0030.00516.86
8.0.50.0000.00816.99
8.0.30.0130.00817.15
8.0.20.0090.00917.40
8.0.10.0040.00417.03
8.0.00.0110.00816.96
7.4.330.0000.00515.11
7.4.320.0000.00716.74
7.4.300.0070.00016.82
7.4.290.0040.00416.70
7.4.280.0070.00016.62
7.4.270.0070.00016.80
7.4.260.0030.00313.39
7.4.250.0000.00716.57
7.4.240.0030.00316.75
7.4.230.0070.00016.65
7.4.220.0150.00316.92
7.4.210.0090.00716.76
7.4.200.0070.00016.82
7.4.190.0060.00316.83
7.4.160.0030.01216.75
7.4.150.0090.00917.40
7.4.140.0050.01417.86
7.4.130.0150.00516.54
7.4.120.0080.00916.61
7.4.110.0090.00916.43
7.4.100.0070.01016.58
7.4.90.0120.00916.51
7.4.80.0140.00719.39
7.4.70.0120.00616.66
7.4.60.0120.00616.50
7.4.50.0030.00616.73
7.4.40.0030.01022.77
7.4.30.0140.00316.44
7.4.00.0070.00714.91
7.3.330.0030.00313.12
7.3.320.0030.00313.13
7.3.310.0030.00316.25
7.3.300.0050.00216.31
7.3.290.0030.01116.24
7.3.280.0080.00916.29
7.3.270.0140.00317.40
7.3.260.0140.00916.56
7.3.250.0060.01116.38
7.3.240.0100.00716.31
7.3.230.0060.01016.39
7.3.210.0100.00716.30
7.3.200.0090.01019.39
7.3.190.0090.01216.32
7.3.180.0090.00616.35
7.3.170.0070.01016.46
7.3.160.0090.00616.36
7.3.120.0070.00715.06
7.2.330.0070.01016.60
7.2.320.0030.02016.57
7.2.310.0090.00616.57
7.2.300.0100.00716.59
7.2.290.0040.01216.69
7.2.00.0090.00619.29
7.1.100.0080.01218.33
7.1.70.0030.00617.38
7.1.60.0070.01719.43
7.1.50.0160.00634.48
7.1.00.0000.07322.34
7.0.200.0000.00816.58
7.0.140.0000.07322.01
7.0.60.0170.04020.04
7.0.50.0030.08317.90
7.0.40.0200.07720.06
7.0.30.0230.08320.14
7.0.20.0170.05020.11
7.0.10.0070.08720.16
7.0.00.0030.09320.13
5.6.280.0070.07320.90
5.6.210.0000.09020.64
5.6.200.0100.08018.12
5.6.190.0130.08020.63
5.6.180.0430.04720.47
5.6.170.0270.04720.48
5.6.160.0070.09020.48
5.6.150.0200.06318.18
5.6.140.0100.08018.14
5.6.130.0030.04318.15
5.6.120.0100.04720.98
5.6.110.0000.07321.00
5.6.100.0170.07020.95
5.6.90.0070.04320.99
5.6.80.0130.07320.50
5.5.350.0200.07720.52
5.5.340.0100.05317.99
5.5.330.0070.07720.26
5.5.320.0300.07020.19
5.5.310.0300.08320.29
5.5.300.0000.04018.00
5.5.290.0100.08317.98
5.5.280.0100.05720.97
5.5.270.0130.05020.86
5.5.260.0170.07020.76
5.5.250.0070.08020.48
5.5.240.0130.05720.13
5.4.450.0570.04719.58
5.4.440.0870.08319.38
5.4.430.0930.06019.60
5.4.420.0430.06019.60
5.4.410.0400.05319.04
5.4.400.0530.04718.53
5.4.390.0270.06318.47
5.4.380.0300.05018.73
5.4.370.0170.07018.58
5.4.360.0200.04718.71
5.4.350.0090.03412.01
5.4.340.0040.03912.00
5.4.320.0060.03912.49
5.4.310.0060.04512.48
5.4.300.0080.04312.49
5.4.290.0070.04812.48
5.4.280.0070.04312.38
5.4.270.0050.03812.38
5.4.260.0100.04212.38
5.4.250.0050.04412.38
5.4.240.0270.03718.89
5.4.230.0170.04718.79
5.4.220.0100.05318.82
5.4.210.0100.05019.00
5.4.200.0130.06718.98
5.4.190.0200.04718.97
5.4.180.0270.04318.95
5.4.170.0130.04718.81
5.4.160.0070.06019.06
5.4.150.0100.06018.79
5.4.140.0030.05716.56
5.4.130.0130.06316.38
5.4.120.0100.05316.55
5.4.110.0170.04316.48
5.4.100.0070.05016.32
5.4.90.0070.05016.52
5.4.80.0100.04716.55
5.4.70.0100.04716.47
5.4.60.0130.05016.46
5.4.50.0200.05316.49
5.4.40.0100.05316.51
5.4.30.0200.06316.30
5.4.20.0070.05016.50
5.4.10.0170.06016.29
5.4.00.0070.05315.75
5.3.290.0030.05112.80
5.3.280.0100.05014.77
5.3.270.0100.07314.57
5.3.260.0130.05014.70
5.3.250.0130.04714.57
5.3.240.0100.05314.57
5.3.230.0170.04314.68
5.3.220.0170.04714.57
5.3.210.0070.05714.39
5.3.200.0070.05014.55
5.3.190.0070.05314.65
5.3.180.0200.05014.57
5.3.170.0130.04714.55
5.3.160.0100.05014.58
5.3.150.0170.04314.54
5.3.140.0130.04314.64
5.3.130.0170.04714.77
5.3.120.0100.08014.38
5.3.110.0130.07014.77
5.3.100.0030.05314.12
5.3.90.0130.06014.14
5.3.80.0100.05014.02
5.3.70.0000.06013.98
5.3.60.0100.05314.01
5.3.50.0030.05314.01
5.3.40.0130.04313.78
5.3.30.0170.06013.92
5.3.20.0130.05013.86
5.3.10.0100.04713.65
5.3.00.0030.07013.64
5.2.170.0070.04011.21
5.2.160.0070.04011.11
5.2.150.0170.04011.22
5.2.140.0070.06011.31
5.2.130.0030.05711.08
5.2.120.0100.04711.06
5.2.110.0130.03311.25
5.2.100.0030.05011.18
5.2.90.0100.04311.05
5.2.80.0130.05011.16
5.2.70.0130.03311.27
5.2.60.0070.04011.00
5.2.50.0070.05011.11
5.2.40.0070.04011.07
5.2.30.0030.04310.98
5.2.20.0070.04711.02
5.2.10.0100.04011.02
5.2.00.0030.04010.80
5.1.60.0070.03010.02
5.1.50.0100.03010.23
5.1.40.0070.0339.92
5.1.30.0100.03010.40
5.1.20.0100.03010.12
5.1.10.0100.03310.13
5.1.00.0070.05310.03
5.0.50.0130.0338.46
5.0.40.0100.0208.37
5.0.30.0070.0378.28
5.0.20.0030.0278.25
5.0.10.0000.0338.32
5.0.00.0030.0438.12
4.4.90.0000.0237.32
4.4.80.0070.0277.32
4.4.70.0070.0207.32
4.4.60.0100.0137.32
4.4.50.0100.0177.32
4.4.40.0030.0377.32
4.4.30.0070.0177.32
4.4.20.0030.0207.32
4.4.10.0030.0237.31
4.4.00.0030.0337.31
4.3.110.0030.0237.31
4.3.100.0000.0237.31
4.3.90.0100.0137.31
4.3.80.0070.0307.31
4.3.70.0030.0277.31
4.3.60.0070.0177.31
4.3.50.0100.0207.31
4.3.40.0030.0477.31
4.3.30.0070.0207.31
4.3.20.0100.0137.31
4.3.10.0030.0207.31
4.3.00.0230.0236.66

preferences:
61.83 ms | 401 KiB | 5 Q