3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'https://someurl.com "This is a \"quote\" in the caption"'; list($url, $caption)=(preg_match('~(\S+) "(.+)"~', $input, $out) ? array_slice($out,1) : ['','']); echo "url: $url\ncaption: $caption";

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.4.120.0090.00320.85
8.4.110.0100.01122.39
8.4.100.0100.01218.02
8.4.90.0050.00718.63
8.4.80.0160.00517.93
8.4.70.0120.00817.90
8.4.60.0160.00618.62
8.4.50.0110.00919.75
8.4.40.0070.00317.89
8.4.30.0030.00617.79
8.4.20.0050.00319.79
8.4.10.0090.00019.92
8.3.250.0150.00519.00
8.3.240.0030.00516.53
8.3.230.0120.01116.62
8.3.220.0100.00816.93
8.3.210.0120.00816.69
8.3.200.0120.00516.48
8.3.190.0110.00917.18
8.3.180.0080.00716.57
8.3.170.0120.00618.79
8.3.160.0120.00616.72
8.3.150.0150.00320.50
8.3.140.0080.00016.52
8.3.130.0060.00318.45
8.3.120.0060.00320.51
8.3.110.0040.00420.94
8.3.100.0160.00024.06
8.3.90.0090.00626.77
8.3.80.0050.00518.35
8.3.70.0070.01418.55
8.3.60.0120.00618.43
8.3.50.0110.00516.63
8.3.40.0150.00318.93
8.3.30.0150.00018.92
8.3.20.0030.00521.86
8.3.10.0040.00423.50
8.3.00.0000.00823.46
8.2.290.0130.00520.48
8.2.280.0090.01318.63
8.2.270.0160.00017.52
8.2.260.0150.00317.34
8.2.250.0110.00716.98
8.2.240.0090.00019.05
8.2.230.0120.00322.58
8.2.220.0130.00637.54
8.2.210.0200.00026.77
8.2.200.0090.00016.88
8.2.190.0060.00916.63
8.2.180.0180.00018.78
8.2.170.0090.00922.96
8.2.160.0040.01420.10
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00421.20
8.2.120.0040.00426.35
8.2.110.0030.00621.13
8.2.100.0060.00617.76
8.2.90.0000.00818.00
8.2.80.0000.00819.05
8.2.70.0080.00018.05
8.2.60.0000.00817.75
8.2.50.0000.00918.16
8.2.40.0040.00420.31
8.2.30.0020.00522.55
8.2.20.0000.00718.20
8.2.10.0000.00718.12
8.2.00.0000.00718.05
8.1.330.0100.00521.80
8.1.320.0080.01216.22
8.1.310.0070.01016.66
8.1.300.0080.00820.15
8.1.290.0030.00630.84
8.1.280.0130.01025.92
8.1.270.0000.00822.19
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00019.57
8.1.230.0110.00017.77
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0050.00317.36
8.1.190.0000.01117.23
8.1.180.0000.00818.10
8.1.170.0050.00318.47
8.1.160.0000.00718.71
8.1.150.0000.00720.23
8.1.140.0040.00417.65
8.1.130.0000.00718.94
8.1.120.0070.00017.56
8.1.110.0000.00817.49
8.1.100.0080.00017.51
8.1.90.0030.00617.55
8.1.80.0040.00417.45
8.1.70.0000.00717.48
8.1.60.0030.00617.68
8.1.50.0030.00617.49
8.1.40.0000.00817.64
8.1.30.0000.00717.62
8.1.20.0030.00617.69
8.1.10.0080.00017.64
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0030.00517.29
8.0.260.0000.00816.96
8.0.250.0070.00017.14
8.0.240.0040.00717.06
8.0.230.0070.00017.13
8.0.220.0030.00317.02
8.0.210.0030.00316.92
8.0.200.0070.00017.10
8.0.190.0000.00916.99
8.0.180.0040.00416.99
8.0.170.0040.00416.97
8.0.160.0030.00516.87
8.0.150.0040.00417.01
8.0.140.0000.00717.00
8.0.130.0060.00013.42
8.0.120.0060.00316.91
8.0.110.0050.00317.09
8.0.100.0030.00516.93
8.0.90.0000.00716.86
8.0.80.0110.00617.04
8.0.70.0000.00817.06
8.0.60.0070.00017.02
8.0.50.0040.00417.00
8.0.30.0100.00617.20
8.0.20.0130.00717.45
8.0.10.0000.00817.10
8.0.00.0120.00617.00
7.4.330.0000.00615.55
7.4.320.0000.00616.72
7.4.300.0030.00316.59
7.4.290.0040.00716.64
7.4.280.0000.00716.68
7.4.270.0030.00316.73
7.4.260.0000.00716.74
7.4.250.0040.00416.69
7.4.240.0040.00416.78
7.4.230.0000.00716.50
7.4.220.0040.00416.49
7.4.210.0140.01116.67
7.4.200.0070.00016.40
7.4.160.0100.01016.63
7.4.140.0110.01017.86
7.4.130.0070.01116.70
7.4.120.0090.00916.67
7.4.110.0130.00316.79
7.4.100.0170.00716.45
7.4.90.0080.00816.89
7.4.80.0060.01319.39
7.4.70.0130.00316.46
7.4.60.0100.00716.73
7.4.50.0000.01316.62
7.4.40.0130.00316.46
7.4.00.0040.00814.91
7.3.330.0030.00313.32
7.3.320.0030.00313.08
7.3.310.0070.00016.29
7.3.300.0030.00316.38
7.3.290.0100.00716.36
7.3.280.0140.00616.34
7.3.260.0110.01116.58
7.3.250.0080.01016.51
7.3.240.0080.01016.63
7.3.230.0100.01016.69
7.3.210.0090.01316.84
7.3.200.0040.01216.76
7.3.190.0150.00616.51
7.3.180.0270.01316.39
7.3.170.0000.01716.39
7.3.160.0060.01016.43
7.3.10.0160.01216.60
7.3.00.0180.00716.48
7.2.330.0110.00616.60
7.2.320.0070.01016.59
7.2.310.0080.00816.78
7.2.300.0130.01016.73
7.2.290.0120.00516.64
7.2.130.0100.01316.71
7.2.120.0090.00316.88
7.2.110.0030.01416.68
7.2.100.0120.00916.89
7.2.90.0110.00416.85
7.2.80.0110.00817.00
7.2.70.0180.00316.55
7.2.60.0050.01216.96
7.2.50.0000.01316.72
7.2.40.0140.00616.84
7.2.30.0130.01017.56
7.2.20.0120.01217.34
7.2.10.0130.01417.37
7.2.00.0080.01317.44
7.1.250.0080.00415.86
7.1.200.0000.01515.98
7.1.150.0200.01416.95
7.1.140.0120.01417.38
7.1.130.0170.01316.92
7.1.120.0110.01517.00
7.1.110.0130.00916.36
7.1.100.0190.01116.46
7.1.90.0150.00816.41
7.1.80.0610.01216.46
7.1.70.0120.01215.66
7.1.60.0310.01333.62
7.1.50.0270.01432.97
7.1.40.0300.01332.82
7.1.30.0350.01032.59
7.1.20.0410.01433.13
7.1.10.0120.01514.85
7.1.00.0130.01115.08

preferences:
28.51 ms | 403 KiB | 5 Q