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['category'])) 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.0080.01118.68
8.3.50.0050.00921.27
8.3.40.0140.00718.65
8.3.30.0100.00320.34
8.3.20.0120.00320.02
8.3.10.0040.00422.05
8.3.00.0060.00322.58
8.2.180.0120.00616.75
8.2.170.0000.01418.92
8.2.160.0110.00322.96
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0030.01026.16
8.2.120.0040.00419.66
8.2.110.0060.00322.19
8.2.100.0110.00019.32
8.2.90.0050.00519.39
8.2.80.0030.00619.21
8.2.70.0030.00717.75
8.2.60.0050.00318.05
8.2.50.0090.00018.07
8.2.40.0030.00518.22
8.2.30.0040.00418.19
8.2.20.0040.00417.66
8.2.10.0050.00317.81
8.2.00.0000.00717.87
8.1.280.0140.00025.92
8.1.270.0080.00820.40
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0000.00923.82
8.1.230.0090.00319.00
8.1.220.0090.00017.91
8.1.210.0050.00318.77
8.1.200.0040.00817.35
8.1.190.0040.00417.43
8.1.180.0030.00618.84
8.1.170.0000.00818.51
8.1.160.0070.00022.14
8.1.150.0040.00418.56
8.1.140.0090.00017.37
8.1.130.0030.00317.79
8.1.120.0000.00717.36
8.1.110.0030.00717.44
8.1.100.0050.00317.42
8.1.90.0000.00717.40
8.1.80.0040.00417.43
8.1.70.0030.00317.44
8.1.60.0060.00317.48
8.1.50.0040.00417.52
8.1.40.0060.00317.50
8.1.30.0070.00017.55
8.1.20.0040.00417.68
8.1.10.0000.00717.64
8.1.00.0000.00717.52
8.0.300.0040.00418.77
8.0.290.0000.00717.13
8.0.280.0070.00018.50
8.0.270.0000.00717.29
8.0.260.0030.00316.80
8.0.250.0070.00017.06
8.0.240.0040.00416.99
8.0.230.0050.00317.08
8.0.220.0040.00416.96
8.0.210.0030.00316.96
8.0.200.0000.00616.97
8.0.190.0030.00617.02
8.0.180.0000.00817.00
8.0.170.0030.00516.94
8.0.160.0000.00816.97
8.0.150.0000.00716.88
8.0.140.0050.00316.82
8.0.130.0000.00613.41
8.0.120.0050.00316.92
8.0.110.0080.00016.87
8.0.100.0040.00417.00
8.0.90.0030.00316.97
8.0.80.0080.00816.97
8.0.70.0030.00416.89
8.0.60.0040.00416.82
8.0.50.0000.00817.01
8.0.30.0090.00917.10
8.0.20.0110.00717.40
8.0.10.0000.00717.05
8.0.00.0140.00716.83
7.4.330.0020.00215.00
7.4.320.0000.00616.61
7.4.300.0060.00016.50
7.4.290.0030.00316.60
7.4.280.0070.00016.49
7.4.270.0000.00716.49
7.4.260.0000.00716.57
7.4.250.0030.00316.46
7.4.240.0050.00216.47
7.4.230.0030.00316.61
7.4.220.0100.01316.47
7.4.210.0060.01016.61
7.4.200.0050.00216.71
7.4.190.0050.00216.75
7.4.160.0110.00816.59
7.4.150.0100.00717.40
7.4.140.0110.01117.86
7.4.130.0080.00916.57
7.4.120.0100.01016.61
7.4.110.0070.01016.71
7.4.100.0120.00616.45
7.4.90.0070.01016.69
7.4.80.0180.00619.39
7.4.70.0100.00716.68
7.4.60.0100.00716.46
7.4.50.0000.00516.53
7.4.40.0000.01522.77
7.4.30.0040.01316.54
7.4.00.0040.00815.04
7.3.330.0000.00613.14
7.3.320.0000.00613.05
7.3.310.0040.00416.38
7.3.300.0050.00216.35
7.3.290.0130.00616.34
7.3.280.0060.01016.34
7.3.270.0130.00917.40
7.3.260.0070.01016.41
7.3.250.0060.01416.51
7.3.240.0180.00616.41
7.3.230.0100.00716.50
7.3.210.0100.00716.36
7.3.200.0120.00919.39
7.3.190.0060.01316.43
7.3.180.0100.00616.43
7.3.170.0100.00716.61
7.3.160.0090.00616.42
7.3.120.0030.01314.94
7.2.330.0030.01416.42
7.2.320.0140.00616.72
7.2.310.0090.01216.66
7.2.300.0070.01016.48
7.2.290.0030.01616.63
7.2.00.0100.00319.38
7.1.100.0050.00518.00
7.1.70.0000.01117.28
7.1.60.0000.02619.29
7.1.50.0070.01416.94
7.1.00.0030.05722.30
7.0.200.0680.00814.89
7.0.140.0030.07322.01
7.0.60.0130.03021.81
7.0.50.0030.05317.91
7.0.40.0000.05020.23
7.0.30.0270.04320.34
7.0.20.0270.07320.30
7.0.10.0230.04020.04
7.0.00.0070.04020.12
5.6.280.0030.07320.92
5.6.210.0030.05020.72
5.6.200.0070.05018.15
5.6.190.0100.08320.57
5.6.180.3930.05020.65
5.6.170.0300.07720.53
5.6.160.0070.04720.50
5.6.150.0030.08718.18
5.6.140.0070.05318.21
5.6.130.0070.07718.07
5.6.120.0070.05020.96
5.6.110.0070.08721.10
5.6.100.0070.05321.04
5.6.90.0170.07320.97
5.6.80.0070.06020.37
5.5.350.0330.07020.38
5.5.340.0030.04017.99
5.5.330.0100.06720.36
5.5.320.0330.03020.22
5.5.310.0330.08020.37
5.5.300.0000.04317.98
5.5.290.0070.05317.89
5.5.280.0030.05020.80
5.5.270.0100.06720.64
5.5.260.0230.05720.73
5.5.250.0100.06320.71
5.5.240.0100.06720.12
5.4.450.0830.06719.64
5.4.440.1100.05319.63
5.4.430.0530.04319.23
5.4.420.0770.06319.52
5.4.410.0670.06319.30
5.4.400.0500.07718.69
5.4.390.0400.05718.70
5.4.380.0200.05718.60
5.4.370.0070.05718.71
5.4.360.0030.06018.67
5.4.350.0030.04011.97
5.4.340.0050.03611.97
5.4.320.0060.04412.46
5.4.310.0070.04312.45
5.4.300.0030.04112.46
5.4.290.0050.03812.45
5.4.280.0050.03512.35
5.4.270.0040.03812.35
5.4.260.0080.04012.35
5.4.250.0200.05318.85
5.4.240.0200.04718.82
5.4.230.0170.04718.71
5.4.220.0100.05318.93
5.4.210.0070.08018.78
5.4.200.0030.07318.90
5.4.190.0100.07318.91
5.4.180.0170.05318.71
5.4.170.0170.06318.69
5.4.160.0030.08018.88
5.4.150.0100.07718.88
5.4.140.0100.05016.27
5.4.130.0100.07016.23
5.4.120.0100.05016.35
5.4.110.0070.05716.39
5.4.100.0170.04716.23
5.4.90.0070.06016.23
5.4.80.0070.06316.17
5.4.70.0030.05316.34
5.4.60.0130.06016.38
5.4.50.0230.04716.31
5.4.40.0070.06016.45
5.4.30.0170.06016.39
5.4.20.0170.06716.41
5.4.10.0330.06316.46
5.4.00.0130.04315.68
5.3.290.0060.04112.80
5.3.280.0100.07314.61
5.3.270.0170.07014.76
5.3.260.0070.05314.60
5.3.250.0100.07714.76
5.3.240.0030.06014.51
5.3.230.0130.04714.48
5.3.220.0130.04714.44
5.3.210.0030.06314.26
5.3.200.0130.05014.26
5.3.190.0130.07014.56
5.3.180.0100.06714.71
5.3.170.0070.05714.66
5.3.160.0130.06714.34
5.3.150.0170.04714.56
5.3.140.0100.06714.60
5.3.130.0130.05714.55
5.3.120.0130.05314.70
5.3.110.0130.07714.56
5.3.100.0130.06714.19
5.3.90.0100.07313.71
5.3.80.0070.06714.01
5.3.70.0070.07014.16
5.3.60.0130.05713.88
5.3.50.0030.06313.79
5.3.40.0170.04713.72
5.3.30.0100.05014.05
5.3.20.0000.06013.79
5.3.10.0100.06013.66
5.3.00.0170.04313.64
5.2.170.0130.05311.06
5.2.160.0130.04311.16
5.2.150.0000.05711.03
5.2.140.0000.06311.02
5.2.130.0100.05011.12
5.2.120.0230.04311.03
5.2.110.0070.05010.99
5.2.100.0070.04311.03
5.2.90.0130.03711.02
5.2.80.0030.05711.00
5.2.70.0030.04711.09
5.2.60.0030.06311.16
5.2.50.0070.04711.03
5.2.40.0100.05310.91
5.2.30.0030.04311.03
5.2.20.0070.05710.79
5.2.10.0100.04711.02
5.2.00.0170.03710.78
5.1.60.0130.0379.88
5.1.50.0100.03710.05
5.1.40.0130.0309.94
5.1.30.0000.04010.22
5.1.20.0030.04310.33
5.1.10.0000.05310.30
5.1.00.0000.0409.95
5.0.50.0030.0308.60
5.0.40.0000.0438.45
5.0.30.0030.0478.26
5.0.20.0100.0278.25
5.0.10.0070.0278.23
5.0.00.0030.0508.16
4.4.90.0070.0207.39
4.4.80.0000.0277.39
4.4.70.0000.0237.39
4.4.60.0000.0307.39
4.4.50.0000.0277.39
4.4.40.0100.0337.39
4.4.30.0070.0207.39
4.4.20.0030.0277.39
4.4.10.0070.0207.39
4.4.00.0000.0407.39
4.3.110.0070.0237.39
4.3.100.0070.0207.39
4.3.90.0070.0207.39
4.3.80.0070.0377.39
4.3.70.0030.0277.39
4.3.60.0000.0337.39
4.3.50.0170.0237.39
4.3.40.0130.0377.39
4.3.30.0000.0337.39
4.3.20.0030.0277.39
4.3.10.0030.0237.39
4.3.00.0130.0237.20

preferences:
36.05 ms | 400 KiB | 5 Q