3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 'foo' => null, ]; $b = [ 'foo' => 'str', ]; $c = [ 'foo' => [1, 3], ]; echo "1:\n"; var_dump(array_intersect($a, $b)); echo "\n2:\n"; var_dump(array_intersect($b, $c));

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.140.0070.01116.54
8.3.130.0100.00718.59
8.3.120.0180.00018.91
8.3.110.0160.00020.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0030.00618.31
8.3.70.0040.01118.43
8.3.60.0040.01116.75
8.3.50.0080.00816.69
8.3.40.0130.00621.78
8.3.30.0110.00821.56
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0140.00026.16
8.2.250.0100.01016.70
8.2.240.0090.00018.31
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0140.00326.77
8.2.200.0090.00016.73
8.2.190.0120.00918.54
8.2.180.0170.00316.50
8.2.170.0090.00918.75
8.2.160.0000.01422.96
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00621.17
8.2.100.0120.00317.72
8.2.90.0030.00617.75
8.2.80.0000.00818.82
8.2.70.0050.00317.63
8.2.60.0040.00417.50
8.2.50.0040.00417.63
8.2.40.0000.00819.35
8.2.30.0180.00017.67
8.2.20.0050.00519.28
8.2.10.0100.00717.62
8.2.00.0120.00417.67
8.1.300.0170.00318.21
8.1.290.0030.00718.88
8.1.280.0000.01425.92
8.1.270.0000.00724.66
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0050.00520.92
8.1.230.0040.00819.23
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0030.00617.11
8.1.180.0040.00418.89
8.1.170.0040.00417.62
8.1.160.0110.00417.36
8.1.150.0130.00417.29
8.1.140.0100.00517.43
8.1.130.0110.00417.37
8.1.120.0090.00517.37
8.1.110.0100.00517.45
8.1.100.0080.00517.47
8.1.90.0100.00617.32
8.1.80.0130.00317.30
8.1.70.0120.00317.34
8.1.60.0140.00717.55
8.1.50.0150.00417.41
8.1.40.0180.00017.43
8.1.30.0150.00417.63
8.1.20.0000.01317.55
8.1.10.0150.00317.53
8.1.00.0050.01017.36
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0140.00016.88
8.0.270.0130.00016.86
8.0.260.0110.00316.84
8.0.250.0000.01516.88
8.0.240.0080.00416.79
8.0.230.0060.00616.88
8.0.220.0110.00416.78
8.0.210.0090.00616.76
8.0.200.0130.00316.83
8.0.190.0120.00316.97
8.0.180.0060.01116.84
8.0.170.0110.00416.92
8.0.160.0130.00016.84
8.0.150.0050.01016.80
8.0.140.0110.00416.84
8.0.130.0080.00316.79
8.0.120.0090.00516.76
8.0.110.0130.00016.78
8.0.100.0100.00716.78
8.0.90.0050.01016.84
8.0.80.0140.00216.80
8.0.70.0040.00716.75
8.0.60.0130.00016.82
8.0.50.0090.00416.73
8.0.30.0150.00016.80
8.0.20.0150.00416.85
8.0.10.0000.01916.98

preferences:
46.46 ms | 403 KiB | 5 Q