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("Accounting & Financial",$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.60.0140.00718.13
8.3.50.0130.00321.14
8.3.40.0110.00418.45
8.3.30.0070.00720.17
8.3.20.0040.00420.39
8.3.10.0080.00022.04
8.3.00.0000.00722.44
8.2.180.0120.00316.38
8.2.170.0100.01022.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0140.00024.66
8.2.130.0140.00026.16
8.2.120.0090.00019.76
8.2.110.0100.00019.27
8.2.100.0040.00717.88
8.2.90.0030.00519.05
8.2.80.0040.00417.97
8.2.70.0040.00417.25
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0030.00618.34
8.2.30.0030.00517.98
8.2.20.0040.00417.66
8.2.10.0040.00417.73
8.2.00.0000.00717.73
8.1.280.0070.00725.92
8.1.270.0030.00620.36
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00621.43
8.1.230.0000.01117.45
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0000.00817.23
8.1.180.0040.00418.80
8.1.170.0040.00418.50
8.1.160.0030.00522.01
8.1.150.0030.00618.63
8.1.140.0000.00717.36
8.1.130.0000.00717.74
8.1.120.0000.00717.40
8.1.110.0000.00717.46
8.1.100.0000.00717.44
8.1.90.0050.00317.38
8.1.80.0000.00717.50
8.1.70.0030.00317.41
8.1.60.0040.00417.58
8.1.50.0000.00817.53
8.1.40.0000.00817.41
8.1.30.0080.00017.48
8.1.20.0040.00417.62
8.1.10.0000.00717.31
8.1.00.0070.00017.38
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.45
8.0.270.0030.00317.24
8.0.260.0030.00316.86
8.0.250.0000.00616.98
8.0.240.0080.00016.85
8.0.230.0060.00316.93
8.0.220.0030.00516.82
8.0.210.0070.00016.95
8.0.200.0020.00516.96
8.0.190.0040.00416.95
8.0.180.0030.00316.94
8.0.170.0040.00416.80
8.0.160.0050.00316.78
8.0.150.0000.00716.71
8.0.140.0070.00016.75
8.0.130.0050.00013.31
8.0.120.0000.00716.74
8.0.110.0000.00716.93
8.0.100.0070.00016.91
8.0.90.0050.00216.84
8.0.80.0070.01416.88
8.0.70.0000.00916.76
8.0.60.0020.00516.92
8.0.50.0040.00416.76
8.0.30.0120.00716.94
8.0.20.0080.01117.40
8.0.10.0000.00717.04
8.0.00.0090.01116.69
7.4.330.0050.00015.00
7.4.320.0000.00616.63
7.4.300.0000.00716.61
7.4.290.0070.00016.45
7.4.280.0030.00316.52
7.4.270.0030.00316.41
7.4.260.0080.00016.53
7.4.250.0040.00416.61
7.4.240.0020.00516.65
7.4.230.0000.00716.44
7.4.220.0220.00916.55
7.4.210.0080.01016.56
7.4.200.0070.00016.62
7.4.190.0000.00716.48
7.4.160.0100.00616.50
7.4.150.0070.01017.40
7.4.140.0140.00917.86
7.4.130.0110.00616.48
7.4.120.0080.00716.46
7.4.110.0150.00416.66
7.4.100.0060.01216.36
7.4.90.0060.01216.55
7.4.80.0150.00619.39
7.4.70.0080.00816.41
7.4.60.0060.00916.52
7.4.50.0000.00816.21
7.4.40.0040.01422.77
7.4.30.0060.00916.41
7.4.00.0050.01115.09
7.3.330.0000.00513.00
7.3.320.0020.00213.17
7.3.310.0040.00416.35
7.3.300.0040.00416.22
7.3.290.0100.00716.25
7.3.280.0100.00616.30
7.3.270.0150.00317.40
7.3.260.0060.01216.29
7.3.250.0130.00516.37
7.3.240.0120.01116.31
7.3.230.0090.00916.39
7.3.210.0120.00416.23
7.3.200.0130.00319.39
7.3.190.0090.00916.43
7.3.180.0040.01216.39
7.3.170.0060.00916.57
7.3.160.0080.00816.38
7.3.120.0100.00714.94
7.3.110.0040.01414.44
7.3.100.0070.00315.07
7.3.90.0090.00914.60
7.3.80.0040.00814.96
7.3.70.0100.00314.84
7.3.60.0090.00614.87
7.3.50.0040.01114.55
7.3.40.0030.00714.60
7.3.30.0090.00314.69
7.3.20.0100.00716.80
7.3.10.0030.00716.77
7.3.00.0030.01016.25
7.2.330.0120.00416.50
7.2.320.0070.01116.48
7.2.310.0130.01016.31
7.2.300.0070.01016.69
7.2.290.0170.00716.46
7.2.250.0060.00914.90
7.2.240.0130.00714.58
7.2.230.0060.00915.08
7.2.220.0070.00714.92
7.2.210.0030.00714.90
7.2.200.0060.00915.13
7.2.190.0160.00014.98
7.2.180.0060.00314.70
7.2.170.0070.00714.81
7.2.00.0030.01219.27
7.1.330.0060.00615.65
7.1.320.0030.00715.76
7.1.310.0070.00315.86
7.1.300.0040.00415.81
7.1.290.0060.00315.63
7.1.280.0030.01015.70
7.1.270.0030.00615.73
7.1.260.0070.00415.82
7.1.100.0110.00018.04
7.1.70.0070.00417.13
7.1.60.0090.01619.29
7.1.50.0130.01317.00
7.1.00.0070.07722.35
7.0.200.0440.00614.85
7.0.140.0030.07722.13
7.0.60.0100.08019.91
7.0.50.0030.08717.66
7.0.40.0030.07320.30
7.0.30.0230.08320.00
7.0.20.0430.08020.01
7.0.10.0030.06020.16
7.0.00.0070.08320.30
5.6.280.0030.07320.89
5.6.210.0000.06020.71
5.6.200.0000.04318.13
5.6.190.0100.05020.33
5.6.180.0330.07020.43
5.6.170.0230.05320.73
5.6.160.0070.04020.48
5.6.150.0100.08018.12
5.6.140.0030.08318.11
5.6.130.0030.06318.13
5.6.120.0070.04321.00
5.6.110.0130.03020.99
5.6.100.0100.08021.08
5.6.90.0170.08020.94
5.6.80.0000.08320.54
5.5.350.2630.03320.31
5.5.340.0000.05017.99
5.5.330.0000.04720.14
5.5.320.0600.06320.19
5.5.310.0330.06720.50
5.5.300.0130.06717.98
5.5.290.0070.03717.88
5.5.280.0130.07720.88
5.5.270.0100.08020.84
5.5.260.0030.09020.74
5.5.250.0170.07020.71
5.5.240.0130.07720.26
5.4.450.3200.03019.41
5.4.440.3030.04019.48
5.4.430.3230.03319.45
5.4.420.3230.04019.43
5.4.410.3300.03719.00
5.4.400.3270.04318.81
5.4.390.2970.03319.06
5.4.380.2930.03319.16
5.4.370.3130.04719.13
5.4.360.3200.04019.21
5.4.350.2970.04018.79
5.4.340.2930.03718.90
5.4.320.3070.04318.79
5.4.310.3130.03318.89
5.4.300.2800.03018.88
5.4.290.3230.04319.06
5.4.280.3400.05019.06
5.4.270.2930.02018.91
5.4.260.2900.04018.93
5.4.250.3370.04019.07
5.4.240.2530.03019.12
5.4.230.3000.04719.24
5.4.220.3400.05019.02
5.4.210.3200.03019.24
5.4.200.3200.03718.82
5.4.190.2870.04019.23
5.4.180.2970.04018.93
5.4.170.3030.02718.76
5.4.160.3100.04019.04
5.4.150.2830.04019.11
5.4.140.3430.04016.25
5.4.130.2770.04016.24
5.4.120.3200.03016.45
5.4.110.2770.04016.45
5.4.100.3400.03316.34
5.4.90.3000.03716.23
5.4.80.3170.03316.48
5.4.70.3070.03316.42
5.4.60.3130.03016.39
5.4.50.2830.03016.39
5.4.40.2200.04016.36
5.4.30.3400.03716.19
5.4.20.3000.03016.36
5.4.10.3270.02716.01
5.4.00.3300.03715.75
5.3.290.3070.04314.75
5.3.280.3130.04014.45
5.3.270.2970.03314.46
5.3.260.1830.04014.65
5.3.250.2730.03714.48
5.3.240.1900.04014.46
5.3.230.2170.04014.45
5.3.220.2400.03314.55
5.3.210.3070.04714.44
5.3.200.3130.03714.44
5.3.190.3230.03714.56
5.3.180.1330.03314.51
5.3.170.3130.04314.52
5.3.160.1800.03714.40
5.3.150.1330.04014.46
5.3.140.2730.03714.43
5.3.130.1730.03314.42
5.3.120.2230.03714.45
5.3.110.2470.04014.39
5.3.100.2600.03713.98
5.3.90.2800.03714.03
5.3.80.2730.03313.86
5.3.70.2100.03314.11
5.3.60.2970.02713.95
5.3.50.3130.03713.85
5.3.40.1970.04313.79
5.3.30.3330.04013.93
5.3.20.2970.03713.47
5.3.10.3270.03713.45
5.3.00.2770.03013.59
5.2.170.2630.03311.10
5.2.160.2930.03311.10
5.2.150.2470.03311.10
5.2.140.2670.03011.15
5.2.130.3170.03011.10
5.2.120.2570.02711.10
5.2.110.2330.02711.11
5.2.100.2430.02711.26
5.2.90.2370.03011.10
5.2.80.2700.03011.10
5.2.70.2630.02311.17
5.2.60.2430.03311.13
5.2.50.2400.03011.10
5.2.40.2200.02711.10
5.2.30.2000.02311.10
5.2.20.1830.03011.10
5.2.10.2200.03011.10
5.2.00.2130.03311.10
5.1.60.1870.02711.10
5.1.50.1870.02711.10
5.1.40.1870.02711.10
5.1.30.2270.02711.10
5.1.20.2070.03011.10
5.1.10.2030.01711.10
5.1.00.2200.02711.10
5.0.50.1130.02011.10
5.0.40.0970.01311.10
5.0.30.1130.03311.10
5.0.20.1200.02011.10
5.0.10.0970.01711.10
5.0.00.0630.04011.10
4.4.90.1170.02011.10
4.4.80.0970.01311.10
4.4.70.1270.02311.10
4.4.60.1070.01011.10
4.4.50.1230.01711.10
4.4.40.1170.03311.10
4.4.30.1230.01711.10
4.4.20.1100.02011.10
4.4.10.1130.02011.10
4.4.00.1100.02711.10
4.3.110.1170.02311.10
4.3.100.1170.02011.10
4.3.90.1170.01311.10
4.3.80.1030.03011.10
4.3.70.1100.02011.10
4.3.60.1130.01311.10
4.3.50.1200.01711.10
4.3.40.1170.02711.10
4.3.30.0630.02711.10
4.3.20.0530.01011.10
4.3.10.0670.01711.10
4.3.00.0530.02011.10

preferences:
40.98 ms | 401 KiB | 5 Q