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) { 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.70.0110.00716.38
8.3.60.0100.01018.43
8.3.50.0260.00721.14
8.3.40.0100.01018.57
8.3.30.0070.00720.17
8.3.20.0040.00420.29
8.3.10.0040.00421.97
8.3.00.0040.00422.64
8.2.190.0070.01118.16
8.2.180.0140.00016.50
8.2.170.0110.00422.96
8.2.160.0050.00820.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.64
8.2.110.0030.00622.25
8.2.100.0040.00719.48
8.2.90.0050.00519.06
8.2.80.0000.00719.25
8.2.70.0000.00817.63
8.2.60.0000.00818.04
8.2.50.0080.00018.07
8.2.40.0050.00218.16
8.2.30.0050.00217.98
8.2.20.0040.00417.74
8.2.10.0000.00817.73
8.2.00.0040.00417.65
8.1.280.0120.00325.92
8.1.270.0160.00320.40
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.75
8.1.230.0110.00019.16
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0050.00517.25
8.1.190.0080.00017.40
8.1.180.0070.00018.84
8.1.170.0040.00418.49
8.1.160.0030.00622.17
8.1.150.0040.00718.55
8.1.140.0040.00417.39
8.1.130.0030.00317.77
8.1.120.0000.00717.36
8.1.110.0000.00917.44
8.1.100.0000.00717.51
8.1.90.0040.00417.41
8.1.80.0030.00317.48
8.1.70.0030.00317.36
8.1.60.0000.00817.58
8.1.50.0000.00817.51
8.1.40.0070.00017.54
8.1.30.0070.00017.64
8.1.20.0050.00317.62
8.1.10.0000.00817.35
8.1.00.0000.00817.34
8.0.300.0000.00718.77
8.0.290.0040.00417.17
8.0.280.0000.00718.36
8.0.270.0030.00317.25
8.0.260.0000.00716.77
8.0.250.0030.00317.02
8.0.240.0040.00417.00
8.0.230.0000.00716.83
8.0.220.0000.00716.80
8.0.210.0030.00316.80
8.0.200.0030.00316.96
8.0.190.0030.00516.86
8.0.180.0040.00416.89
8.0.170.0040.00416.81
8.0.160.0000.00716.91
8.0.150.0040.00416.82
8.0.140.0030.00316.86
8.0.130.0030.00313.29
8.0.120.0040.00416.73
8.0.110.0050.00316.72
8.0.100.0040.00416.85
8.0.90.0070.00016.77
8.0.80.0040.01116.87
8.0.70.0000.00716.96
8.0.60.0080.00016.84
8.0.50.0000.00716.68
8.0.30.0070.01116.89
8.0.20.0100.00817.40
8.0.10.0050.00216.83
8.0.00.0100.01216.81
7.4.330.0050.00015.00
7.4.320.0000.00616.41
7.4.300.0030.00516.45
7.4.290.0000.00616.65
7.4.280.0000.00716.60
7.4.270.0060.00016.43
7.4.260.0040.00416.50
7.4.250.0070.00016.55
7.4.240.0020.00516.58
7.4.230.0030.00316.65
7.4.220.0070.01116.43
7.4.210.0070.00916.53
7.4.200.0040.00416.61
7.4.190.0030.00316.38
7.4.160.0100.00716.46
7.4.150.0090.01517.40
7.4.140.0120.00717.86
7.4.130.0120.00516.48
7.4.120.0100.00816.42
7.4.110.0070.01016.56
7.4.100.0060.01616.47
7.4.90.0120.00616.56
7.4.80.0100.01319.39
7.4.70.0000.01616.57
7.4.60.0080.00816.38
7.4.50.0000.00616.65
7.4.40.0110.00722.77
7.4.30.0030.01316.54
7.4.00.0060.01014.90
7.3.330.0000.00513.16
7.3.320.0020.00213.05
7.3.310.0030.00316.23
7.3.300.0000.00816.26
7.3.290.0000.01416.25
7.3.280.0110.00916.27
7.3.270.0030.01617.40
7.3.260.0090.00916.49
7.3.250.0070.00916.38
7.3.240.0100.01016.31
7.3.230.0100.00616.50
7.3.210.0130.00316.37
7.3.200.0120.00319.39
7.3.190.0120.00616.55
7.3.180.0100.00616.22
7.3.170.0060.01016.38
7.3.160.0100.00616.42
7.3.120.0060.01014.97
7.3.110.0070.00914.77
7.3.100.0120.00214.59
7.3.90.0090.00714.91
7.3.80.0060.00814.78
7.3.70.0030.00914.80
7.3.60.0070.00614.71
7.3.50.0050.01214.74
7.3.40.0020.00914.53
7.3.30.0040.00914.66
7.3.20.0080.00516.58
7.3.10.0050.00916.64
7.3.00.0040.01216.36
7.2.330.0060.01016.50
7.2.320.0030.01516.59
7.2.310.0060.01716.64
7.2.300.0100.00616.66
7.2.290.0090.00916.44
7.2.250.0100.00914.98
7.2.240.0100.01014.87
7.2.230.0030.01414.95
7.2.220.0010.01315.13
7.2.210.0030.00814.91
7.2.200.0130.00314.93
7.2.190.0070.00414.95
7.2.180.0070.00915.05
7.2.170.0020.01115.03
7.2.60.0040.00816.92
7.2.00.0100.00319.40
7.1.330.0110.00315.78
7.1.320.0100.00515.77
7.1.310.0080.00615.75
7.1.300.0050.01015.75
7.1.290.0050.00915.81
7.1.280.0040.00615.77
7.1.270.0070.00715.75
7.1.260.0060.00715.82
7.1.200.0000.01115.89
7.1.100.0000.01017.84
7.1.70.0000.00717.28
7.1.60.0150.01119.29
7.1.50.0040.00716.64
7.1.00.0070.05022.45
7.0.200.0700.00314.67
7.0.140.0100.06721.95
7.0.60.0070.07019.95
7.0.50.0000.06717.81
7.0.40.0130.08020.27
7.0.30.0370.06720.02
7.0.20.0200.06319.99
7.0.10.0200.04320.12
7.0.00.0100.05020.00
5.6.280.0070.07021.09
5.6.210.0000.09020.66
5.6.200.0070.07018.12
5.6.190.0030.05720.41
5.6.180.4170.03320.41
5.6.170.0130.04320.50
5.6.160.0100.04320.48
5.6.150.0100.07318.21
5.6.140.0170.03718.19
5.6.130.0030.08318.21
5.6.120.0000.04321.03
5.6.110.0030.06020.98
5.6.100.0170.07021.13
5.6.90.0030.04320.96
5.6.80.0130.05320.34
5.6.70.0100.05020.42
5.5.350.0070.07720.52
5.5.340.0030.04017.99
5.5.330.0030.05020.46
5.5.320.0200.05320.14
5.5.310.0430.06720.29
5.5.300.0100.03717.95
5.5.290.0070.08317.90
5.5.280.0030.08320.96
5.5.270.0000.04320.76
5.5.260.0130.07320.73
5.5.250.0130.07720.57
5.5.240.0030.08020.35
5.4.450.0730.05319.64
5.4.440.0900.06019.13
5.4.430.0870.05319.41
5.4.420.0070.05319.60
5.4.410.0870.05019.11
5.4.400.1200.08718.75
5.4.390.0230.04318.72
5.4.380.0430.06018.78
5.4.370.0200.04718.66
5.4.360.0170.04718.63
5.4.350.0060.03611.98
5.4.340.0100.03711.97
5.4.320.0090.03912.46
5.4.310.0060.04712.45
5.4.300.0040.04112.46
5.4.290.0070.03612.45
5.4.280.0080.03412.35
5.4.270.0090.03812.35
5.4.260.0080.04212.35
5.4.250.0100.05318.86
5.4.240.0130.06718.75
5.4.230.0100.07318.90
5.4.220.0100.05318.90
5.4.210.0100.04718.87
5.4.200.0030.07318.76
5.4.190.0170.04718.99
5.4.180.0100.08018.60
5.4.170.0170.06318.76
5.4.160.0130.06018.68
5.4.150.0130.07718.72
5.4.140.0100.05316.25
5.4.130.0070.05016.37
5.4.120.0230.06016.45
5.4.110.0030.06016.24
5.4.100.0100.07316.34
5.4.90.0130.04316.48
5.4.80.0130.05716.41
5.4.70.0230.04016.50
5.4.60.0070.07716.19
5.4.50.0100.05016.36
5.4.40.0100.06316.22
5.4.30.0030.06016.16
5.4.20.0000.06316.24
5.4.10.0070.05016.32
5.4.00.0030.07015.93
5.3.290.0080.03912.80
5.3.280.0170.04714.36
5.3.270.0170.06714.75
5.3.260.0030.06014.52
5.3.250.0130.07014.70
5.3.240.0070.05014.60
5.3.230.0130.04714.61
5.3.220.0100.07014.57
5.3.210.0100.05014.42
5.3.200.0030.05314.45
5.3.190.0030.05714.66
5.3.180.0070.06714.58
5.3.170.0000.07014.34
5.3.160.0100.05014.42
5.3.150.0100.05014.42
5.3.140.0070.05314.47
5.3.130.0130.07014.55
5.3.120.0070.08014.56
5.3.110.0070.08314.25
5.3.100.0200.04714.05
5.3.90.0170.05713.79
5.3.80.0130.05014.06
5.3.70.0070.05013.72
5.3.60.0100.05014.15
5.3.50.0100.05013.78
5.3.40.0070.05313.97
5.3.30.0100.04313.95
5.3.20.0130.05713.71
5.3.10.0030.07313.64
5.3.00.0100.07013.63
5.2.170.0030.05311.03
5.2.160.0070.04311.15
5.2.150.0070.06011.06
5.2.140.0070.04311.07
5.2.130.0130.05311.11
5.2.120.0170.04311.11
5.2.110.0100.05311.11
5.2.100.0070.05311.10
5.2.90.0100.05311.21
5.2.80.0070.05710.92
5.2.70.0070.05010.98
5.2.60.0070.05311.07
5.2.50.0070.03710.86
5.2.40.0030.05711.00
5.2.30.0030.04310.86
5.2.20.0070.04010.99
5.2.10.0070.03710.84
5.2.00.0030.04310.79
5.1.60.0070.0479.92
5.1.50.0070.0339.88
5.1.40.0100.0309.91
5.1.30.0000.05310.34
5.1.20.0070.03310.12
5.1.10.0030.03710.26
5.1.00.0030.03710.16
5.0.50.0070.0378.39
5.0.40.0030.0278.37
5.0.30.0070.0538.12
5.0.20.0030.0278.02
5.0.10.0000.0308.20
5.0.00.0030.0438.21
4.4.90.0070.0237.38
4.4.80.0000.0237.38
4.4.70.0070.0207.38
4.4.60.0030.0307.38
4.4.50.0070.0177.38
4.4.40.0030.0337.38
4.4.30.0000.0237.38
4.4.20.0000.0277.38
4.4.10.0030.0237.38
4.4.00.0030.0337.38
4.3.110.0030.0237.38
4.3.100.0070.0177.38
4.3.90.0030.0237.38
4.3.80.0000.0337.38
4.3.70.0000.0237.38
4.3.60.0070.0237.38
4.3.50.0030.0277.38
4.3.40.0070.0377.38
4.3.30.0030.0237.38
4.3.20.0030.0277.38
4.3.10.0070.0177.38
4.3.00.0100.0237.20

preferences:
52.46 ms | 401 KiB | 5 Q