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($key,$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.0130.00618.56
8.3.50.0080.00821.09
8.3.40.0070.00718.54
8.3.30.0070.00720.17
8.3.20.0030.01020.09
8.3.10.0080.00022.04
8.3.00.0040.00422.51
8.2.180.0110.00416.63
8.2.170.0170.00322.96
8.2.160.0110.00420.58
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0140.00026.16
8.2.120.0080.00019.70
8.2.110.0040.00422.13
8.2.100.0080.00419.39
8.2.90.0040.00419.23
8.2.80.0070.00019.47
8.2.70.0080.00017.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0080.00018.16
8.2.30.0030.00518.04
8.2.20.0000.00717.72
8.2.10.0040.00417.80
8.2.00.0040.00417.79
8.1.280.0040.01125.92
8.1.270.0070.01120.40
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00323.70
8.1.230.0080.00419.21
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0070.00317.35
8.1.190.0040.00417.55
8.1.180.0000.00718.86
8.1.170.0050.00318.53
8.1.160.0040.00422.13
8.1.150.0060.00318.59
8.1.140.0040.00417.48
8.1.130.0070.00017.82
8.1.120.0000.00717.48
8.1.110.0080.00017.37
8.1.100.0080.00017.35
8.1.90.0020.00517.38
8.1.80.0050.00317.47
8.1.70.0070.00017.45
8.1.60.0050.00317.63
8.1.50.0080.00017.51
8.1.40.0000.00817.46
8.1.30.0050.00317.63
8.1.20.0000.00817.61
8.1.10.0040.00417.33
8.1.00.0070.00317.30
8.0.300.0070.00018.77
8.0.290.0040.00417.05
8.0.280.0040.00418.33
8.0.270.0040.00417.25
8.0.260.0040.00416.82
8.0.250.0070.00016.93
8.0.240.0050.00316.98
8.0.230.0030.00316.86
8.0.220.0070.00016.75
8.0.210.0060.00016.88
8.0.200.0000.00716.93
8.0.190.0080.00016.96
8.0.180.0000.00716.82
8.0.170.0040.00416.97
8.0.160.0040.00416.79
8.0.150.0050.00216.79
8.0.140.0000.00716.91
8.0.130.0050.00013.28
8.0.120.0000.00816.75
8.0.110.0000.00716.83
8.0.100.0030.00316.84
8.0.90.0070.00016.89
8.0.80.0070.00716.84
8.0.70.0040.00416.95
8.0.60.0000.00716.85
8.0.50.0050.00216.72
8.0.30.0070.01116.84
8.0.20.0110.00817.40
8.0.10.0000.00716.90
8.0.00.0110.01016.74
7.4.330.0050.00015.00
7.4.320.0060.00016.63
7.4.300.0040.00416.59
7.4.290.0000.00616.57
7.4.280.0000.00716.35
7.4.270.0030.00316.59
7.4.260.0050.00316.52
7.4.250.0030.00316.60
7.4.240.0010.00716.50
7.4.230.0030.00316.39
7.4.220.0090.00916.62
7.4.210.0080.00816.56
7.4.200.0030.00316.41
7.4.190.0050.00316.66
7.4.160.0090.00916.48
7.4.150.0040.01217.40
7.4.140.0110.00817.86
7.4.130.0090.00816.52
7.4.120.0090.00916.43
7.4.110.0130.00316.46
7.4.100.0100.01116.40
7.4.90.0120.00616.39
7.4.80.0150.00319.39
7.4.70.0070.01116.47
7.4.60.0100.00616.55
7.4.50.0040.00416.42
7.4.40.0060.00822.77
7.4.30.0030.01416.66
7.4.00.0060.00914.97
7.3.330.0000.00513.09
7.3.320.0020.00213.14
7.3.310.0000.00716.35
7.3.300.0000.00716.24
7.3.290.0070.00616.25
7.3.280.0050.01116.27
7.3.270.0120.00617.40
7.3.260.0100.00716.55
7.3.250.0080.00816.41
7.3.240.0120.00916.20
7.3.230.0090.00616.39
7.3.210.0140.00316.50
7.3.200.0170.00019.39
7.3.190.0100.01016.49
7.3.180.0090.01116.15
7.3.170.0030.01216.38
7.3.160.0120.00316.35
7.3.120.0100.00714.83
7.2.330.0130.00416.52
7.2.320.0050.01216.48
7.2.310.0260.02316.66
7.2.300.0110.00516.56
7.2.290.0120.01216.43
7.2.00.0040.01119.09
7.1.100.0000.01117.91
7.1.70.0040.00417.27
7.1.60.0100.01419.29
7.1.50.0070.01317.04
7.1.00.0070.03322.45
7.0.200.0710.00414.83
7.0.140.0000.07722.10
7.0.60.0130.08020.04
7.0.50.0070.07717.67
7.0.40.0070.07720.07
7.0.30.0270.06720.09
7.0.20.0200.08320.02
7.0.10.0300.06320.13
7.0.00.0070.08720.14
5.6.280.0000.07720.82
5.6.210.0130.07720.47
5.6.200.0130.07718.20
5.6.190.0070.08320.43
5.6.180.3430.04720.35
5.6.170.0400.06720.38
5.6.160.0000.04720.48
5.6.150.0070.07718.21
5.6.140.0030.08718.21
5.6.130.0070.08318.18
5.6.120.0070.07721.01
5.6.110.0030.08721.00
5.6.100.0200.08321.11
5.6.90.0100.03721.12
5.6.80.0130.06720.51
5.6.70.0170.08020.36
5.5.350.0170.08320.32
5.5.340.0000.04317.92
5.5.330.0030.07320.57
5.5.320.0200.08020.27
5.5.310.0400.08020.32
5.5.300.0030.04017.88
5.5.290.0070.04017.91
5.5.280.0070.05320.76
5.5.270.0100.04320.76
5.5.260.0130.07020.89
5.5.250.0070.08020.54
5.5.240.0030.07020.16
5.4.450.1000.06719.32
5.4.440.0700.06319.63
5.4.430.1000.05719.56
5.4.420.0930.05719.66
5.4.410.0030.05719.19
5.4.400.0600.05318.77
5.4.390.0530.07018.59
5.4.380.0270.05318.68
5.4.370.0130.05318.73
5.4.360.0170.05018.65
5.4.350.0090.04311.97
5.4.340.0040.03911.97
5.4.320.0100.03612.46
5.4.310.0060.05112.46
5.4.300.0080.04212.46
5.4.290.0080.04112.45
5.4.280.0060.04012.35
5.4.270.0040.04012.35
5.4.260.0090.04212.35
5.4.250.0130.04718.67
5.4.240.0030.05718.76
5.4.230.0130.07018.70
5.4.220.0170.04718.89
5.4.210.0100.05318.89
5.4.200.0100.05318.87
5.4.190.0130.05318.63
5.4.180.0030.05718.75
5.4.170.0200.04318.63
5.4.160.0130.04718.85
5.4.150.0130.06718.85
5.4.140.0130.04316.26
5.4.130.0130.04316.47
5.4.120.0230.03716.45
5.4.110.0100.05016.52
5.4.100.0070.05016.20
5.4.90.0130.05716.43
5.4.80.0100.04716.31
5.4.70.0030.07016.32
5.4.60.0100.04716.37
5.4.50.0130.06016.19
5.4.40.0000.06016.37
5.4.30.0170.04716.39
5.4.20.0100.06716.48
5.4.10.0170.06716.24
5.4.00.0230.05315.73
5.3.290.0080.04012.80
5.3.280.0130.06314.31
5.3.270.0170.04314.70
5.3.260.0200.04714.61
5.3.250.0130.04314.75
5.3.240.0100.06314.76
5.3.230.0070.05014.37
5.3.220.0200.06314.57
5.3.210.0070.06014.34
5.3.200.0070.05314.61
5.3.190.0170.05014.26
5.3.180.0170.04314.57
5.3.170.0070.05014.65
5.3.160.0130.06014.57
5.3.150.0170.04314.57
5.3.140.0070.05314.26
5.3.130.0130.05314.56
5.3.120.0100.07314.70
5.3.110.0030.06714.54
5.3.100.0030.06013.90
5.3.90.0170.06313.93
5.3.80.0100.05713.95
5.3.70.0030.05314.02
5.3.60.0070.07014.01
5.3.50.0100.06713.94
5.3.40.0130.06713.86
5.3.30.0070.07013.76
5.3.20.0130.04313.53
5.3.10.0070.04713.51
5.3.00.0070.06313.58
5.2.170.0100.03711.24
5.2.160.0100.05311.15
5.2.150.0030.07011.04
5.2.140.0030.05311.14
5.2.130.0100.04010.93
5.2.120.0070.04011.25
5.2.110.0030.04010.99
5.2.100.0030.04311.20
5.2.90.0070.03711.11
5.2.80.0100.06011.20
5.2.70.0070.05710.85
5.2.60.0030.06311.05
5.2.50.0100.04011.13
5.2.40.0070.05311.00
5.2.30.0030.05710.89
5.2.20.0070.03710.84
5.2.10.0100.03310.93
5.2.00.0130.03710.62
5.1.60.0170.02710.18
5.1.50.0070.0479.86
5.1.40.0070.04710.04
5.1.30.0070.03310.26
5.1.20.0030.03710.43
5.1.10.0100.03010.12
5.1.00.0070.05010.21
5.0.50.0030.0308.59
5.0.40.0030.0278.45
5.0.30.0100.0378.31
5.0.20.0070.0238.43
5.0.10.0030.0278.13
5.0.00.0030.0408.16
4.4.90.0030.0207.38
4.4.80.0000.0237.38
4.4.70.0000.0237.38
4.4.60.0000.0237.38
4.4.50.0030.0307.38
4.4.40.0070.0377.38
4.4.30.0030.0277.38
4.4.20.0000.0237.38
4.4.10.0070.0177.38
4.4.00.0030.0337.38
4.3.110.0000.0237.38
4.3.100.0070.0237.38
4.3.90.0130.0237.38
4.3.80.0030.0337.38
4.3.70.0000.0237.38
4.3.60.0100.0137.38
4.3.50.0070.0177.38
4.3.40.0030.0307.38
4.3.30.0030.0207.38
4.3.20.0000.0237.38
4.3.10.0070.0177.38
4.3.00.0100.0207.20

preferences:
45.34 ms | 401 KiB | 5 Q