3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/access_token=\K[^&\s]+/'; $subject = "https://WBSITE_LINK.com/#access_token=1b6e37716abdh&state=state123&scope=profile%20booking&token_type=bearer&expires_in=15552000"; preg_match($pattern, $subject, $matches); echo $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.5.10.0070.00216.95
8.5.00.0130.01020.05
8.4.160.0090.01223.13
8.4.150.0030.00014.05
8.4.140.0100.01117.74
8.4.130.0120.00817.83
8.4.120.0140.00620.51
8.4.110.0120.00722.45
8.4.100.0050.00517.77
8.4.90.0120.00720.38
8.4.80.0070.00617.83
8.4.70.0090.00817.93
8.4.60.0130.00518.74
8.4.50.0040.00420.77
8.4.40.0070.01419.53
8.4.30.0040.00417.99
8.4.20.0070.00317.75
8.4.10.0060.00618.04
8.3.280.0140.00618.69
8.3.270.0120.01016.57
8.3.260.0110.01016.56
8.3.250.0100.00918.79
8.3.240.0080.00016.71
8.3.230.0120.00716.51
8.3.220.0060.00217.19
8.3.210.0090.00516.78
8.3.200.0060.00216.53
8.3.190.0090.01016.89
8.3.180.0100.00716.50
8.3.170.0110.00716.63
8.3.160.0070.01118.59
8.3.150.0070.01117.15
8.3.140.0000.00918.61
8.3.130.0000.00818.50
8.3.120.0120.00420.56
8.3.110.0040.00420.94
8.3.100.0080.00016.57
8.3.90.0050.00326.77
8.3.80.0060.00318.55
8.3.70.0070.01118.30
8.3.60.0060.00918.31
8.3.50.0050.00919.23
8.3.40.0100.00718.73
8.3.30.0140.00718.89
8.3.20.0040.00421.60
8.3.10.0000.00823.51
8.3.00.0040.00421.85
8.2.290.0090.01120.44
8.2.280.0130.00718.79
8.2.270.0150.00616.86
8.2.260.0070.01119.13
8.2.250.0050.00318.49
8.2.240.0080.00417.50
8.2.230.0030.00522.58
8.2.220.0030.00624.06
8.2.210.0040.00426.77
8.2.200.0060.00318.56
8.2.190.0130.00616.88
8.2.180.0070.00716.88
8.2.170.0040.01122.96
8.2.160.0110.00419.15
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00319.15
8.2.120.0040.00426.35
8.2.110.0100.00019.33
8.2.100.0030.00917.97
8.2.90.0030.00519.25
8.2.80.0040.00419.34
8.2.70.0060.00317.88
8.2.60.0040.00417.93
8.2.50.0000.00918.22
8.2.40.0060.00320.43
8.2.30.0000.00819.31
8.2.20.0050.00318.14
8.2.10.0040.00417.89
8.2.00.0070.00018.19
8.1.330.0110.00821.91
8.1.320.0050.00316.02
8.1.310.0080.00018.69
8.1.300.0040.01516.46
8.1.290.0060.00330.84
8.1.280.0130.00925.92
8.1.270.0070.00022.19
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00323.79
8.1.230.0080.00417.95
8.1.220.0030.00617.76
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00917.38
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0000.00718.89
8.1.150.0000.00718.96
8.1.140.0000.00719.05
8.1.130.0070.00017.66
8.1.120.0040.00417.44
8.1.110.0000.00717.52
8.1.100.0040.00417.58
8.1.90.0030.00517.43
8.1.80.0060.00317.44
8.1.70.0000.00817.51
8.1.60.0030.00717.69
8.1.50.0000.00917.61
8.1.40.0000.00817.50
8.1.30.0050.00317.73
8.1.20.0000.00917.71
8.1.10.0000.00717.61
8.1.00.0040.00417.68
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0080.00018.37
8.0.270.0070.00016.87
8.0.260.0000.00718.46
8.0.250.0000.00717.04
8.0.240.0000.00817.13
8.0.230.0000.00717.07
8.0.220.0040.00416.97
8.0.210.0040.00416.88
8.0.200.0030.00317.08
8.0.190.0030.00516.92
8.0.180.0000.00817.03
8.0.170.0060.00316.86
8.0.160.0000.00716.87
8.0.150.0000.00916.90
8.0.140.0000.00716.96
8.0.130.0000.00613.44
8.0.120.0070.00016.96
8.0.110.0080.00016.86
8.0.100.0040.00416.79
8.0.90.0070.00017.09
8.0.80.0100.00717.03
8.0.70.0000.00717.02
8.0.60.0000.00816.96
8.0.50.0040.00417.00
8.0.30.0080.01117.13
8.0.20.0110.00917.40
8.0.10.0000.00717.00
8.0.00.0100.00816.87
7.4.330.0020.00215.55
7.4.320.0030.00316.76
7.4.300.0030.00316.66
7.4.290.0000.00716.75
7.4.280.0040.00416.63
7.4.270.0030.00616.55
7.4.260.0030.00316.65
7.4.250.0040.00416.63
7.4.240.0040.00416.69
7.4.230.0070.00016.50
7.4.220.0000.00716.55
7.4.210.0070.00716.65
7.4.200.0000.00716.64
7.4.160.0080.00816.73
7.4.150.0060.01317.40
7.4.140.0110.00917.86
7.4.130.0070.01116.71
7.4.120.0080.01216.65
7.4.110.0060.01016.78
7.4.100.0110.00716.74
7.4.90.0030.01316.54
7.4.80.0030.01419.39
7.4.70.0140.00416.63
7.4.60.0070.00816.70
7.4.50.0090.00516.56
7.4.40.0080.01116.54
7.4.00.0130.00015.03
7.3.330.0030.00313.09
7.3.320.0000.00613.09
7.3.310.0060.00016.49
7.3.300.0030.00316.21
7.3.290.0060.01416.32
7.3.280.0020.01416.34
7.3.270.0090.01017.40
7.3.260.0120.00816.36
7.3.250.0090.00916.51
7.3.240.0080.01016.64
7.3.230.0130.00316.41
7.3.210.0070.00916.68
7.3.200.0070.01516.49
7.3.190.0100.00716.32
7.3.180.0120.00616.60
7.3.170.0090.00916.46
7.3.160.0070.01016.66
7.2.330.0170.00016.57
7.2.320.0060.01216.61
7.2.310.0100.00716.59
7.2.300.0090.00616.63
7.2.290.0050.01116.66
7.2.60.0100.00317.08
7.2.00.0250.00917.92
7.1.200.0070.00715.97
7.1.120.0230.00917.23
7.1.110.0190.01116.19
7.1.100.0240.00616.23
7.1.90.0210.01616.55
7.1.80.0240.00516.76
7.1.70.0160.01015.60
7.1.60.0340.01433.57
7.1.50.0340.01032.88
7.1.40.0320.01032.87
7.1.30.0460.01033.02
7.1.20.0200.01733.06
7.1.10.0650.01714.85
7.1.00.0210.01115.02

preferences:
42.68 ms | 403 KiB | 5 Q