3v4l.org

run code in 300+ PHP versions simultaneously
<?php function parse_value_string($string) { preg_match_all('/([a-z_]+):\s+(.*),/', $string, $matches); return array_combine($matches[1], array_map(function($val) { return trim($val, '"'); }, $matches[2])); } $test = '{ refresh_token: "xxxx", access_token: "xxxx", expires_in: 21600, }'; $values = parse_value_string($test); print_r($values); /* Array ( [refresh_token] => xxxx [access_token] => xxxx [expires_in] => 21600 ) */

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.130.0120.00618.63
8.3.120.0110.00719.15
8.3.110.0030.00616.99
8.3.100.0150.00024.06
8.3.90.0040.01126.77
8.3.80.0060.00318.68
8.3.70.0110.01118.40
8.3.60.0120.00318.68
8.3.50.0070.00918.15
8.3.40.0160.00618.79
8.3.30.0100.00618.83
8.3.20.0040.00418.96
8.3.10.0070.00021.90
8.3.00.0080.00023.54
8.2.250.0050.00316.80
8.2.240.0120.00617.11
8.2.230.0000.00820.94
8.2.220.0040.00437.54
8.2.210.0000.00726.77
8.2.200.0030.00618.50
8.2.190.0140.00316.88
8.2.180.0150.00018.41
8.2.170.0110.00422.96
8.2.160.0060.00919.41
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00321.21
8.2.110.0120.00021.02
8.2.100.0080.00417.98
8.2.90.0090.00019.36
8.2.80.0030.00617.97
8.2.70.0000.00917.88
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0050.00318.29
8.2.30.0080.00018.15
8.2.20.0050.00218.11
8.2.10.0050.00320.00
8.2.00.0050.00319.35
8.1.300.0150.00316.56
8.1.290.0030.00730.84
8.1.280.0070.01025.92
8.1.270.0060.00322.18
8.1.260.0060.00326.35
8.1.250.0090.00928.09
8.1.240.0090.00022.20
8.1.230.0060.00619.05
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00717.35
8.1.190.0050.00317.48
8.1.180.0000.00818.10
8.1.170.0000.00818.73
8.1.160.0040.00418.80
8.1.150.0030.00618.84
8.1.140.0000.00717.65
8.1.130.0070.00018.98
8.1.120.0030.00617.64
8.1.110.0000.01017.64
8.1.100.0040.00417.57
8.1.90.0040.00417.65
8.1.80.0000.00717.68
8.1.70.0060.00317.64
8.1.60.0000.00917.64
8.1.50.0040.00417.65
8.1.40.0030.00517.72
8.1.30.0030.00517.89
8.1.20.0030.00617.84
8.1.10.0060.00317.69
8.1.00.0050.00517.59
8.0.300.0000.00718.84
8.0.290.0040.00416.75
8.0.280.0000.00718.34
8.0.270.0050.00317.11
8.0.260.0000.01017.11
8.0.250.0030.00316.93
8.0.240.0000.00816.97
8.0.230.0040.00416.92
8.0.220.0000.00816.98
8.0.210.0000.00716.99
8.0.200.0070.00017.00
8.0.190.0000.00717.11
8.0.180.0000.00817.08
8.0.170.0000.00817.12
8.0.160.0070.00017.11
8.0.150.0030.00517.03
8.0.140.0030.00316.92
8.0.130.0030.00313.52
8.0.120.0040.00417.02
8.0.110.0030.00517.07
8.0.100.0040.00416.85
8.0.90.0050.00216.95
8.0.80.0130.00717.08
8.0.70.0040.00417.01
8.0.60.0040.00417.08
8.0.50.0000.00717.11
8.0.30.0100.01117.22
8.0.20.0150.00717.43
8.0.10.0040.00417.16
8.0.00.0110.00616.97
7.4.330.0060.00015.55
7.4.320.0030.00316.87
7.4.300.0030.00316.82
7.4.290.0040.00416.67
7.4.280.0000.00716.71
7.4.270.0060.00316.83
7.4.260.0000.00716.61
7.4.250.0050.00316.59
7.4.240.0050.00316.76
7.4.230.0020.00516.63
7.4.220.0080.00016.94
7.4.210.0050.01016.76
7.4.200.0070.00016.62
7.4.160.0100.00816.67
7.4.140.0100.00917.86
7.4.130.0130.00616.73
7.4.120.0080.01116.71
7.4.110.0120.00416.75
7.4.100.0080.00816.60
7.4.90.0130.00916.71
7.4.80.0120.00919.39
7.4.70.0060.01116.62
7.4.60.0070.01116.52
7.4.50.0100.00716.82
7.4.40.0060.01116.45
7.4.00.0060.00915.13
7.3.330.0000.00513.32
7.3.320.0000.00613.42
7.3.310.0070.00016.49
7.3.300.0040.00416.34
7.3.290.0020.00516.43
7.3.280.0080.00816.37
7.3.260.0070.01216.56
7.3.240.0090.01016.52
7.3.230.0130.00616.56
7.3.210.0060.01116.49
7.3.200.0150.00416.36
7.3.190.0090.00816.53
7.3.180.0100.00616.73
7.3.170.0000.01516.48
7.3.160.0130.00316.50
7.3.120.0070.01014.91
7.3.110.0040.01414.96
7.3.100.0050.01114.94
7.3.90.0110.00614.98
7.3.80.0090.00515.13
7.3.70.0040.00414.95
7.3.60.0030.01014.83
7.3.50.0050.01115.05
7.3.40.0060.00515.04
7.3.30.0050.00714.80
7.3.20.0080.00416.82
7.3.10.0070.00416.95
7.3.00.0060.00716.76
7.2.330.0070.01116.66
7.2.320.0110.00716.79
7.2.310.0090.00916.64
7.2.300.0040.01516.61
7.2.290.0100.01316.78
7.2.250.0030.01615.04
7.2.240.0090.00914.91
7.2.230.0090.00615.11
7.2.220.0060.00915.05
7.2.210.0080.00614.89
7.2.200.0070.00515.25
7.2.190.0100.00315.16
7.2.180.0080.00415.19
7.2.170.0030.01315.05
7.2.160.0050.00814.86
7.2.150.0040.01117.20
7.2.140.0110.00417.09
7.2.130.0090.00617.14
7.2.120.0100.00316.88
7.2.110.0100.00816.90
7.2.100.0030.00716.75
7.2.90.0070.00616.95
7.2.80.0030.01016.86
7.2.70.0700.00516.01
7.2.60.0650.01115.92
7.2.50.0540.00316.18
7.2.40.0520.01115.97
7.2.30.0780.00616.03
7.2.20.0630.00715.96
7.2.10.0640.01116.06
7.2.00.0780.01016.06
7.1.330.0070.00916.00
7.1.320.0070.00715.90
7.1.310.0020.00816.05
7.1.300.0100.00515.87
7.1.290.0030.00916.06
7.1.280.0100.00415.83
7.1.270.0090.00715.93
7.1.260.0020.01316.08
7.1.250.0030.00916.13
7.1.240.0090.00915.91
7.1.230.0040.00916.06
7.1.220.0050.00515.97
7.1.210.0120.00015.86
7.1.200.0060.00915.81
7.1.190.0060.00615.77
7.1.180.0030.00615.82
7.1.170.0470.00914.93
7.1.160.0760.00614.81
7.1.150.0700.01114.87
7.1.140.0640.00514.89
7.1.130.0670.00614.98
7.1.120.0650.01314.95
7.1.110.0590.00214.95
7.1.100.0570.00814.89
7.1.90.1010.00814.99
7.1.80.0960.00914.73
7.1.70.0730.01314.99
7.1.60.1200.01224.00
7.1.50.0980.00824.02
7.1.40.1510.01223.89
7.1.30.1500.00823.87
7.1.20.1460.01024.06
7.1.10.1130.00514.88
7.1.00.0900.01214.87
7.0.330.0060.00615.22
7.0.320.0060.00615.37
7.0.310.0060.00315.76
7.0.300.0030.01115.61
7.0.290.0060.00915.65
7.0.280.0030.01015.57
7.0.270.0090.00015.55
7.0.260.0000.01315.14
7.0.250.0090.00315.53
7.0.240.0070.00315.59
7.0.230.0090.00015.61
7.0.220.0090.00315.55
7.0.210.0090.00615.54
7.0.200.0030.00715.33
7.0.190.0040.00815.19
7.0.180.0070.00715.58
7.0.170.0030.00615.18
7.0.160.0070.00415.57
7.0.150.0060.00615.60
7.0.140.0060.00315.60
7.0.130.0070.01015.72
7.0.120.0030.01015.52
7.0.110.0040.00815.48
7.0.100.0000.01315.61
7.0.90.0040.01115.66
7.0.80.0060.00615.68
7.0.70.0040.00815.60
7.0.60.0070.00715.59
7.0.50.0060.00615.59
7.0.40.0070.00713.71
7.0.30.0000.01213.53
7.0.20.0030.01013.75
7.0.10.0060.00613.69
7.0.00.0110.00413.40
5.6.400.0060.00914.56
5.6.390.0030.01014.41
5.6.380.0100.00714.51
5.6.370.0060.00614.64
5.6.360.0030.01614.69
5.6.350.0030.00614.39
5.6.340.0000.00914.27
5.6.330.0090.00914.27
5.6.320.0100.00314.80
5.6.310.0000.00913.99
5.6.300.0000.01214.54
5.6.290.0060.01014.38
5.6.280.0100.00614.50
5.6.270.0000.01314.75
5.6.260.0040.00714.23
5.6.250.0060.00614.72
5.6.240.0080.00414.43
5.6.230.0030.00914.48
5.6.220.0000.01014.21
5.6.210.0070.00714.34
5.6.200.0030.01014.53
5.6.190.0100.00314.42
5.6.180.0040.00814.57
5.6.170.0000.01314.28
5.6.160.0000.01314.40
5.6.150.0070.00314.30
5.6.140.0060.00914.41
5.6.130.0100.00714.61
5.6.120.0100.00714.16
5.6.110.0060.00614.38
5.6.100.0040.01114.56
5.6.90.0120.00014.30
5.6.80.0030.00714.31
5.6.70.0060.00614.25
5.6.60.0080.00414.38
5.6.50.0040.00714.35
5.6.40.0100.00714.47
5.6.30.0060.00914.18
5.6.20.0120.00314.47
5.6.10.0060.00914.16
5.6.00.0030.01214.21

preferences:
31.1 ms | 403 KiB | 5 Q