3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '-Parameter1=1234 -Parameter2=38518 -param3 "Test \"escaped\"" -param4 10 -param5 0 -param6 "TT" -param7 "Seven" -param8 "secret" "-SuperParam9=4857?--SuperParam10=123"'; $pattern = '~--?(?<key>[^= ]+)[ =] (?| "(?<value> [^\\\\"]*+ (?s:\\\\.[^\\\\"]*)*+ )" | ([^ ?"]*) )~x'; preg_match_all ($pattern, $str, $matches); $result = array_combine($matches['key'], $matches['value']); print_r($result);

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.30.0090.00820.73
8.5.20.0100.00719.28
8.5.10.0090.00918.46
8.5.00.0160.00720.31
8.4.180.0120.01020.71
8.4.170.0110.01121.95
8.4.160.0110.01523.74
8.4.150.0090.00616.95
8.4.140.0160.00917.71
8.4.130.0110.01117.75
8.4.120.0140.00624.17
8.4.110.0110.01018.67
8.4.100.0090.00719.08
8.4.90.0100.01020.30
8.4.80.0120.00818.07
8.4.70.0050.00418.07
8.4.60.0150.01118.82
8.4.50.0060.00517.84
8.4.40.0130.00919.87
8.4.30.0140.00317.73
8.4.20.0130.01019.71
8.4.10.0080.00419.68
8.3.300.0150.00720.79
8.3.290.0130.00718.68
8.3.280.0070.00416.26
8.3.270.0140.00616.53
8.3.260.0070.01116.76
8.3.250.0060.00216.80
8.3.240.0100.00917.20
8.3.230.0040.00416.73
8.3.220.0090.00417.29
8.3.210.0100.01216.93
8.3.200.0070.00216.77
8.3.190.0110.01018.69
8.3.180.0100.00518.45
8.3.170.0130.00617.37
8.3.160.0080.00018.47
8.3.150.0150.00318.64
8.3.140.0080.00016.53
8.3.130.0040.00418.66
8.3.120.0030.00620.77
8.3.110.0130.00618.45
8.3.100.0000.00816.73
8.3.90.0080.00026.77
8.3.80.0090.00317.97
8.3.70.0180.00018.68
8.3.60.0150.00618.53
8.3.50.0090.00717.66
8.3.40.0120.00318.88
8.3.30.0100.01318.76
8.3.20.0000.00820.35
8.3.10.0040.00423.56
8.3.00.0080.00019.85
8.2.300.0100.01017.97
8.2.290.0070.00120.65
8.2.280.0060.00318.70
8.2.270.0100.01017.23
8.2.260.0000.01520.46
8.2.250.0120.00317.07
8.2.240.0070.00417.21
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0070.00726.77
8.2.200.0090.00017.00
8.2.190.0150.00617.13
8.2.180.0070.00718.91
8.2.170.0090.00622.96
8.2.160.0070.00719.27
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00221.25
8.2.110.0050.00319.36
8.2.100.0080.00419.39
8.2.90.0000.00817.97
8.2.80.0000.00819.46
8.2.70.0040.00417.93
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0040.00422.28
8.2.30.0000.00819.64
8.2.20.0080.00018.05
8.2.10.0050.00318.21
8.2.00.0050.00318.22
8.1.340.0150.00517.57
8.1.330.0140.00622.11
8.1.320.0100.00916.52
8.1.310.0040.00418.63
8.1.300.0030.00719.68
8.1.290.0040.00430.84
8.1.280.0090.00625.92
8.1.270.0050.00322.10
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00322.02
8.1.230.0050.00520.93
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0040.00417.48
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.74
8.1.160.0040.00418.92
8.1.150.0070.00020.34
8.1.140.0000.00717.74
8.1.130.0030.00318.77
8.1.120.0070.00017.45
8.1.110.0080.00017.55
8.1.100.0030.00617.61
8.1.90.0070.00017.58
8.1.80.0030.00517.45
8.1.70.0040.00417.58
8.1.60.0000.00717.56
8.1.50.0000.00717.50
8.1.40.0030.00617.50
8.1.30.0050.00217.64
8.1.20.0080.00017.71
8.1.10.0040.00417.71
8.1.00.0000.00817.53
8.0.300.0040.00420.10
8.0.290.0040.00416.63
8.0.280.0000.00818.48
8.0.270.0000.00817.22
8.0.260.0030.00316.90
8.0.250.0030.00316.99
8.0.240.0040.00417.01
8.0.230.0050.00317.02
8.0.220.0050.00217.07
8.0.210.0000.00717.02
8.0.200.0000.00717.05
8.0.190.0050.00317.06
8.0.180.0040.00416.90
8.0.170.0000.00817.03
8.0.160.0000.00916.87
8.0.150.0070.00016.93
8.0.140.0030.00316.86
8.0.130.0000.00613.39
8.0.120.0080.00017.03
8.0.110.0040.00416.89
8.0.100.0040.00417.05
8.0.90.0000.00716.94
8.0.80.0090.00617.01
8.0.70.0070.00016.93
8.0.60.0040.00417.03
8.0.50.0040.00416.93
8.0.30.0120.00617.22
8.0.20.0110.00817.42
8.0.10.0040.00417.21
8.0.00.0090.00816.99
7.4.330.0000.00515.55
7.4.320.0000.00716.73
7.4.300.0030.00316.57
7.4.290.0000.00716.67
7.4.280.0040.00416.73
7.4.270.0000.01016.85
7.4.260.0000.00816.75
7.4.250.0000.00716.74
7.4.240.0030.00316.70
7.4.230.0050.00216.61
7.4.220.0000.00716.83
7.4.210.0140.00616.89
7.4.200.0070.00016.57
7.4.160.0150.00216.62
7.4.150.0100.00717.40
7.4.140.0100.00817.86
7.4.130.0070.01016.71
7.4.120.0080.01116.65
7.4.110.0070.01016.77
7.4.100.0060.01016.62
7.4.90.0130.00416.57
7.4.80.0060.01319.39
7.4.70.0070.01016.59
7.4.60.0100.00616.45
7.4.50.0070.00716.46
7.4.40.0060.01216.59
7.4.00.0050.01214.97
7.3.330.0050.00013.19
7.3.320.0030.00313.02
7.3.310.0040.00316.41
7.3.300.0000.00716.32
7.3.290.0060.00916.36
7.3.280.0090.01016.32
7.3.270.0060.01217.40
7.3.260.0070.01116.51
7.3.250.0100.00916.67
7.3.240.0090.00916.47
7.3.230.0100.00716.37
7.3.210.0120.00316.65
7.3.200.0100.00616.63
7.3.190.0070.01016.40
7.3.180.0130.00916.55
7.3.170.0080.00816.38
7.3.160.0100.00716.49
7.3.120.0040.01514.88
7.3.110.0110.00714.98
7.3.100.0000.01914.85
7.3.90.0090.00614.92
7.3.80.0070.01314.98
7.3.70.0090.00614.97
7.3.60.0090.00614.91
7.3.50.0030.00714.98
7.3.40.0030.01014.82
7.3.30.0070.01015.00
7.3.20.0060.01016.85
7.3.10.0080.00616.51
7.3.00.0040.01116.67
7.2.330.0100.01416.85
7.2.320.0100.00716.73
7.2.310.0130.00616.75
7.2.300.0100.00616.40
7.2.290.0100.00716.58
7.2.250.0060.01215.21
7.2.240.0130.00615.21
7.2.230.0060.01214.99
7.2.220.0070.01315.34
7.2.210.0070.01115.16
7.2.200.0100.00314.99
7.2.190.0030.01215.20
7.2.180.0060.00915.16
7.2.170.0070.00415.29
7.2.130.0030.01217.05
7.2.120.0060.00617.09
7.2.110.0040.00716.91
7.2.100.0070.00416.89
7.2.90.0100.00716.73
7.2.80.0100.00316.95
7.2.70.0040.01117.03
7.2.60.0060.00616.73
7.2.50.0100.00316.64
7.2.40.0070.00716.74
7.2.30.0090.00617.18
7.2.20.0060.00616.94
7.2.10.0130.01017.60
7.2.00.0190.00417.25
7.1.330.0060.00916.09
7.1.320.0070.00716.04
7.1.310.0070.01016.18
7.1.300.0090.00615.98
7.1.290.0040.01115.94
7.1.280.0030.01416.14
7.1.270.0030.01315.92
7.1.260.0030.01215.98
7.1.250.0080.00616.20
7.1.200.0070.00716.00
7.1.130.0130.01616.65
7.1.120.0120.00416.90
7.1.110.0340.00716.19
7.1.100.0190.01215.99
7.1.90.0320.01016.05
7.1.80.0200.01216.36
7.1.70.0120.00315.45
7.1.60.0320.01633.52
7.1.50.0280.01633.11
7.1.40.0410.00432.69
7.1.30.0370.01632.76
7.1.20.0370.00832.98
7.1.10.0250.00815.11
7.1.00.0130.01615.07

preferences:
54.04 ms | 1633 KiB | 5 Q