3v4l.org

run code in 300+ PHP versions simultaneously
<?php $role = 2; $role_id = array (array('role_id' => 2 ), array('role_id' => 1 ) ); if (in_array($role, array_column($role_id, 'role_id'))) { echo "Match found"; } else { echo "Match not 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.4.140.0140.00617.73
8.4.130.0110.00917.70
8.4.120.0100.00820.12
8.4.110.0130.00822.24
8.4.100.0120.00817.59
8.4.90.0090.01018.45
8.4.80.0090.01017.81
8.4.70.0060.00217.54
8.4.60.0080.01218.89
8.4.50.0110.00817.70
8.4.40.0130.00619.29
8.4.30.0130.00620.44
8.4.20.0070.01420.53
8.4.10.0050.00319.62
8.3.270.0130.00616.48
8.3.260.0140.00516.65
8.3.250.0090.00919.07
8.3.240.0130.00716.23
8.3.230.0150.00316.51
8.3.220.0040.00317.36
8.3.210.0110.00716.82
8.3.200.0040.00516.70
8.3.190.0070.00117.21
8.3.180.0100.00916.72
8.3.170.0100.00718.75
8.3.160.0000.00816.36
8.3.150.0060.01217.30
8.3.140.0120.00316.59
8.3.130.0040.00416.46
8.3.120.0080.00018.86
8.3.110.0130.00320.94
8.3.100.0060.00316.50
8.3.90.0040.00426.77
8.3.80.0060.00318.27
8.3.70.0090.00616.38
8.3.60.0080.00818.55
8.3.50.0120.00218.48
8.3.40.0130.01018.48
8.3.30.0000.01518.62
8.3.20.0040.00422.65
8.3.10.0040.00421.77
8.3.00.0040.00420.56
8.2.290.0110.00720.23
8.2.280.0090.01018.11
8.2.270.0160.00317.02
8.2.260.0040.00418.72
8.2.250.0030.00618.37
8.2.240.0090.00016.96
8.2.230.0080.00022.58
8.2.220.0050.00524.06
8.2.210.0040.00426.77
8.2.200.0080.00418.16
8.2.190.0170.00316.58
8.2.180.0140.00718.41
8.2.170.0100.01022.96
8.2.160.0070.00720.86
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0100.00326.16
8.2.110.0100.00722.24
8.2.100.0080.00417.78
8.2.90.0030.00519.58
8.2.80.0090.00017.97
8.2.70.0030.00517.63
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0030.00518.34
8.2.30.0000.00717.94
8.2.20.0000.00717.89
8.2.10.0030.00618.79
8.2.00.0040.00419.16
8.1.330.0090.00921.94
8.1.320.0110.00716.17
8.1.310.0070.01016.59
8.1.300.0090.00017.77
8.1.290.0040.00718.88
8.1.280.0130.00625.92
8.1.270.0030.00522.21
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00922.14
8.1.230.0070.00320.89
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00717.22
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0040.00418.50
8.1.160.0000.00718.72
8.1.150.0070.00018.75
8.1.140.0070.00018.81
8.1.130.0030.00320.05
8.1.120.0040.00417.35
8.1.110.0000.00717.34
8.1.100.0040.00417.30
8.1.90.0000.00717.45
8.1.80.0000.00917.28
8.1.70.0080.00017.36
8.1.60.0040.00417.39
8.1.50.0000.00717.46
8.1.40.0090.00017.37
8.1.30.0030.00617.46
8.1.20.0000.00817.46
8.1.10.0030.00617.51
8.1.00.0000.00917.31
8.0.300.0000.00819.97
8.0.290.0040.00416.58
8.0.280.0000.00718.34
8.0.270.0030.00316.74
8.0.260.0060.00018.43
8.0.250.0000.00716.89
8.0.240.0060.00316.82
8.0.230.0030.00416.79
8.0.220.0000.00716.73
8.0.210.0000.00716.68
8.0.200.0030.00316.86
8.0.190.0030.00516.74
8.0.180.0000.00716.88
8.0.170.0090.00016.82
8.0.160.0090.00016.79
8.0.150.0000.00716.68
8.0.140.0000.00716.78
8.0.130.0050.00013.19
8.0.120.0000.00716.81
8.0.110.0030.00616.85
8.0.100.0020.00516.92
8.0.90.0030.00616.68
8.0.80.0130.00316.81
8.0.70.0040.00416.85
8.0.60.0070.00016.70
8.0.50.0040.00416.70
8.0.30.0120.00917.11
8.0.20.0080.01116.75
8.0.10.0050.00317.05
8.0.00.0090.01016.67
7.4.330.0000.00615.55
7.4.320.0040.00416.46
7.4.300.0030.00316.34
7.4.290.0040.00416.41
7.4.280.0080.00316.53
7.4.270.0000.00716.45
7.4.260.0030.00313.20
7.4.250.0000.00716.40
7.4.240.0000.00816.47
7.4.230.0040.00216.47
7.4.220.0040.00416.33
7.4.210.0080.00616.51
7.4.200.0040.00416.42
7.4.130.0070.01016.20
7.4.120.0140.01016.27
7.4.110.0090.00716.47
7.4.100.0100.00716.12
7.4.90.0090.00616.39
7.4.80.0060.01219.39
7.4.70.0060.00916.38
7.4.60.0060.01516.39
7.4.50.0090.00616.32
7.4.40.0110.00416.50
7.4.00.0090.00615.14
7.3.330.0000.00716.25
7.3.320.0000.00512.93
7.3.310.0030.00315.95
7.3.300.0000.00716.16
7.3.290.0000.00716.04
7.3.280.0080.00716.15
7.3.260.0100.00816.10
7.3.230.0120.00616.28
7.3.210.0060.01216.13
7.3.200.0130.01016.28
7.3.190.0110.00816.26
7.3.180.0180.00016.15
7.3.170.0090.00616.45
7.3.160.0070.01316.18
7.3.110.0060.00914.69
7.3.100.0060.00614.71
7.3.90.0030.01014.58
7.3.80.0040.01014.47
7.3.70.0090.00914.42
7.3.60.0070.00714.68
7.3.50.0040.01114.65
7.3.40.0090.00614.79
7.3.30.0170.00314.35
7.3.20.0090.00614.42
7.3.10.0090.00614.64
7.3.00.0120.00314.54
7.2.330.0070.01016.55
7.2.320.0160.00016.57
7.2.310.0200.00316.50
7.2.300.0060.01216.38
7.2.290.0090.00616.27
7.2.240.0090.00915.06
7.2.230.0030.01015.00
7.2.220.0060.01214.95
7.2.210.0090.00614.43
7.2.200.0070.00714.79
7.2.190.0000.01314.86
7.2.180.0050.01614.56
7.2.170.0070.00714.40
7.2.160.0180.00014.83
7.2.150.0030.01114.70
7.2.140.0060.00914.68
7.2.130.0060.00915.02
7.2.120.0310.00714.89
7.2.110.0070.00714.94
7.2.100.0060.01014.93
7.2.90.0070.01414.97
7.2.80.0150.00015.07
7.2.70.0060.00914.99
7.2.60.0050.01014.99
7.2.50.0030.01214.75
7.2.40.0060.01514.89
7.2.30.0060.00914.82
7.2.20.0100.00314.84
7.2.10.0030.01014.71
7.2.00.0100.00414.97
7.1.330.0040.01613.91
7.1.320.0040.00813.75
7.1.310.0080.00513.77
7.1.300.0110.00613.91
7.1.290.0070.00713.96
7.1.280.0050.01013.77
7.1.270.0090.00913.64
7.1.260.0080.00513.66
7.1.250.0100.00313.89

preferences:
149.53 ms | 403 KiB | 5 Q