3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = array( 'client_id' => 'apiClientId', 'client_secret' => 'apiClientSecret', 'grant_type' => 'password', 'username' => 'apiUsername', 'password' => 'apiPassword', ); $request = array( 'http' => array( 'method' => 'POST', 'header' => array( 'Content-type: application/x-www-form-urlencoded', ), 'content' => http_build_query($params), 'timeout' => 10, ) ); if (!$response = file_get_contents('https://moj.minimax.si/demo/si/aut/oauth20/token', false, stream_context_create($request))) { die('auth error'); } $token = json_decode($response);

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.60.0120.00316.63
8.3.50.0100.00821.97
8.3.40.0000.01518.96
8.3.30.0120.00318.98
8.3.20.0040.00420.21
8.3.10.0040.00421.73
8.3.00.0080.00020.04
8.2.180.0130.00617.00
8.2.170.0170.00322.96
8.2.160.0100.00720.26
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.10
8.2.120.0080.00026.35
8.2.110.0030.00622.20
8.2.100.0100.00318.05
8.2.90.0000.00819.21
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0040.00418.16
8.2.50.0060.00318.07
8.2.40.0030.00720.46
8.2.30.0000.00720.55
8.2.20.0070.00017.81
8.2.10.0050.00218.05
8.2.00.0000.00718.13
8.1.280.0150.00325.92
8.1.270.0040.00420.42
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0000.00823.92
8.1.230.0120.00017.82
8.1.220.0060.00317.79
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0030.00617.35
8.1.180.0060.00318.10
8.1.170.0080.00018.46
8.1.160.0050.00320.78
8.1.150.0000.00718.90
8.1.140.0000.00819.58
8.1.130.0030.00317.67
8.1.120.0000.00717.39
8.1.110.0070.00017.52
8.1.100.0050.00317.56
8.1.90.0000.00717.48
8.1.80.0040.00417.36
8.1.70.0000.00717.39
8.1.60.0030.00617.61
8.1.50.0030.00617.41
8.1.40.0030.00517.56
8.1.30.0040.00417.71
8.1.20.0040.00417.64
8.1.10.0000.00817.48
8.1.00.0040.00417.41
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.38
8.0.270.0030.00317.38
8.0.260.0040.00417.30
8.0.250.0000.00717.10
8.0.240.0090.00017.09
8.0.230.0030.00317.06
8.0.220.0030.00416.99
8.0.210.0030.00416.93
8.0.200.0040.00417.07
8.0.190.0030.00617.10
8.0.180.0040.00417.05
8.0.170.0000.00817.05
8.0.160.0070.00017.02
8.0.150.0040.00416.97
8.0.140.0080.00016.98
8.0.130.0030.00313.42
8.0.120.0080.00016.98
8.0.110.0000.00817.02
8.0.100.0000.00816.92
8.0.90.0030.00516.89
8.0.80.0100.00717.04
8.0.70.0000.00717.09
8.0.60.0040.00416.88
8.0.50.0040.00416.89
8.0.30.0120.00317.16
8.0.20.0090.01017.40
8.0.10.0050.00317.14
8.0.00.0080.01116.95
7.4.330.0050.00016.82
7.4.320.0000.00716.53
7.4.300.0070.00016.54
7.4.290.0030.00316.52
7.4.280.0000.00716.60
7.4.270.0030.00316.54
7.4.260.0030.00516.57
7.4.250.0000.00716.50
7.4.240.0010.00616.51
7.4.230.0070.00016.62
7.4.220.0130.00616.48
7.4.210.0040.01116.60
7.4.200.0040.00416.30
7.4.160.0040.01216.36
7.4.150.0080.00817.40
7.4.140.0200.00317.86
7.4.130.0100.00916.61
7.4.120.0110.00716.65
7.4.110.0080.00816.41
7.4.100.0150.00416.73
7.4.90.0090.00916.55
7.4.80.0070.01019.39
7.4.70.0160.00316.48
7.4.60.0130.00316.58
7.4.50.0070.01016.30
7.4.40.0170.00016.71
7.4.30.0040.01816.48
7.4.00.0000.01714.89
7.3.330.0020.00213.09
7.3.320.0000.00513.16
7.3.310.0030.00316.21
7.3.300.0000.00816.31
7.3.290.0060.01016.34
7.3.280.0160.00216.39
7.3.270.0060.01217.40
7.3.260.0120.00616.49
7.3.250.0100.01216.41
7.3.240.0080.01016.44
7.3.230.0110.01116.39
7.3.210.0070.01016.43
7.3.200.0040.01316.37
7.3.190.0060.01116.27
7.3.180.0100.00616.55
7.3.170.0100.00816.40
7.3.160.0130.00616.55
7.2.330.0040.01416.36
7.2.320.0150.00816.59
7.2.310.0100.00716.61
7.2.300.0100.01016.66
7.2.290.0060.01616.81
7.2.60.0060.00616.82
7.2.00.0030.01019.75
7.1.200.0030.01015.88
7.1.100.0060.01218.56
7.1.70.0050.00217.59
7.1.60.0180.00719.44
7.1.50.0100.01317.39
7.1.00.0030.07722.71
7.0.200.0000.00916.96
7.0.60.0030.05720.23
7.0.50.0130.07318.22
7.0.40.0130.08020.64
7.0.30.0430.06020.46
7.0.20.0330.05320.51
7.0.10.0100.08320.50
7.0.00.0130.04020.53
5.6.280.0030.03321.47
5.6.210.0100.08020.96
5.6.200.0130.07718.48
5.6.190.0030.05721.04
5.6.180.0300.05721.02
5.6.170.0370.04720.82
5.6.160.0100.08020.86
5.6.150.0100.05718.50
5.6.140.0030.09018.51
5.6.130.0070.08718.41
5.6.120.0030.05721.52
5.6.110.0070.08321.53
5.6.100.0070.08721.39
5.6.90.0270.06721.52
5.6.80.0130.07020.88
5.5.350.0070.08020.65
5.5.340.0100.05318.32
5.5.330.0070.08320.86
5.5.320.0230.05320.63
5.5.310.0230.06320.66
5.5.300.0030.07318.36
5.5.290.0070.09018.32
5.5.280.0070.04321.30
5.5.270.0030.04721.15
5.5.260.0170.07321.05
5.5.250.0030.07721.02
5.5.240.4300.03320.54

preferences:
50.09 ms | 401 KiB | 5 Q