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*?)\]/", print_r($arrayOfString, true), $matches); print_r(array_combine($matches[1], $matches[0]));

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.0030.01216.86
8.3.60.0120.00618.40
8.3.50.0100.01022.18
8.3.40.0120.00318.99
8.3.30.0120.00320.34
8.3.20.0030.00520.29
8.3.10.0030.00521.97
8.3.00.0030.00522.47
8.2.180.0130.00316.63
8.2.170.0100.00322.96
8.2.160.0100.00322.43
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0030.01026.16
8.2.120.0040.00419.86
8.2.110.0030.00622.18
8.2.100.0110.00017.84
8.2.90.0040.00419.40
8.2.80.0040.00419.30
8.2.70.0000.00817.86
8.2.60.0030.00717.80
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0060.00318.10
8.2.20.0040.00417.92
8.2.10.0050.00317.77
8.2.00.0070.00417.71
8.1.280.0060.00825.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.58
8.1.230.0070.00419.04
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.36
8.1.190.0050.00317.53
8.1.180.0040.00818.10
8.1.170.0060.00318.75
8.1.160.0070.00022.23
8.1.150.0040.00418.75
8.1.140.0000.00717.66
8.1.130.0030.00317.96
8.1.120.0040.00417.47
8.1.110.0050.00217.60
8.1.100.0000.00717.64
8.1.90.0000.00817.57
8.1.80.0040.00417.57
8.1.70.0030.00317.45
8.1.60.0040.00417.57
8.1.50.0000.00817.64
8.1.40.0080.00017.61
8.1.30.0040.00417.62
8.1.20.0030.00617.66
8.1.10.0030.00617.79
8.1.00.0030.00617.59
8.0.300.0000.00718.77
8.0.290.0040.00417.16
8.0.280.0040.00418.32
8.0.270.0040.00417.18
8.0.260.0030.00316.96
8.0.250.0030.00817.04
8.0.240.0000.00816.94
8.0.230.0040.00417.05
8.0.220.0000.00717.03
8.0.210.0030.00317.02
8.0.200.0030.00317.01
8.0.190.0060.00317.02
8.0.180.0000.00816.98
8.0.170.0000.00716.90
8.0.160.0050.00216.95
8.0.150.0030.00416.96
8.0.140.0040.00316.81
8.0.130.0000.00613.45
8.0.120.0000.00917.01
8.0.110.0000.00716.96
8.0.100.0000.00717.04
8.0.90.0070.00017.11
8.0.80.0130.00317.08
8.0.70.0000.00716.93
8.0.60.0040.00417.03
8.0.50.0040.00417.11
8.0.30.0110.00817.12
8.0.20.0140.00517.40
8.0.10.0070.00016.98
8.0.00.0110.00817.00
7.4.330.0000.00515.02
7.4.320.0000.00616.74
7.4.300.0060.00016.71
7.4.290.0020.00516.70
7.4.280.0030.00316.72
7.4.270.0000.00716.81
7.4.260.0000.00613.50
7.4.250.0030.00516.82
7.4.240.0030.00316.77
7.4.230.0000.00816.73
7.4.220.0160.00316.72
7.4.210.0050.01016.74
7.4.200.0000.00716.80
7.4.190.0030.00716.62
7.4.160.0080.00816.82
7.4.150.0060.01117.40
7.4.140.0050.01417.86
7.4.130.0130.01016.62
7.4.120.0130.00516.68
7.4.110.0140.00316.66
7.4.100.0090.00916.59
7.4.90.0090.01216.68
7.4.80.0130.01019.39
7.4.70.0090.00916.61
7.4.60.0090.00916.73
7.4.50.0040.00416.72
7.4.40.0030.00822.77
7.4.30.0100.00616.57
7.4.00.0090.00615.15
7.3.330.0050.00013.16
7.3.320.0050.00013.27
7.3.310.0040.00416.33
7.3.300.0030.00316.36
7.3.290.0070.00716.31
7.3.280.0070.01016.38
7.3.270.0070.01017.40
7.3.260.0110.01116.69
7.3.250.0180.00016.48
7.3.240.0040.01216.41
7.3.230.0090.00916.80
7.3.210.0100.00716.87
7.3.200.0100.00619.39
7.3.190.0030.01716.32
7.3.180.0030.01216.59
7.3.170.0040.01216.55
7.3.160.0030.01216.29
7.3.120.0070.00715.10
7.2.330.0070.01016.68
7.2.320.0110.00616.64
7.2.310.0070.01016.58
7.2.300.0060.00916.65
7.2.290.0070.01016.86
7.2.60.0040.00816.91
7.2.00.0060.00919.49
7.1.200.0100.00315.77
7.1.100.0140.00718.20
7.1.70.0040.00417.36
7.1.60.0100.01319.43
7.1.50.0140.00334.58
7.1.00.0070.05722.50
7.0.200.0000.00816.76
7.0.140.0030.07021.92
7.0.60.0070.08020.04
7.0.50.0000.04317.90
7.0.40.0130.07720.32
7.0.30.0200.04320.19
7.0.20.0200.03720.35
7.0.10.0270.07720.14
7.0.00.0070.07020.07
5.6.280.0070.07021.04
5.6.210.0100.05020.70
5.6.200.0000.04318.20
5.6.190.0030.04020.54
5.6.180.0230.08020.48
5.6.170.0370.07320.39
5.6.160.0030.05020.43
5.6.150.0100.03318.16
5.6.140.0030.05018.28
5.6.130.0100.08718.18
5.6.120.0100.05021.09
5.6.110.0100.07320.95
5.6.100.0170.08320.98
5.6.90.0030.08720.97
5.6.80.0100.05020.50
5.6.70.0270.06320.37
5.5.350.0070.07720.38
5.5.340.0070.05017.92
5.5.330.0030.04020.18
5.5.320.0300.07720.50
5.5.310.0130.05320.37
5.5.300.0130.07717.97
5.5.290.0070.08017.98
5.5.280.0070.08720.77
5.5.270.0100.07020.97
5.5.260.0070.06020.79
5.5.250.0130.07320.70
5.5.240.0030.03720.26
5.4.450.0170.05719.34
5.4.440.0300.05019.47
5.4.430.0200.05719.19
5.4.420.0230.07019.38
5.4.410.0200.05019.35
5.4.400.0330.05318.73
5.4.390.0430.05718.84
5.4.380.0200.05718.84
5.4.370.0070.05718.73
5.4.360.0100.05318.61
5.4.350.0090.04812.01
5.4.340.0060.03812.01
5.4.320.0050.04312.50
5.4.310.0070.03712.49
5.4.300.0080.03512.49
5.4.290.0070.03812.49
5.4.280.0070.03912.39
5.4.270.0040.03912.39
5.4.260.0030.04012.39
5.4.250.0080.03512.39
5.4.240.0130.05019.09
5.4.230.0130.04718.93
5.4.220.0070.05718.99
5.4.210.0170.04318.76
5.4.200.0130.04718.99
5.4.190.0200.05018.90
5.4.180.0200.04318.99
5.4.170.0100.05018.93
5.4.160.0100.05018.92
5.4.150.0130.05018.88
5.4.140.0230.04316.47
5.4.130.0070.05316.38
5.4.120.0070.05016.39
5.4.110.0170.04016.36
5.4.100.0130.04716.48
5.4.90.0070.04716.55
5.4.80.0170.04316.34
5.4.70.0100.04316.38
5.4.60.0130.05316.46
5.4.50.0100.04316.45
5.4.40.0100.04716.51
5.4.30.0130.05016.46
5.4.20.0100.04716.49
5.4.10.0200.05316.38
5.4.00.0170.05715.84
5.3.290.0080.04112.80
5.3.280.0030.05714.77
5.3.270.0130.05314.68
5.3.260.0200.04014.60
5.3.250.0100.05014.79
5.3.240.0170.04014.61
5.3.230.0100.04714.67
5.3.220.0070.05014.61
5.3.210.0070.05314.65
5.3.200.0000.05714.79
5.3.190.0070.05314.55
5.3.180.0070.05314.60
5.3.170.0170.04714.65
5.3.160.0200.03714.64
5.3.150.0100.05014.64
5.3.140.0100.05014.54
5.3.130.0130.05014.63
5.3.120.0070.05314.77
5.3.110.0070.05714.54
5.3.100.0000.06314.22
5.3.90.0130.04313.85
5.3.80.0030.05714.18
5.3.70.0130.04714.00
5.3.60.0030.06014.08
5.3.50.0030.05714.17
5.3.40.0130.04714.13
5.3.30.0100.04713.81
5.3.20.0030.05713.66
5.3.10.0200.04713.73
5.3.00.0100.04713.47
5.2.170.0100.05710.97
5.2.160.0070.05711.13
5.2.150.0030.05011.21
5.2.140.0130.03711.10
5.2.130.0070.06011.09
5.2.120.0100.04011.18
5.2.110.0030.04311.19
5.2.100.0170.05011.19
5.2.90.0030.04711.16
5.2.80.0030.04711.17
5.2.70.0030.04711.08
5.2.60.0000.06710.95
5.2.50.0070.04011.10
5.2.40.0030.04311.07
5.2.30.0100.05010.98
5.2.20.0030.04310.97
5.2.10.0070.03710.95
5.2.00.0070.04010.63
5.1.60.0170.03310.15
5.1.50.0130.03710.06
5.1.40.0070.0339.91
5.1.30.0030.03710.34
5.1.20.0070.04010.41
5.1.10.0030.0509.98
5.1.00.0030.04010.12
5.0.50.0000.0308.70
5.0.40.0030.0408.19
5.0.30.0070.0508.14
5.0.20.0030.0308.11
5.0.10.0030.0278.01
5.0.00.0100.0338.23
4.4.90.0100.0237.32
4.4.80.0000.0237.32
4.4.70.0030.0207.32
4.4.60.0000.0237.32
4.4.50.0030.0207.32
4.4.40.0070.0437.32
4.4.30.0000.0237.32
4.4.20.0070.0177.32
4.4.10.0000.0237.32
4.4.00.0030.0337.32
4.3.110.0070.0177.32
4.3.100.0030.0207.32
4.3.90.0000.0237.32
4.3.80.0030.0307.32
4.3.70.0000.0277.32
4.3.60.0070.0277.32
4.3.50.0030.0207.32
4.3.40.0100.0337.32
4.3.30.0000.0237.32
4.3.20.0030.0207.32
4.3.10.0000.0237.32
4.3.00.0030.0207.00

preferences:
54.31 ms | 401 KiB | 5 Q