3v4l.org

run code in 300+ PHP versions simultaneously
<?php function compare2D($topic, $nomination): int { if (is_array($nomination)) { return in_array($topic, $nomination) ? 1 : 0; } if (is_array($topic)) { return in_array($nomination, $topic) ? 1 : 0; } return strcmp($topic, $nomination) === 0 ? 1 : 0; } $topic = ['SECURE', 'REMOTE']; $arr = [['REMOTE', 'REMOTE_PREMIUM'], 'SECURE']; $res = array_uintersect($topic, $arr, 'compare2D'); var_dump($res);

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.5.30.0110.00617.52
8.5.20.0090.00719.41
8.5.10.0120.00616.64
8.5.00.0130.00819.71
8.4.180.0150.00819.37
8.4.170.0130.01020.37
8.4.160.0100.01223.90
8.4.150.0070.00516.82
8.4.140.0090.01317.59
8.4.130.0090.01118.50
8.4.120.0050.00424.12
8.4.110.0120.00818.77
8.4.100.0120.00818.53
8.4.90.0160.00420.27
8.4.80.0140.00420.66
8.4.70.0100.00720.56
8.4.60.0110.01020.68
8.4.50.0120.00720.41
8.4.40.0030.01617.61
8.4.30.0160.00320.64
8.4.20.0110.01119.51
8.4.10.0030.00717.66
8.3.300.0120.00820.61
8.3.290.0110.00920.78
8.3.280.0110.01118.23
8.3.270.0110.00916.45
8.3.260.0130.00616.69
8.3.250.0120.00618.68
8.3.240.0090.01017.07
8.3.230.0100.01016.62
8.3.220.0040.00418.82
8.3.210.0100.01018.41
8.3.200.0040.00516.28
8.3.190.0110.00916.76
8.3.180.0140.00618.59
8.3.170.0060.00917.30
8.3.160.0130.00718.32
8.3.150.0160.00316.48
8.3.140.0090.00016.66
8.3.130.0100.00016.33
8.3.120.0090.00318.80
8.3.110.0040.00420.94
8.3.100.0060.01324.06
8.3.90.0100.00726.77
8.3.80.0060.00616.75
8.3.70.0070.01116.63
8.3.60.0110.00416.38
8.3.50.0070.01019.63
8.3.40.0070.01020.86
8.3.30.0110.00418.75
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0040.00426.16
8.2.300.0130.00722.16
8.2.290.0080.01120.63
8.2.280.0130.00620.15
8.2.270.0120.00618.61
8.2.260.0100.00017.29
8.2.250.0040.00418.26
8.2.240.0090.00017.04
8.2.230.0040.00422.58
8.2.220.0000.00837.54
8.2.210.0040.00426.77
8.2.200.0030.00716.50
8.2.190.0150.00616.58
8.2.180.0110.01125.92
8.2.170.0040.01119.14
8.2.160.0140.00022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00026.16
8.2.110.0060.00322.11
8.2.100.0110.00017.59
8.2.90.0050.00317.63
8.2.80.0030.00618.71
8.2.70.0000.00817.50
8.2.60.0030.00518.04
8.2.50.0000.00817.90
8.2.40.0050.00319.66
8.2.30.0000.00717.55
8.2.20.0070.00018.01
8.2.10.0000.00718.74
8.2.00.0080.00019.36
8.1.340.0150.00817.71
8.1.330.0090.00922.03
8.1.320.0060.00217.50
8.1.310.0140.00318.61
8.1.300.0040.00416.10
8.1.290.0080.00030.84
8.1.280.0110.00425.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00320.21
8.1.230.0120.00017.77
8.1.220.0020.00517.74
8.1.210.0090.00018.77
8.1.200.0060.00317.48
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0040.00417.62
8.1.160.0070.00018.83
8.1.150.0070.00018.48
8.1.140.0040.00417.30
8.1.130.0000.00718.93
8.1.120.0040.00417.43
8.1.110.0000.00717.40
8.1.100.0080.00017.36
8.1.90.0070.00017.36
8.1.80.0040.00417.38
8.1.70.0000.00717.41
8.1.60.0040.00417.49
8.1.50.0040.00417.39
8.1.40.0110.00017.50
8.1.30.0030.00617.50
8.1.20.0000.00817.45
8.1.10.0040.00417.50
8.1.00.0000.00717.52
8.0.300.0000.00718.77
8.0.290.0000.00716.58
8.0.280.0040.00418.30
8.0.270.0020.00516.81
8.0.260.0040.00418.26
8.0.250.0040.00416.82
8.0.240.0040.00416.86
8.0.230.0040.00416.93
8.0.220.0030.00316.85
8.0.210.0000.00816.88
8.0.200.0000.00716.73
8.0.190.0060.00316.83
8.0.180.0040.00416.84
8.0.170.0060.00316.70
8.0.160.0030.00616.81
8.0.150.0000.00916.66
8.0.140.0070.00016.75
8.0.130.0030.00313.35
8.0.120.0000.00816.63
8.0.110.0040.00416.79
8.0.100.0040.00416.81
8.0.90.0050.00316.80
8.0.80.0040.00416.76
8.0.70.0030.00616.89
8.0.60.0040.00416.76
8.0.50.0000.00816.65
8.0.30.0000.00816.77
8.0.20.0040.00416.83
8.0.10.0040.00417.01
8.0.00.0080.00016.85
7.4.330.0020.00215.55
7.4.320.0000.00716.46
7.4.300.0060.00016.53
7.4.290.0000.00716.56
7.4.280.0000.00716.44
7.4.270.0080.00016.57
7.4.260.0030.00313.29
7.4.250.0040.00416.37
7.4.240.0070.00016.68
7.4.230.0040.00416.70
7.4.220.0000.00816.38
7.4.210.0040.00416.23
7.4.200.0000.00716.67
7.4.190.0000.00716.41
7.4.180.0000.00816.44
7.4.160.0060.00316.76
7.4.150.0000.00716.61
7.4.140.0000.00716.63
7.4.130.0030.00316.26
7.4.120.0000.00716.46
7.4.110.0040.00416.57
7.4.100.0000.00716.37
7.4.90.0070.00016.36
7.4.80.0000.00716.11
7.4.70.0000.00716.28
7.4.60.0000.00716.30
7.4.50.0070.00016.30
7.4.40.0070.00016.20
7.4.30.0030.00316.48
7.4.20.0000.00716.53
7.4.10.0000.00716.16
7.4.00.0040.00416.52
7.3.330.0050.00216.29
7.3.320.0000.00513.10
7.3.310.0060.00316.31
7.3.300.0000.00716.29
7.3.290.0080.00016.32
7.3.280.0060.00316.30
7.3.270.0080.00016.18
7.3.260.0060.00016.16
7.3.250.0050.00216.12
7.3.240.0040.00416.30
7.3.230.0030.00316.14
7.3.220.0030.00316.24
7.3.210.0040.00416.23
7.3.200.0000.00916.17
7.3.190.0000.00816.17
7.3.180.0060.00316.10
7.3.170.0030.00516.18
7.3.160.0000.00716.28
7.3.150.0040.00416.19
7.3.140.0040.00416.19
7.3.130.0070.00016.17
7.3.120.0040.00416.23
7.3.110.0000.00716.16
7.3.100.0030.00716.22
7.3.90.0000.00916.38
7.3.80.0040.00416.04
7.3.70.0030.00516.29
7.3.60.0070.00016.39
7.3.50.0000.00716.34
7.3.40.0050.00216.21
7.3.30.0040.00416.34
7.3.20.0050.00218.21
7.3.10.0040.00418.07
7.3.00.0030.00318.15

preferences:
47.35 ms | 1396 KiB | 5 Q