3v4l.org

run code in 300+ PHP versions simultaneously
<?php $item = ( Array ( 'group_roles_name' => 'CREATOR' ) ); $value = "CREATOR"; if(is_array($item) && !in_array($value,$item)){ // not equal, break de loop $itemFound = false; echo "not found"; } else if(is_array($item) && in_array($value,$item)){ echo "found"; }

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.0070.00716.38
8.3.50.0110.00318.13
8.3.40.0090.00918.62
8.3.30.0080.00619.09
8.3.20.0070.00020.19
8.3.10.0000.00821.74
8.3.00.0080.00019.13
8.2.180.0070.00718.41
8.2.170.0070.01122.96
8.2.160.0100.00722.21
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0090.00019.23
8.2.110.0090.00020.46
8.2.100.0000.01117.63
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0060.00617.50
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0080.00019.94
8.2.30.0040.00417.97
8.2.20.0080.00017.56
8.2.10.0040.00417.98
8.2.00.0050.00217.68
8.1.280.0070.01125.92
8.1.270.0070.00318.91
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0000.00920.83
8.1.230.0070.00322.14
8.1.220.0060.00317.79
8.1.210.0030.00518.77
8.1.200.0000.01017.25
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0060.00318.70
8.1.160.0000.00721.99
8.1.150.0050.00318.81
8.1.140.0020.00517.49
8.1.130.0000.00717.87
8.1.120.0000.01017.43
8.1.110.0040.00417.30
8.1.100.0050.00317.43
8.1.90.0030.00317.32
8.1.80.0000.00717.49
8.1.70.0000.00717.34
8.1.60.0040.00417.46
8.1.50.0060.00317.44
8.1.40.0050.00317.39
8.1.30.0000.00817.48
8.1.20.0000.00817.61
8.1.10.0000.00717.46
8.1.00.0000.01017.41
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.50
8.0.270.0070.00017.24
8.0.260.0050.00517.25
8.0.250.0070.00016.93
8.0.240.0040.00416.85
8.0.230.0000.00816.98
8.0.220.0000.00716.91
8.0.210.0000.00716.80
8.0.200.0050.00216.94
8.0.190.0030.00616.91
8.0.180.0040.00416.88
8.0.170.0070.00016.93
8.0.160.0040.00416.85
8.0.150.0000.00716.83
8.0.140.0000.00716.91
8.0.130.0030.00313.38
8.0.120.0000.00816.75
8.0.110.0000.00716.73
8.0.100.0000.00716.88
8.0.90.0080.00016.75
8.0.80.0140.00816.95
8.0.70.0040.00416.89
8.0.60.0040.00416.76
8.0.50.0050.00316.85
8.0.30.0070.01217.00
8.0.20.0140.00617.40
8.0.10.0000.00816.89
8.0.00.0130.00416.83
7.4.330.0000.00515.14
7.4.320.0000.00716.50
7.4.300.0030.00316.45
7.4.290.0000.00816.39
7.4.280.0080.00016.50
7.4.270.0030.00316.52
7.4.260.0030.00316.61
7.4.250.0070.00016.51
7.4.240.0020.00516.50
7.4.230.0000.00716.51
7.4.220.0160.00316.67
7.4.210.0030.01416.58
7.4.200.0070.00016.68
7.4.160.0090.00616.56
7.4.150.0060.01217.40
7.4.140.0090.01217.86
7.4.130.0120.00516.47
7.4.120.0130.00516.48
7.4.110.0070.01416.36
7.4.100.0070.01116.39
7.4.90.0110.00716.50
7.4.80.0000.01619.39
7.4.70.0060.00916.48
7.4.60.0090.00616.54
7.4.50.0040.00416.38
7.4.40.0060.00916.52
7.4.30.0130.00316.23
7.4.00.0050.01114.82
7.3.330.0060.00012.98
7.3.320.0150.00012.92
7.3.310.0030.00316.27
7.3.300.0000.00616.10
7.3.290.0070.00016.20
7.3.280.0060.00916.13
7.3.270.0170.00017.40
7.3.260.0110.00516.36
7.3.250.0130.00816.13
7.3.240.0120.00916.20
7.3.230.0040.01816.43
7.3.210.0140.00316.57
7.3.200.0170.00319.39
7.3.190.0050.01116.51
7.3.180.0200.00016.33
7.3.170.0130.00716.27
7.3.160.0060.01016.25
7.3.120.0040.01214.66
7.3.110.0000.01814.92
7.3.100.0130.00014.68
7.3.90.0070.01014.80
7.3.80.0000.01614.55
7.3.70.0090.00614.59
7.3.60.0040.00814.75
7.3.50.0030.01014.77
7.3.40.0000.01514.62
7.3.30.0040.00714.80
7.3.20.0060.00916.36
7.3.10.0030.00716.38
7.3.00.0040.00716.60
7.2.330.0150.00416.48
7.2.320.0030.01316.55
7.2.310.0110.00816.30
7.2.300.0130.00316.60
7.2.290.0090.00916.55
7.2.250.0030.01515.04
7.2.240.0040.01514.94
7.2.230.0110.00414.88
7.2.220.0060.00614.57
7.2.210.0100.00314.91
7.2.200.0060.00915.10
7.2.190.0000.01514.96
7.2.180.0070.00714.91
7.2.170.0070.00314.82
7.2.00.0150.01119.34
7.1.330.0070.01015.64
7.1.320.0070.00715.94
7.1.310.0040.01115.38
7.1.300.0060.00915.73
7.1.290.0070.01015.55
7.1.280.0060.00315.78
7.1.270.0070.00715.79
7.1.260.0080.00815.70
7.1.100.0070.00418.00
7.1.70.0050.00217.02
7.1.60.0040.00817.27
7.1.50.0070.00416.90
7.1.00.0000.08022.54
7.0.200.0060.01016.77
7.0.140.0030.03322.07
7.0.60.0030.07320.01
7.0.50.0000.04317.83
7.0.40.0130.07720.27
7.0.30.0530.07020.04
7.0.20.0270.08720.02
7.0.10.0200.07020.33
7.0.00.0030.05020.00
5.6.280.0070.07020.81
5.6.210.0100.08720.70
5.6.200.0000.04718.19
5.6.190.0100.04720.43
5.6.180.0130.04320.74
5.6.170.0200.07320.54
5.6.160.0030.09020.51
5.6.150.0100.08718.22
5.6.140.0270.06018.11
5.6.130.0070.06718.11
5.6.120.0100.07720.96
5.6.110.0170.04021.13
5.6.100.0070.07720.95
5.6.90.0070.08321.12
5.6.80.0000.08720.37
5.6.70.0300.07320.47
5.5.350.0270.06720.48
5.5.340.0070.07317.92
5.5.330.0030.04320.23
5.5.320.0030.08020.25
5.5.310.0300.06320.19
5.5.300.0070.07717.91
5.5.290.0030.08018.02
5.5.280.0170.05020.88
5.5.270.0100.08320.87
5.5.260.0070.03720.67
5.5.250.0100.08020.69
5.5.240.0030.05720.23
5.4.450.0770.05019.28
5.4.440.0670.06319.26
5.4.430.0130.07319.59
5.4.420.0700.07719.31
5.4.410.0570.06319.18
5.4.400.0370.05018.75
5.4.390.0300.05718.65
5.4.380.0330.06018.58
5.4.370.0400.05018.68
5.4.360.0300.07718.49
5.4.350.0430.05318.74
5.4.340.0330.07718.77
5.4.320.0170.07718.69
5.4.310.0300.05318.65
5.4.300.0300.08018.52
5.4.290.0330.04718.71
5.4.280.0430.05318.70
5.4.270.0330.05018.51
5.4.260.0200.06018.48
5.4.250.0370.06018.69
5.4.240.0200.06318.60
5.4.230.0330.05018.68
5.4.220.0200.07018.68
5.4.210.0400.04318.70
5.4.200.0330.04716.45
5.4.190.0300.05018.51
5.4.180.0270.05318.59
5.4.170.0230.06018.68
5.4.160.0370.05318.71
5.4.150.0270.06018.68
5.4.140.0270.05716.26
5.4.130.0300.05316.06
5.4.120.0270.05716.05
5.4.110.0300.05016.16
5.4.100.0330.05016.04
5.4.90.0430.04716.17
5.4.80.0370.05016.34
5.4.70.0330.06016.17
5.4.60.0270.06016.23
5.4.50.0370.06016.19
5.4.40.0370.05316.23
5.4.30.0370.05016.29
5.4.20.0270.05716.05
5.4.10.0300.05016.29
5.4.00.0300.06015.67
5.3.290.0330.05314.68
5.3.280.0230.05714.54
5.3.270.0230.06014.59
5.3.260.0170.06314.58
5.3.250.0500.06714.59
5.3.240.0300.07014.57
5.3.230.0230.06314.56
5.3.220.0400.06714.52
5.3.210.0330.05014.47
5.3.200.0300.06014.48
5.3.190.0330.05014.49
5.3.180.0200.05714.63
5.3.170.0330.04714.66
5.3.160.0370.05314.66
5.3.150.0300.05314.46
5.3.140.0230.06014.49
5.3.130.0370.06014.56
5.3.120.0330.04714.60
5.3.110.0400.04314.51
5.3.100.0400.04313.96
5.3.90.0200.05713.91
5.3.80.0370.04314.04
5.3.70.0400.05714.00
5.3.60.0300.05014.10
5.3.50.0130.06713.87
5.3.40.0370.04313.97
5.3.30.0300.05013.98
5.3.20.0330.04713.59
5.3.10.0330.05013.58
5.3.00.0270.05713.59
5.2.170.0200.04711.13
5.2.160.0270.04011.11
5.2.150.0270.04711.17
5.2.140.0270.04311.07
5.2.130.0270.04711.07
5.2.120.0170.04311.15
5.2.110.0200.04311.08
5.2.100.0300.04311.14
5.2.90.0200.04711.16
5.2.80.0230.04311.06
5.2.70.0230.04011.16
5.2.60.0330.03710.96
5.2.50.0230.04310.93
5.2.40.0170.04311.02
5.2.30.0200.04010.93
5.2.20.0170.05010.94
5.2.10.0270.04310.95
5.2.00.0270.03710.71
5.1.60.0270.03010.09
5.1.50.0230.04310.10
5.1.40.0300.0439.98
5.1.30.0230.04010.30
5.1.20.0270.03010.32
5.1.10.0170.04010.18
5.1.00.0230.04010.10
5.0.50.0130.0278.61
5.0.40.0070.0338.47
5.0.30.0170.0408.33
5.0.20.0130.0278.37
5.0.10.0170.0308.14
5.0.00.0130.0408.22
4.4.90.0130.0177.34
4.4.80.0130.0207.34
4.4.70.0200.0137.34
4.4.60.0100.0237.34
4.4.50.0030.0277.34
4.4.40.0200.0407.34
4.4.30.0130.0277.34
4.4.20.0070.0237.34
4.4.10.0030.0277.34
4.4.00.0100.0407.34
4.3.110.0070.0277.34
4.3.100.0070.0277.34
4.3.90.0100.0307.34
4.3.80.0070.0407.34
4.3.70.0100.0207.34
4.3.60.0030.0277.34
4.3.50.0100.0207.34
4.3.40.0100.0337.34
4.3.30.0100.0177.34
4.3.20.0000.0277.34
4.3.10.0030.0277.34
4.3.00.0030.0206.79

preferences:
36.04 ms | 400 KiB | 5 Q