3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filter = array( "grant_type" => array("filter" => FILTER_VALIDATE_REGEXP, "options" => array("regexp" => "/^(authorization_code|password|assertion|refresh_token|none)$/"), "flags" => FILTER_REQUIRE_SCALAR), "scope" => array("flags" => FILTER_REQUIRE_SCALAR), "code" => array("flags" => FILTER_REQUIRE_SCALAR), "redirect_uri" => array("filter" => FILTER_SANITIZE_URL), "username" => array("flags" => FILTER_REQUIRE_SCALAR), "password" => array("flags" => FILTER_REQUIRE_SCALAR), "assertion_type" => array("flags" => FILTER_REQUIRE_SCALAR), "assertion" => array("flags" => FILTER_REQUIRE_SCALAR), "refresh_token" => array("flags" => FILTER_REQUIRE_SCALAR), "user_id" => array("filter" => FILTER_VALIDATE_INT), ); $arResult["user_id"] = 1234; $arResult["client_id"] = 'test'; $arResult = filter_var_array($arResult, $filter); var_dump($arResult);

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.0090.00918.27
8.3.50.0110.00821.08
8.3.40.0120.00318.58
8.3.30.0100.01020.28
8.3.20.0000.00820.36
8.3.10.0030.00621.10
8.3.00.0000.00722.52
8.2.180.0070.00716.63
8.2.170.0100.01022.96
8.2.160.0100.00320.58
8.2.150.0040.00424.18
8.2.140.0040.00724.66
8.2.130.0070.00026.16
8.2.120.0040.00421.03
8.2.110.0060.00320.47
8.2.100.0040.00717.91
8.2.90.0000.00919.22
8.2.80.0040.00419.21
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0040.00718.07
8.2.40.0050.00317.95
8.2.30.0070.00019.44
8.2.20.0000.00717.54
8.2.10.0040.00417.64
8.2.00.0000.00817.53
8.1.280.0090.00625.92
8.1.270.0030.00623.99
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0030.00622.74
8.1.230.0090.00319.10
8.1.220.0000.00818.77
8.1.210.0040.00418.91
8.1.200.0060.00317.35
8.1.190.0040.00417.50
8.1.180.0040.00418.10
8.1.170.0080.00018.59
8.1.160.0070.00018.82
8.1.150.0080.00018.57
8.1.140.0040.00417.43
8.1.130.0070.00017.73
8.1.120.0000.00717.30
8.1.110.0040.00417.39
8.1.100.0020.00517.27
8.1.90.0070.00017.41
8.1.80.0040.00417.39
8.1.70.0030.00317.32
8.1.60.0000.00817.48
8.1.50.0040.00417.50
8.1.40.0060.00317.35
8.1.30.0040.00417.50
8.1.20.0080.00017.54
8.1.10.0040.00417.54
8.1.00.0040.00417.44
8.0.300.0090.00019.84
8.0.290.0040.00417.18
8.0.280.0000.00718.37
8.0.270.0000.00717.19
8.0.260.0030.00316.69
8.0.250.0030.00316.90
8.0.240.0070.00316.85
8.0.230.0000.00716.89
8.0.220.0000.00716.72
8.0.210.0080.00016.80
8.0.200.0000.00616.86
8.0.190.0020.00516.79
8.0.180.0040.00416.76
8.0.170.0040.00416.86
8.0.160.0070.00016.82
8.0.150.0050.00216.76
8.0.140.0000.00716.76
8.0.130.0060.00013.19
8.0.120.0050.00316.80
8.0.110.0000.00816.81
8.0.100.0070.00016.87
8.0.90.0050.00216.74
8.0.80.0070.01016.85
8.0.70.0000.00716.78
8.0.60.0000.00816.94
8.0.50.0080.00016.79
8.0.30.0100.00917.07
8.0.20.0120.01117.40
8.0.10.0020.00516.75
8.0.00.0100.00916.76
7.4.330.0020.00216.77
7.4.320.0060.00016.54
7.4.300.0060.00016.54
7.4.290.0000.00716.43
7.4.280.0070.00016.54
7.4.270.0000.00816.42
7.4.260.0030.00313.17
7.4.250.0030.00316.40
7.4.240.0030.00416.57
7.4.230.0030.00316.28
7.4.220.0130.00716.60
7.4.210.0120.00416.46
7.4.200.0030.00316.55
7.4.190.0030.00316.66
7.4.160.0120.01216.20
7.4.150.0120.00817.40
7.4.140.0090.01417.86
7.4.130.0070.01416.48
7.4.120.0110.00816.42
7.4.110.0060.01116.27
7.4.100.0000.02216.41
7.4.90.0030.01616.40
7.4.80.0100.01019.39
7.4.70.0100.01016.59
7.4.60.0060.01616.42
7.4.50.0000.00816.30
7.4.40.0030.01222.77
7.4.30.0070.01016.49
7.4.00.0030.01014.90
7.3.330.0000.00513.11
7.3.320.0060.00013.07
7.3.310.0020.00516.24
7.3.300.0030.00316.19
7.3.290.0070.00716.16
7.3.280.0090.00816.21
7.3.270.0170.00917.40
7.3.260.0060.01518.24
7.3.250.0070.01316.38
7.3.240.0140.00316.24
7.3.230.0170.00016.47
7.3.210.0100.00716.61
7.3.200.0140.00316.41
7.3.190.0140.00516.29
7.3.180.0070.01016.36
7.3.170.0060.01316.27
7.3.160.0070.01316.25
7.3.120.0070.01014.75
7.3.10.0030.01016.53
7.3.00.0120.00316.49
7.2.330.0040.01216.32
7.2.320.0150.00416.70
7.2.310.0120.01216.61
7.2.300.0100.00716.74
7.2.290.0100.00716.70
7.2.130.0130.00616.58
7.2.120.0080.00816.34
7.2.110.0150.01016.37
7.2.100.0120.00716.80
7.2.90.0070.01616.48
7.2.80.0100.00716.63
7.2.70.0030.01016.81
7.2.60.0190.00016.37
7.2.50.0100.01016.52
7.2.40.0100.00716.63
7.2.30.0060.00916.53
7.2.20.0100.00716.33
7.2.10.0070.00716.35
7.2.00.0030.00817.98
7.1.250.0210.00015.44
7.1.100.0030.00917.75
7.1.70.0040.00416.84
7.1.60.0160.00719.17
7.1.50.0030.01716.63
7.1.00.0030.07022.30
7.0.200.0040.00416.79
7.0.140.0070.06722.11
7.0.100.0070.07719.86
7.0.90.0100.09719.84
7.0.80.0030.04019.80
7.0.70.0000.08719.84
7.0.60.0030.05019.89
7.0.50.0400.04320.23
7.0.40.0030.08320.07
7.0.30.0070.04320.02
7.0.20.0130.08320.13
7.0.10.0030.05720.11
7.0.00.0030.08020.02
5.6.280.0030.05321.02
5.6.250.0070.08320.45
5.6.240.0170.07320.70
5.6.230.0100.08320.57
5.6.220.0130.07020.62
5.6.210.0100.04020.61
5.6.200.0030.09320.97
5.6.190.0070.08320.96
5.6.180.0100.07721.01
5.6.170.0070.08320.91
5.6.160.0070.04720.96
5.6.150.0100.08320.90
5.6.140.0130.07320.89
5.6.130.0100.07720.95
5.6.120.0170.08021.11
5.6.110.0130.06721.11
5.6.100.0100.05321.05
5.6.90.0070.07720.84
5.6.80.0130.07020.39
5.6.70.0070.04320.25
5.6.60.0030.05020.45
5.6.50.0070.04020.29
5.6.40.0000.05020.33
5.6.30.0130.07720.26
5.6.20.0100.08020.32
5.6.10.0130.05020.34
5.6.00.0070.04020.45
5.5.380.0100.08320.36
5.5.370.0100.07720.49
5.5.360.0000.08020.29
5.5.350.0130.06720.30
5.5.340.0000.09020.81
5.5.330.0200.08320.88
5.5.320.0100.05720.75
5.5.310.0100.05720.78
5.5.300.0130.07020.80
5.5.290.0070.07320.74
5.5.280.0130.08020.87
5.5.270.0200.07720.76
5.5.260.0030.05020.77
5.5.250.0130.06020.61
5.5.240.0130.06720.14
5.5.230.0030.05020.22
5.5.220.0130.07020.10
5.5.210.0100.04720.24
5.5.200.0100.05020.22
5.5.190.0100.04020.16
5.5.180.0100.04320.18
5.5.160.0200.06720.20
5.5.150.0030.05020.09
5.5.140.0170.07320.09
5.5.130.0030.07019.93
5.5.120.0100.07320.13
5.5.110.0130.07320.05
5.5.100.0030.08020.05
5.5.90.0130.07020.11
5.5.80.0100.08020.10
5.5.70.0030.06719.98
5.5.60.0030.08320.00
5.5.50.0030.05320.09
5.5.40.0070.05320.10
5.5.30.0100.07319.87
5.5.20.0070.07320.07
5.5.10.0100.07019.98
5.5.00.0070.07720.00
5.4.450.0100.07719.47
5.4.440.0100.06319.23
5.4.430.0130.07719.13
5.4.420.0130.07319.26
5.4.410.0100.04019.32
5.4.400.0100.07319.03
5.4.390.0030.06018.90
5.4.380.0130.06719.13
5.4.370.0100.07718.95
5.4.360.0070.06018.98
5.4.350.0170.07319.05
5.4.340.0100.07318.91
5.4.320.0100.06319.04
5.4.310.0070.04018.91
5.4.300.0070.07719.12
5.4.290.0000.05019.13
5.4.280.0130.06718.78
5.4.270.0070.03318.81
5.4.260.0070.04719.04
5.4.250.0070.08018.94
5.4.240.0030.04719.21
5.4.230.0030.05718.94
5.4.220.0000.08018.96
5.4.210.0070.07318.80
5.4.200.0030.08319.11
5.4.190.0070.04018.89
5.4.180.0100.07319.11
5.4.170.0100.07019.11
5.4.160.0030.08318.97
5.4.150.0070.05019.04
5.4.140.0000.04716.02
5.4.130.0100.07716.20
5.4.120.0100.06716.30
5.4.110.0030.06716.42
5.4.100.0130.07716.47
5.4.90.0070.07316.41
5.4.80.0070.07016.31
5.4.70.0000.06716.19
5.4.60.0030.07716.43
5.4.50.0030.04016.30
5.4.40.0000.04316.25
5.4.30.0030.05016.35
5.4.20.0000.07316.41
5.4.10.0070.06316.39
5.4.00.0070.07315.67
5.3.290.0130.03714.66
5.3.280.0000.04714.55
5.3.270.0030.07014.56
5.3.260.0030.04014.54
5.3.250.0070.04714.60
5.3.240.0070.04314.54
5.3.230.0130.07314.56
5.3.220.0030.05314.55
5.3.210.0070.07314.50
5.3.200.0030.08014.51
5.3.190.0000.05014.58
5.3.180.0100.04014.56
5.3.170.0100.06714.51
5.3.160.0130.03314.54
5.3.150.0030.04014.55
5.3.140.0030.07014.56
5.3.130.0100.03714.52
5.3.120.0170.07714.54
5.3.110.0100.07314.51
5.3.100.0130.06714.00
5.3.90.0030.04313.88
5.3.80.0030.06013.78
5.3.70.0070.07013.88
5.3.60.0000.08313.96
5.3.50.0100.05713.72
5.3.40.0070.06713.94
5.3.30.0030.06013.77
5.3.20.0030.05313.67
5.3.10.0100.07313.60
5.3.00.0030.04313.60
5.2.170.0030.04710.98
5.2.160.0070.04711.14
5.2.150.0030.02711.14
5.2.140.0100.05711.18
5.2.130.0000.04010.98
5.2.120.0070.05310.95
5.2.110.0070.05310.95
5.2.100.0030.06711.16
5.2.90.0030.06311.14
5.2.80.0000.03011.09
5.2.70.0030.02711.06
5.2.60.0030.06310.88
5.2.50.0030.02710.86
5.2.40.0070.05710.83
5.2.30.0000.06310.99
5.2.20.0030.05310.95
5.2.10.0070.02010.85
5.2.00.0030.02710.70
5.1.60.0000.0239.98
5.1.50.0100.0479.98
5.1.40.0030.04010.01
5.1.30.0000.03710.36
5.1.20.0070.04310.43
5.1.10.0030.0279.95
5.1.00.0030.05310.11
5.0.50.0030.0278.64
5.0.40.0000.0338.30
5.0.30.0030.0578.12
5.0.20.0030.0478.29
5.0.10.0000.0378.28
5.0.00.0030.0638.27
4.4.90.0030.0107.43
4.4.80.0030.0137.43
4.4.70.0000.0377.43
4.4.60.0030.0337.43
4.4.50.0000.0337.43
4.4.40.0030.0277.43
4.4.30.0030.0337.43
4.4.20.0030.0307.43
4.4.10.0000.0407.43
4.4.00.0030.0577.43
4.3.110.0030.0237.43
4.3.100.0070.0277.43
4.3.90.0070.0237.43
4.3.80.0030.0537.43
4.3.70.0030.0237.43
4.3.60.0000.0207.43
4.3.50.0000.0277.43
4.3.40.0070.0507.43
4.3.30.0000.0207.43
4.3.20.0000.0207.43
4.3.10.0000.0307.43
4.3.00.0000.0237.43

preferences:
46.13 ms | 401 KiB | 5 Q