3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array("alpha","omega","bravo","charlie","delta","foxfrot"); $arr2 = array("alpha","gamma","bravo","x-ray","charlie","delta","halo","eagle","foxfrot"); $result = array_intersect($arr1, $arr2); print_r($result); $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $a2=array("e"=>"red","f"=>"black","g"=>"purple"); $a3=array("a"=>"red","b"=>"black","h"=>"yellow"); $result=array_intersect($a1,$a2,$a3); print_r($result);

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.10.0100.00718.84
8.5.00.0140.00719.97
8.4.150.0010.00114.05
8.4.140.0120.01017.53
8.4.130.0130.00817.68
8.4.120.0100.00724.25
8.4.110.0100.00923.34
8.4.100.0050.00518.74
8.4.90.0040.00518.74
8.4.80.0120.00418.51
8.4.70.0060.00219.74
8.4.60.0110.01018.72
8.4.50.0070.00918.67
8.4.40.0100.01019.38
8.4.30.0110.00420.17
8.4.20.0100.01017.55
8.4.10.0030.01219.45
8.3.280.0140.00818.21
8.3.270.0120.00716.39
8.3.260.0140.00617.06
8.3.250.0140.00518.66
8.3.240.0030.00517.00
8.3.230.0140.00516.23
8.3.220.0080.00918.96
8.3.210.0070.00416.79
8.3.200.0060.00316.49
8.3.190.0090.00716.92
8.3.180.0100.00917.11
8.3.170.0070.01122.68
8.3.160.0100.00717.20
8.3.150.0110.00719.08
8.3.140.0230.00016.36
8.3.130.0090.00018.26
8.3.120.0040.00418.87
8.3.110.0000.00820.94
8.3.100.0030.00516.66
8.3.90.0120.00426.77
8.3.80.0030.00616.50
8.3.70.0070.01116.25
8.3.60.0140.00718.43
8.3.50.0090.00823.58
8.3.40.0070.00718.70
8.3.30.0110.00318.57
8.3.20.0080.00020.64
8.3.10.0000.00720.39
8.3.00.0080.00018.96
8.2.290.0100.00820.41
8.2.280.0100.00918.46
8.2.270.0140.00417.04
8.2.260.0140.00018.80
8.2.250.0000.00816.56
8.2.240.0030.00516.91
8.2.230.0080.00022.58
8.2.220.0070.00724.06
8.2.210.0040.00426.77
8.2.200.0090.00016.25
8.2.190.0150.00616.63
8.2.180.0120.00618.41
8.2.170.0110.00422.96
8.2.160.0130.00020.53
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0080.00020.98
8.2.110.0030.00622.08
8.2.100.0060.00619.27
8.2.90.0050.00317.63
8.2.80.0030.00618.58
8.2.70.0030.00617.92
8.2.60.0060.00318.03
8.2.50.0080.00019.39
8.2.40.0080.00021.02
8.2.30.0040.00419.14
8.2.20.0040.00418.02
8.2.10.0030.00519.15
8.2.00.0080.00019.24
8.1.330.0130.00522.00
8.1.320.0110.00915.98
8.1.310.0180.00016.62
8.1.300.0000.00915.99
8.1.290.0030.00630.84
8.1.280.0150.00325.92
8.1.270.0040.00422.19
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00923.88
8.1.230.0030.00922.63
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0030.00617.23
8.1.180.0000.00918.96
8.1.170.0060.00318.43
8.1.160.0000.00719.00
8.1.150.0040.00418.86
8.1.140.0050.00318.86
8.1.130.0030.00319.94
8.1.120.0030.00317.27
8.1.110.0040.00417.31
8.1.100.0040.00417.40
8.1.90.0040.00417.35
8.1.80.0090.00017.38
8.1.70.0000.00717.42
8.1.60.0000.00817.35
8.1.50.0040.00417.36
8.1.40.0090.00017.38
8.1.30.0040.00417.61
8.1.20.0050.00217.44
8.1.10.0030.00517.35
8.1.00.0000.00717.32
8.0.300.0070.00018.77
8.0.290.0060.00316.63
8.0.280.0030.00318.30
8.0.270.0000.00716.86
8.0.260.0000.00620.00
8.0.250.0000.00716.75
8.0.240.0070.00016.88
8.0.230.0000.00716.86
8.0.220.0000.00916.82
8.0.210.0040.00416.84
8.0.200.0030.00316.88
8.0.190.0040.00416.90
8.0.180.0030.00616.84
8.0.170.0000.00816.84
8.0.160.0000.00816.79
8.0.150.0000.00716.77
8.0.140.0000.00716.80
8.0.130.0050.00013.14
8.0.120.0040.00416.77
8.0.110.0030.00516.71
8.0.100.0070.00016.72
8.0.90.0000.00916.71
8.0.80.0050.01516.81
8.0.70.0000.00716.72
8.0.60.0070.00016.70
8.0.50.0000.00816.79
8.0.30.0080.01217.05
8.0.20.0130.01316.96
8.0.10.0030.00516.95
8.0.00.0140.00716.57
7.4.330.0030.00315.55
7.4.320.0000.00616.58
7.4.300.0030.00316.58
7.4.290.0040.00416.56
7.4.280.0040.00416.54
7.4.270.0100.00016.43
7.4.260.0000.00513.17
7.4.250.0000.00716.41
7.4.240.0030.00316.44
7.4.230.0000.00716.60
7.4.220.0040.00416.42
7.4.210.0050.01116.47
7.4.200.0070.00016.46
7.4.130.0100.01016.36
7.4.120.0110.01116.43
7.4.110.0090.00916.34
7.4.100.0100.01016.43
7.4.90.0090.01216.52
7.4.80.0080.00819.39
7.4.70.0110.00716.43
7.4.60.0130.00916.27
7.4.50.0110.00416.25
7.4.40.0060.01016.51
7.4.20.0080.00916.38
7.4.10.0110.00716.45
7.4.00.0060.01216.43
7.3.330.0000.00616.11
7.3.320.0050.00012.99
7.3.310.0000.00616.00
7.3.300.0030.00316.16
7.3.290.0090.00916.13
7.3.280.0040.01116.09
7.3.260.0130.00716.36
7.3.240.0080.01016.40
7.3.230.0100.01616.49
7.3.210.0080.00816.05
7.3.200.0120.00916.44
7.3.190.0030.01316.20
7.3.180.0070.01016.16
7.3.170.0160.00016.14
7.3.160.0190.00016.19
7.3.140.0100.00516.13
7.3.130.0070.00716.40
7.3.120.0130.00316.14
7.3.110.0030.01316.14
7.3.100.0090.00916.13
7.3.90.0120.00616.24
7.3.80.0100.00716.39
7.3.70.0120.00616.09
7.3.60.0120.00416.05
7.3.50.0150.00616.23
7.3.40.0040.01316.26
7.3.30.0080.00816.07
7.3.20.0120.01216.08
7.3.10.0060.01316.04
7.3.00.0070.01316.00
7.2.330.0120.00616.55
7.2.320.0070.00916.54
7.2.310.0070.01316.29
7.2.300.0050.01916.37
7.2.290.0130.00516.17
7.2.270.0130.01016.39
7.2.260.0140.00416.48
7.2.250.0080.00816.39
7.2.240.0170.00316.47
7.2.230.0090.00916.56
7.2.220.0070.01716.58
7.2.210.0130.01016.58
7.2.200.0040.01516.38
7.2.190.0090.01216.53
7.2.180.0070.01016.26
7.2.170.0130.00416.55
7.2.160.0090.00916.48
7.2.150.0090.01016.48
7.2.140.0110.01116.40
7.2.130.0120.00616.55
7.2.120.0000.01616.47
7.2.110.0100.00816.47
7.2.100.0100.01316.41
7.2.90.0200.00016.26
7.2.80.0080.01616.37
7.2.70.0130.00716.42
7.2.60.0030.01316.40
7.2.50.0060.01016.34
7.2.40.0070.01416.51
7.2.30.0000.01716.44
7.2.20.0090.00916.46
7.2.10.0100.00716.33
7.2.00.0160.00716.23

preferences:
40.24 ms | 403 KiB | 5 Q