3v4l.org

run code in 300+ PHP versions simultaneously
<?php use GuzzleHttp\Client; use GuzzleHttp\Subscriber\Oauth\Oauth1; $client = new Client(); // Using "guzzlehttp/oauth-subscriber" Composer package. $oauth = new Oauth1([ 'consumer_key' => '', 'consumer_secret' => '', 'token' => '', 'token_secret' => '' ]); $client->getEmitter()->attach($oauth); $url = "https://example.com/services/oath2/token"; $response = $client->request( 'POST', $url, [ 'auth' => ['username', 'password'] ] ); echo $response->getBody();

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.0070.01021.34
8.5.20.0110.00719.53
8.5.10.0090.00916.84
8.5.00.0130.00820.21
8.4.180.0120.01019.70
8.4.170.0120.00919.79
8.4.160.0160.00619.85
8.4.150.0050.00316.98
8.4.140.0110.01117.83
8.4.130.0150.00518.97
8.4.120.0040.00523.88
8.4.110.0100.00918.85
8.4.100.0130.00818.86
8.4.90.0120.00820.48
8.4.80.0080.00218.56
8.4.70.0140.00618.33
8.4.60.0120.00818.66
8.4.50.0120.00820.36
8.4.40.0100.00619.49
8.4.30.0030.00517.39
8.4.20.0160.00320.31
8.4.10.0100.01019.51
8.3.300.0120.01020.44
8.3.290.0150.00818.30
8.3.280.0120.00920.17
8.3.270.0110.01116.88
8.3.260.0140.00616.42
8.3.250.0080.01018.89
8.3.240.0110.00717.13
8.3.230.0120.00616.73
8.3.220.0120.00719.10
8.3.210.0110.00516.68
8.3.200.0040.00516.54
8.3.190.0090.00916.84
8.3.180.0120.00717.09
8.3.170.0040.01520.54
8.3.160.0150.00316.41
8.3.150.0120.00616.51
8.3.140.0000.01116.95
8.3.130.0060.00318.49
8.3.120.0090.00018.67
8.3.110.0060.00920.94
8.3.100.0040.00424.06
8.3.90.0060.00326.77
8.3.80.0040.00417.97
8.3.70.0110.00416.63
8.3.60.0150.00018.38
8.3.50.0160.00518.26
8.3.40.0120.00318.88
8.3.30.0030.01218.57
8.3.20.0040.00419.20
8.3.10.0030.00623.48
8.3.00.0070.00020.90
8.2.300.0110.00918.07
8.2.290.0120.00620.54
8.2.280.0100.00922.31
8.2.270.0090.00916.97
8.2.260.0130.00316.56
8.2.250.0040.00416.68
8.2.240.0060.00316.95
8.2.230.0140.00722.58
8.2.220.0040.00437.54
8.2.210.0130.00726.77
8.2.200.0030.00616.88
8.2.190.0090.00618.64
8.2.180.0040.01118.29
8.2.170.0170.00322.96
8.2.160.0030.01022.12
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.66
8.2.120.0040.00426.35
8.2.110.0090.00019.39
8.2.100.0070.00317.72
8.2.90.0000.00917.50
8.2.80.0110.00217.97
8.2.70.0090.00017.93
8.2.60.0040.00418.16
8.2.50.0090.00018.10
8.2.40.0030.00521.07
8.2.30.0040.00419.07
8.2.20.0000.00717.95
8.2.10.0030.00318.05
8.2.00.0000.00818.21
8.1.340.0130.00717.66
8.1.330.0080.01021.80
8.1.320.0080.00717.89
8.1.310.0000.00816.20
8.1.300.0030.00620.02
8.1.290.0030.00630.84
8.1.280.0140.00725.92
8.1.270.0040.00421.95
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00322.04
8.1.230.0060.00620.91
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.25
8.1.190.0060.00617.13
8.1.180.0040.00418.10
8.1.170.0030.00618.41
8.1.160.0070.00018.68
8.1.150.0040.00418.77
8.1.140.0040.00422.09
8.1.130.0000.00720.02
8.1.120.0050.00517.40
8.1.110.0040.00417.29
8.1.100.0050.00317.35
8.1.90.0000.00817.39
8.1.80.0040.00417.38
8.1.70.0030.00317.25
8.1.60.0000.00817.47
8.1.50.0000.00817.36
8.1.40.0000.00917.35
8.1.30.0040.00417.60
8.1.20.0050.00317.57
8.1.10.0000.00817.43
8.1.00.0050.00317.34
8.0.300.0000.00720.09
8.0.290.0080.00016.63
8.0.280.0000.00718.35
8.0.270.0000.00717.20
8.0.260.0000.00618.43
8.0.250.0060.00316.99
8.0.240.0040.00416.86
8.0.230.0060.00016.83
8.0.220.0030.00516.79
8.0.210.0030.00316.79
8.0.200.0000.00716.89
8.0.190.0000.00817.02
8.0.180.0030.00516.83
8.0.170.0030.00616.90
8.0.160.0040.00416.88
8.0.150.0040.00416.85
8.0.140.0080.00016.85
8.0.130.0000.00513.36
8.0.120.0060.00316.77
8.0.110.0040.00416.84
8.0.100.0000.00716.90
8.0.90.0050.00316.84
8.0.80.0050.01216.81
8.0.70.0040.00416.77
8.0.60.0000.00716.75
8.0.50.0050.00316.83
8.0.30.0120.00617.01
8.0.20.0160.01017.40
8.0.10.0000.00716.91
8.0.00.0180.00316.74
7.4.330.0000.00615.55
7.4.320.0030.00316.40
7.4.300.0070.00016.37
7.4.290.0030.00316.44
7.4.280.0030.00616.56
7.4.270.0070.00016.47
7.4.260.0040.00316.57
7.4.250.0040.00416.43
7.4.240.0040.00416.31
7.4.230.0040.00416.54
7.4.220.0040.00416.29
7.4.210.0130.00516.53
7.4.200.0000.00716.58
7.4.160.0110.00716.51
7.4.140.0080.01117.86
7.4.130.0070.01316.52
7.4.120.0110.00816.45
7.4.110.0160.00316.47
7.4.100.0070.01016.54
7.4.90.0070.01016.54
7.4.80.0000.01819.39
7.4.70.0030.01616.41
7.4.60.0030.01316.44
7.4.50.0110.00716.34
7.4.40.0100.01016.30
7.4.00.0040.01114.95
7.3.330.0000.00513.15
7.3.320.0050.00013.08
7.3.310.0030.00316.09
7.3.300.0000.00716.30
7.3.290.0060.00316.29
7.3.280.0100.00716.28
7.3.260.0090.01016.32
7.3.240.0110.00916.39
7.3.230.0120.00816.59
7.3.210.0090.00916.43
7.3.200.0160.00816.24
7.3.190.0070.01016.56
7.3.180.0060.00916.26
7.3.170.0100.01716.45
7.3.160.0090.00616.45
7.2.330.0150.00316.40
7.2.320.0140.00716.53
7.2.310.0040.01316.45
7.2.300.0100.00516.44
7.2.290.0060.01716.50
7.2.120.1260.01014.30
7.2.110.0840.01614.63
7.2.100.0140.00614.26
7.2.90.0300.00014.38
7.2.80.1000.00714.41
7.2.70.1080.00714.83
7.2.60.0740.01715.08
7.2.50.1550.00614.99
7.2.40.1150.00314.96
7.2.30.0770.01014.92
7.2.20.0700.00614.95
7.2.10.0780.01014.50
7.2.00.0510.01614.49
7.1.240.1090.01013.50
7.1.230.0980.00013.79
7.1.220.0610.00713.52
7.1.210.1040.00713.38
7.1.200.0330.00713.54
7.1.190.1740.00713.88
7.1.180.1000.00713.54
7.1.170.1740.00613.54
7.1.160.0850.00913.46
7.1.150.0810.01313.77
7.1.140.0730.00713.84
7.1.130.1150.00413.71
7.1.120.0680.00413.38
7.1.110.0610.01513.48
7.1.100.0300.00713.77
7.1.90.0240.00513.84
7.1.80.0180.00713.38
7.1.70.0210.01113.74
7.1.60.1390.01013.75
7.1.50.0660.00313.45
7.1.40.1690.00713.35
7.1.30.0720.00013.78
7.1.20.0780.00713.84
7.1.10.0200.00313.59
7.1.00.1350.00613.53
5.6.380.0060.00613.98

preferences:
101.77 ms | 1482 KiB | 5 Q