3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = Array ( 0 => "0,1", 1 => "0,0", 2 => "0,2", 3 => "0,3", 4 => "10,2" ); $b = Array ( 0 => "0,1", 1 => "0,0" ); $intersect = array_intersect($a, $b); $keys = array_keys($intersect); If($keys == array_keys($b)){ Echo "they match"; }else{ Echo "don't match"; }

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.130.0140.00717.79
8.4.120.0140.00720.33
8.4.110.0060.00318.86
8.4.100.0130.00817.73
8.4.90.0120.00920.67
8.4.80.0060.00217.70
8.4.70.0120.01017.93
8.4.60.0100.01318.39
8.4.50.0100.01119.67
8.4.40.0090.00917.82
8.4.30.0150.00619.36
8.4.20.0140.00718.80
8.4.10.0090.00917.79
8.3.260.0060.00316.57
8.3.250.0090.01019.04
8.3.240.0080.00916.49
8.3.230.0060.00216.65
8.3.220.0120.00618.85
8.3.210.0120.00916.65
8.3.200.0040.00516.49
8.3.190.0050.00517.27
8.3.180.0090.00918.52
8.3.170.0120.00620.65
8.3.160.0140.00418.66
8.3.150.0120.00620.43
8.3.140.0090.00916.51
8.3.130.0090.00618.32
8.3.120.0120.00318.97
8.3.110.0120.00420.94
8.3.100.0120.00616.41
8.3.90.0070.01426.77
8.3.80.0030.00716.66
8.3.70.0120.00416.58
8.3.60.0110.00716.35
8.3.50.0100.00818.13
8.3.40.0060.00918.42
8.3.30.0040.01118.63
8.3.20.0030.00618.64
8.3.10.0120.00019.34
8.3.00.0080.00023.48
8.2.290.0110.00816.90
8.2.280.0110.00718.68
8.2.270.0120.00617.41
8.2.260.0070.01118.82
8.2.250.0060.01216.69
8.2.240.0090.00019.06
8.2.230.0080.00022.58
8.2.220.0040.00424.06
8.2.210.0060.01226.77
8.2.200.0000.00816.50
8.2.190.0090.00616.63
8.2.180.0130.01025.92
8.2.170.0110.00418.95
8.2.160.0130.00322.96
8.2.150.0000.00725.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00419.36
8.2.110.0030.00622.13
8.2.100.0040.00717.91
8.2.90.0000.00822.27
8.2.80.0000.00819.18
8.2.70.0000.00917.99
8.2.60.0050.00317.80
8.2.50.0000.00918.10
8.2.40.0000.00819.37
8.2.30.0000.00819.50
8.2.20.0050.00317.94
8.2.10.0060.00318.05
8.2.00.0040.00419.41
8.1.330.0150.00316.71
8.1.320.0090.01316.09
8.1.310.0070.01018.43
8.1.300.0030.00618.48
8.1.290.0040.00430.84
8.1.280.0110.00325.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.61
8.1.230.0100.00020.88
8.1.220.0040.00417.80
8.1.210.0040.00418.97
8.1.200.0040.00817.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0030.00618.74
8.1.160.0000.00718.80
8.1.150.0040.00418.90
8.1.140.0000.00817.72
8.1.130.0000.00719.02
8.1.120.0000.00717.39
8.1.110.0070.00017.45
8.1.100.0030.00617.50
8.1.90.0000.00717.41
8.1.80.0040.00417.36
8.1.70.0000.00717.50
8.1.60.0060.00317.61
8.1.50.0050.00517.54
8.1.40.0090.00017.55
8.1.30.0040.00417.63
8.1.20.0040.00417.70
8.1.10.0000.00717.59
8.1.00.0040.00417.35
8.0.300.0040.00419.89
8.0.290.0000.00916.75
8.0.280.0030.00318.41
8.0.270.0030.00317.12
8.0.260.0000.00618.63
8.0.250.0030.00317.02
8.0.240.0000.00716.88
8.0.230.0070.00017.01
8.0.220.0040.00416.93
8.0.210.0000.00716.90
8.0.200.0030.00316.96
8.0.190.0050.00316.86
8.0.180.0050.00216.92
8.0.170.0030.00616.91
8.0.160.0070.00016.94
8.0.150.0000.00816.86
8.0.140.0050.00316.85
8.0.130.0050.00213.29
8.0.120.0040.00416.79
8.0.110.0030.00516.94
8.0.100.0000.00716.93
8.0.90.0040.00416.75
8.0.80.0050.01116.87
8.0.70.0000.00716.84
8.0.60.0000.00716.96
8.0.50.0040.00416.88
8.0.30.0110.00917.17
8.0.20.0090.00917.40
8.0.10.0040.00416.93
8.0.00.0120.00516.85
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0060.00016.65
7.4.290.0000.00816.60
7.4.280.0040.00416.61
7.4.270.0070.00316.61
7.4.260.0030.00316.51
7.4.250.0030.00316.62
7.4.240.0030.00316.63
7.4.230.0050.00316.35
7.4.220.0030.00716.64
7.4.210.0030.01116.56
7.4.200.0000.00716.61
7.4.160.0090.00716.50
7.4.140.0100.00917.86
7.4.130.0070.01016.49
7.4.120.0110.00916.40
7.4.110.0030.01516.40
7.4.100.0030.01416.59
7.4.90.0120.00616.47
7.4.80.0120.00819.39
7.4.70.0060.00916.31
7.4.60.0070.01016.56
7.4.50.0030.01316.40
7.4.40.0070.01016.42
7.4.00.0030.01215.13
7.3.330.0000.00513.12
7.3.320.0060.00012.90
7.3.310.0030.00316.07
7.3.300.0070.00016.13
7.3.290.0000.00716.30
7.3.280.0070.00816.17
7.3.260.0140.01016.38
7.3.240.0110.00716.26
7.3.230.0110.01216.50
7.3.210.0130.01016.37
7.3.200.0120.00316.39
7.3.190.0050.01316.35
7.3.180.0160.00316.64
7.3.170.0040.01216.14
7.3.160.0070.01016.39
7.3.120.0030.01416.90
7.3.110.0070.01016.90
7.3.100.0120.00316.90
7.3.90.0040.01216.90
7.3.80.0000.01816.90
7.3.70.0040.00716.90
7.3.60.0040.01116.90
7.3.50.0070.00416.90
7.3.40.0000.01216.90
7.3.30.0030.01016.90
7.3.20.0070.00416.90
7.3.10.0070.00316.90
7.3.00.0100.00716.90
7.2.330.0100.01016.54
7.2.320.0100.00616.72
7.2.310.0110.00616.72
7.2.300.0120.00816.65
7.2.290.0100.00716.40
7.2.240.0030.01016.90
7.2.230.0060.01016.90
7.2.220.0100.00716.90
7.2.210.0100.00716.90
7.2.200.0000.01716.90
7.2.190.0070.01016.90
7.2.180.0120.00316.90
7.2.170.0030.00916.90
7.2.160.0090.00616.90
7.2.150.0080.00816.90
7.2.140.0030.01416.90
7.2.130.0060.00616.90
7.2.120.0030.01416.96
7.2.110.0070.00716.90
7.2.100.0100.00616.90
7.2.90.0140.00317.05
7.2.80.0090.00616.90
7.2.70.0100.00717.02
7.2.60.3010.01016.02
7.2.50.3060.00915.95
7.2.40.3300.00816.16
7.2.30.3170.00816.16
7.2.20.2910.00815.91
7.2.10.3250.01015.92
7.2.00.3300.01416.13
7.1.330.0060.00616.90
7.1.320.0090.00616.90
7.1.310.0120.00416.90
7.1.300.0070.01016.90
7.1.290.0030.01016.90
7.1.280.0070.00716.90
7.1.270.0000.01416.90
7.1.260.0030.01016.90
7.1.250.0100.00616.90
7.1.200.0070.00415.53
7.1.170.4870.00714.05
7.1.160.6850.01316.88
7.1.150.6700.01116.75
7.1.140.7410.01116.74
7.1.130.6690.00816.61
7.1.120.7740.01016.76
7.1.110.7750.00815.90
7.1.100.6410.00715.82
7.1.91.3130.01116.11
7.1.80.9480.01016.19
7.1.70.9290.01015.07
7.1.60.8840.01433.07
7.1.50.9810.01132.97
7.1.41.3600.01032.57
7.1.31.1360.01432.83
7.1.21.0580.00932.71
7.1.11.4470.00814.65
7.1.00.9870.00814.81

preferences:
25.79 ms | 403 KiB | 5 Q