3v4l.org

run code in 300+ PHP versions simultaneously
<?php $categories=Array ( "1" => "Accounting & Financial", "2" => "Advertising Services", "3" => "Awards & Incentives", "4" => "Business Consultants", "5" => "Career Services", "6" => "Creative Services", "7" => "Data Management", "8" => "Distributors & Agents" ) ; $Service_Provider_Id = Array ( "0" => Array ( "id" => "1" , "category" => "Accounting & Financial" ), "1" => Array ( "id" => "2", "category" => "Advertising Services" ) ); foreach ($categories as $key => $value) { //echo $value."<br>"; if(in_array($value,$Service_Provider_Id)) echo "123"; } ?>

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.40.0080.00818.42
8.3.30.0040.01120.14
8.3.20.0040.00420.16
8.3.10.0080.00022.15
8.3.00.0110.00422.34
8.2.170.0140.00322.96
8.2.160.0110.00320.22
8.2.150.0050.00324.18
8.2.140.0100.01024.66
8.2.130.0000.00826.16
8.2.120.0080.00019.78
8.2.110.0060.01222.01
8.2.100.0040.00817.59
8.2.90.0000.00817.75
8.2.80.0040.00418.66
8.2.70.0000.00817.80
8.2.60.0040.00417.63
8.2.50.0080.00017.55
8.2.40.0050.00319.35
8.2.30.0000.00817.69
8.2.20.0000.00717.71
8.2.10.0070.00017.68
8.2.00.0000.00717.75
8.1.270.0100.00020.45
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00423.96
8.1.230.0080.00319.22
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0050.00218.87
8.1.160.0040.00418.93
8.1.150.0070.00318.54
8.1.140.0040.00417.45
8.1.130.0050.00217.70
8.1.120.0040.00417.45
8.1.110.0000.00717.46
8.1.100.0000.00817.36
8.1.90.0030.00617.45
8.1.80.0030.00417.52
8.1.70.0070.00017.43
8.1.60.0000.00817.46
8.1.50.0040.00417.48
8.1.40.0040.00417.51
8.1.30.0000.00717.61
8.1.20.0040.00417.66
8.1.10.0040.00417.49
8.1.00.0000.00717.25
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0050.00318.02
8.0.270.0030.00318.02
8.0.260.0030.00316.81
8.0.250.0030.00316.96
8.0.240.0050.00316.97
8.0.230.0080.00016.99
8.0.220.0000.00716.79
8.0.210.0000.00716.88
8.0.200.0030.00316.97
8.0.190.0040.00416.90
8.0.180.0040.00416.87
8.0.170.0000.00816.84
8.0.160.0030.00316.86
8.0.150.0030.00316.88
8.0.140.0000.00716.92
8.0.130.0000.00513.32
8.0.120.0000.00816.91
8.0.110.0040.00416.88
8.0.100.0000.00716.84
8.0.90.0000.00716.91
8.0.80.0110.00416.88
8.0.70.0050.00316.84
8.0.60.0040.00416.92
8.0.50.0000.00816.71
8.0.30.0100.01017.07
8.0.20.0100.00817.40
8.0.10.0000.00717.04
8.0.00.0100.01116.66
7.4.330.0000.00515.00
7.4.320.0030.00316.41
7.4.300.0060.00016.49
7.4.290.0070.00016.63
7.4.280.0000.00616.50
7.4.270.0000.00616.52
7.4.260.0030.00316.58
7.4.250.0070.00016.50
7.4.240.0050.00216.56
7.4.230.0050.00216.48
7.4.220.0120.01216.60
7.4.210.0060.00916.58
7.4.200.0000.00716.55
7.4.190.0070.00016.55
7.4.160.0100.00716.42
7.4.150.0110.00617.40
7.4.140.0100.01317.86
7.4.130.0080.00816.45
7.4.120.0140.00516.53
7.4.110.0040.01516.53
7.4.100.0100.01016.48
7.4.90.0170.00716.46
7.4.80.0110.00919.39
7.4.70.0060.00916.52
7.4.60.0100.01016.43
7.4.50.0020.00216.41
7.4.40.0090.00322.77
7.4.30.0100.00616.76
7.4.10.0000.01714.82
7.4.00.0080.00614.99
7.3.330.0040.00213.11
7.3.320.0050.00013.08
7.3.310.0000.00716.21
7.3.300.0030.00316.30
7.3.290.0110.00316.21
7.3.280.0090.00616.24
7.3.270.0100.00717.40
7.3.260.0120.01216.25
7.3.250.0160.00216.42
7.3.240.0190.00416.29
7.3.230.0130.00316.39
7.3.210.0130.00316.29
7.3.200.0110.00519.39
7.3.190.0140.00316.46
7.3.180.0060.00916.42
7.3.170.0130.00316.27
7.3.160.0100.00616.23
7.3.130.0110.00714.77
7.3.120.0080.01015.02
7.3.110.0110.00714.83
7.3.100.0060.00914.85
7.3.90.0100.00314.43
7.3.80.0000.01414.66
7.3.70.0070.01014.88
7.3.60.0110.00414.62
7.3.50.0060.00614.54
7.3.40.0040.00814.60
7.3.30.0060.01014.52
7.3.20.0070.00716.47
7.3.10.0090.00916.48
7.3.00.0070.00716.64
7.2.330.0070.01416.63
7.2.320.0180.00616.29
7.2.310.0210.03716.45
7.2.300.0150.00616.53
7.2.290.0090.00616.71
7.2.260.0060.00914.71
7.2.250.0030.01315.00
7.2.240.0120.00314.89
7.2.230.0140.00015.10
7.2.220.0040.01114.85
7.2.210.0060.00914.94
7.2.200.0070.01014.82
7.2.190.0030.01314.83
7.2.180.0050.00514.88
7.2.170.0080.00815.05
7.2.160.0030.00915.15
7.2.150.0100.01016.77
7.2.140.0030.01416.96
7.2.130.0070.01017.07
7.2.120.0090.00316.85
7.2.110.0030.00916.99
7.2.100.0100.00716.97
7.2.90.0040.01116.68
7.2.80.0100.00616.91
7.2.70.0060.00816.98
7.2.60.0030.01316.87
7.2.50.0030.01016.76
7.2.40.0040.01116.91
7.2.30.0000.01516.99
7.2.20.0000.00917.02
7.2.10.0070.00716.65
7.2.00.0000.01418.00
7.1.330.0060.00615.80
7.1.320.0000.01615.73
7.1.310.0090.00615.71
7.1.300.0030.01015.64
7.1.290.0030.01215.49
7.1.280.0070.01015.57
7.1.270.0030.01415.75
7.1.260.0040.01115.56
7.1.250.0030.01215.74
7.1.240.0100.00615.48
7.1.230.0070.00715.74
7.1.220.0030.00615.71
7.1.210.0000.01115.86
7.1.200.0030.00915.78
7.1.190.0060.00616.03
7.1.180.0070.00715.84
7.1.170.0070.00415.52
7.1.160.0000.01015.73
7.1.150.0090.00315.90
7.1.140.0070.01015.82
7.1.130.0030.01015.77
7.1.120.0060.00915.87
7.1.110.0070.00315.74
7.1.100.0040.00715.90
7.1.90.0000.01115.90
7.1.80.0040.01115.92
7.1.70.0050.00716.26
7.1.60.0030.00816.51
7.1.50.0050.01116.45
7.1.40.0040.00415.47
7.1.30.0070.00715.76
7.1.20.0000.00815.80
7.1.10.0070.00715.43
7.1.00.0080.02319.19
7.0.330.0060.00915.17
7.0.320.0030.00915.60
7.0.310.0090.00315.47
7.0.300.0000.00915.38
7.0.290.0070.00715.29
7.0.280.0030.00815.52
7.0.270.0090.00615.57
7.0.260.0060.00615.24
7.0.250.0040.00815.43
7.0.240.0030.00715.54
7.0.230.0080.00315.18
7.0.220.0120.00315.48
7.0.210.0030.00915.25
7.0.200.0060.00816.21
7.0.190.0040.00415.16
7.0.180.0060.00315.47
7.0.170.0090.00315.33
7.0.160.0030.01315.58
7.0.150.0030.01015.05
7.0.140.0030.04018.72
7.0.130.0000.01315.07
7.0.120.0030.00815.55
7.0.110.0040.00815.25
7.0.100.0030.00815.59
7.0.90.0000.01315.57
7.0.80.0000.00815.62
7.0.70.0070.00715.03
7.0.60.0130.04117.79
7.0.50.0050.04016.59
7.0.40.0030.04216.81
7.0.30.0180.03816.69
7.0.20.0180.02716.73
7.0.10.0130.04416.90
7.0.00.0150.03716.78
5.6.400.0070.01114.47
5.6.390.0130.00014.57
5.6.380.0090.00614.49
5.6.370.0060.00314.57
5.6.360.0030.00714.59
5.6.350.0090.00614.38
5.6.340.0060.01014.59
5.6.330.0060.00614.06
5.6.320.0040.01114.29
5.6.310.0110.00714.24
5.6.300.0000.00914.63
5.6.290.0040.01114.21
5.6.280.0060.03917.62
5.6.270.0000.01214.12
5.6.260.0070.00414.07
5.6.250.0000.01414.27
5.6.240.0060.00614.66
5.6.230.0040.00414.61
5.6.220.0040.01114.38
5.6.210.0070.04017.54
5.6.200.0090.03716.41
5.6.190.0070.04817.34
5.6.180.1850.02817.52
5.6.170.0140.02217.37
5.6.160.0020.03017.19
5.6.150.0080.04216.30
5.6.140.0050.03116.12
5.6.130.0050.02516.27
5.6.120.0100.02317.69
5.6.110.0110.04317.60
5.6.100.0090.03917.60
5.6.90.0060.02217.54
5.6.80.0050.04217.13
5.6.70.0130.04017.37
5.6.60.0100.00314.10
5.6.50.0040.00414.27
5.6.40.0000.01514.09
5.6.30.0090.00914.27
5.6.20.0000.01214.09
5.6.10.0030.01014.27
5.6.00.0040.00714.39
5.5.380.0000.01313.98
5.5.370.0070.01014.41
5.5.360.0040.00714.20
5.5.350.0140.04017.32
5.5.340.0050.02416.12
5.5.330.0030.02517.19
5.5.320.0120.03617.27
5.5.310.0150.03317.16
5.5.300.0110.04016.17
5.5.290.0040.03016.10
5.5.280.0070.04717.46
5.5.270.0070.02217.80
5.5.260.0120.03717.62
5.5.250.0050.04717.43
5.5.240.0130.02817.19
5.5.230.0060.00614.11
5.5.220.0030.00914.20
5.5.210.0040.00814.35
5.5.200.0060.01214.13
5.5.190.0030.00913.88
5.5.180.0030.00714.06
5.5.170.0000.01514.22
5.5.160.0060.00614.21
5.5.150.0100.00614.30
5.5.140.0110.00314.07
5.5.130.0100.00314.32
5.5.120.0060.00314.28
5.5.110.0000.01113.99
5.5.100.0070.00314.20
5.5.90.0080.00414.18
5.5.80.0030.00613.97
5.5.70.0080.00314.27
5.5.60.0040.01114.20
5.5.50.0070.00614.19
5.5.40.0000.01613.96
5.5.30.0040.01114.04
5.5.20.0060.00914.15
5.5.10.0030.00914.21
5.5.00.0060.00813.81
5.4.450.0520.03016.06
5.4.440.0420.02816.03
5.4.430.0080.03015.95
5.4.420.0370.03116.21
5.4.410.0450.02715.97
5.4.400.0070.04015.77
5.4.390.0230.02515.73
5.4.380.0140.03015.63
5.4.370.0100.03015.64
5.4.360.0160.03515.64
5.4.350.0040.02412.38
5.4.340.0080.02412.38
5.4.330.0000.00812.79
5.4.320.0030.02312.63
5.4.310.0090.02312.63
5.4.300.0050.02112.63
5.4.290.0070.02312.62
5.4.280.0060.02012.57
5.4.270.0090.02112.57
5.4.260.0030.02312.57
5.4.250.0030.03315.83
5.4.240.0050.02815.90
5.4.230.0100.02315.78
5.4.220.0030.03115.86
5.4.210.0080.02715.75
5.4.200.0070.02715.77
5.4.190.0080.02515.83
5.4.180.0020.03115.88
5.4.170.0050.03315.82
5.4.160.0070.02915.84
5.4.150.0070.02915.88
5.4.140.0050.03014.64
5.4.130.0070.02614.54
5.4.120.0040.03014.64
5.4.110.0100.02614.61
5.4.100.0100.02514.53
5.4.90.0020.04014.61
5.4.80.0030.03714.65
5.4.70.0090.02314.53
5.4.60.0120.02214.57
5.4.50.0050.02814.63
5.4.40.0080.02514.59
5.4.30.0070.02714.62
5.4.20.0100.02714.56
5.4.10.0040.03114.56
5.4.00.0130.03014.27
5.3.290.0040.02412.80
5.3.280.0050.02813.70
5.3.270.0020.03113.70
5.3.260.0070.02913.55
5.3.250.0040.02813.72
5.3.240.0050.02813.71
5.3.230.0050.02913.61
5.3.220.0080.02513.68
5.3.210.0120.02313.75
5.3.200.0040.03313.53
5.3.190.0030.03513.63
5.3.180.0090.03713.56
5.3.170.0050.03513.68
5.3.160.0070.02613.68
5.3.150.0050.02813.69
5.3.140.0030.03013.62
5.3.130.0040.03013.60
5.3.120.0070.02913.68
5.3.110.0050.02813.60
5.3.100.0050.02813.41
5.3.90.0050.02913.41
5.3.80.0050.02913.29
5.3.70.0060.02813.25
5.3.60.0070.02813.40
5.3.50.0080.03813.33
5.3.40.0030.02913.29
5.3.30.0100.02313.28
5.3.20.0100.02213.25
5.3.10.0080.02413.24
5.3.00.0010.03113.06
5.2.170.0030.05711.08
5.2.160.0030.04011.23
5.2.150.0030.04711.24
5.2.140.0070.05711.15
5.2.130.0070.04011.11
5.2.120.0070.03711.12
5.2.110.0030.04311.02
5.2.100.0130.03011.11
5.2.90.0070.03711.04
5.2.80.0070.04311.10
5.2.70.0000.04311.11
5.2.60.0070.03711.14
5.2.50.0070.04011.02
5.2.40.0030.04010.84
5.2.30.0070.04010.97
5.2.20.0000.05310.97
5.2.10.0070.03710.86
5.2.00.0030.04010.88
5.1.60.0000.03710.18
5.1.50.0070.03010.08
5.1.40.0000.0509.96
5.1.30.0070.03310.41
5.1.20.0070.03310.41
5.1.10.0070.03310.09
5.1.00.0030.03710.15
5.0.50.0000.0338.56
5.0.40.0070.0238.32
5.0.30.0100.0338.29
5.0.20.0030.0278.24
5.0.10.0030.0278.17
5.0.00.0030.0477.95
4.4.90.0030.0207.41
4.4.80.0000.0237.41
4.4.70.0000.0237.41
4.4.60.0000.0237.41
4.4.50.0030.0207.41
4.4.40.0000.0377.41
4.4.30.0100.0207.41
4.4.20.0000.0237.41
4.4.10.0000.0237.41
4.4.00.0000.0337.41
4.3.110.0000.0237.41
4.3.100.0000.0237.41
4.3.90.0030.0207.41
4.3.80.0030.0307.41
4.3.70.0000.0277.41
4.3.60.0000.0237.41
4.3.50.0030.0207.41
4.3.40.0030.0307.41
4.3.30.0030.0207.41
4.3.20.0000.0237.41
4.3.10.0000.0307.41
4.3.00.0000.0237.20

preferences:
47.44 ms | 400 KiB | 5 Q