3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $a2=array("e"=>"red","f"=>"green","g"=>"blue"); $result=array_intersect($a1,$a2); 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.3.60.0190.00318.55
8.3.50.0110.01122.04
8.3.40.0130.00618.52
8.3.30.0140.00718.93
8.3.20.0080.00020.13
8.3.10.0040.00421.92
8.3.00.0050.00322.34
8.2.180.0100.01018.16
8.2.170.0080.01222.96
8.2.160.0040.01120.94
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0030.00626.16
8.2.120.0050.00317.50
8.2.110.0070.00321.00
8.2.100.0110.00017.85
8.2.90.0050.00318.22
8.2.80.0040.00417.97
8.2.70.0030.00617.46
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0080.00018.22
8.2.30.0040.00417.93
8.2.20.0040.00417.49
8.2.10.0050.00317.53
8.2.00.0000.00917.73
8.1.280.0140.00725.92
8.1.270.0060.00922.03
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0090.00022.05
8.1.230.0000.01120.89
8.1.220.0080.00017.74
8.1.210.0100.00018.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00618.38
8.1.160.0000.00721.94
8.1.150.0020.00518.61
8.1.140.0080.00017.25
8.1.130.0030.00317.82
8.1.120.0000.00717.43
8.1.110.0060.00317.29
8.1.100.0070.00017.34
8.1.90.0070.00017.37
8.1.80.0000.00717.40
8.1.70.0000.00717.23
8.1.60.0030.00617.56
8.1.50.0060.00317.45
8.1.40.0000.00717.41
8.1.30.0030.00517.57
8.1.20.0000.00917.48
8.1.10.0000.00817.37
8.1.00.0040.00417.39
8.0.300.0040.00420.16
8.0.290.0080.00016.63
8.0.280.0070.00018.38
8.0.270.0000.00817.18
8.0.260.0030.00316.65
8.0.250.0000.00716.75
8.0.240.0030.00316.91
8.0.230.0050.00316.86
8.0.220.0070.00016.86
8.0.210.0000.00716.66
8.0.200.0070.00016.92
8.0.190.0040.00416.94
8.0.180.0030.00516.84
8.0.170.0030.00516.80
8.0.160.0040.00416.89
8.0.150.0070.00016.78
8.0.140.0000.00816.74
8.0.130.0000.00613.23
8.0.120.0030.00616.81
8.0.110.0000.00816.82
8.0.100.0000.00816.80
8.0.90.0000.00816.80
8.0.80.0110.00316.80
8.0.70.0040.00416.76
8.0.60.0040.00416.77
8.0.50.0070.00016.86
8.0.30.0120.00717.00
8.0.20.0090.01117.40
8.0.10.0000.00716.88
8.0.00.0050.01216.72
7.4.330.0000.00515.03
7.4.320.0000.00616.44
7.4.300.0000.00616.44
7.4.290.0080.00016.33
7.4.280.0000.00716.40
7.4.270.0070.00016.53
7.4.260.0000.00616.55
7.4.250.0040.00416.52
7.4.240.0020.00516.55
7.4.230.0030.00316.50
7.4.220.0100.01316.60
7.4.210.0120.00616.53
7.4.200.0040.00416.23
7.4.190.0070.00016.68
7.4.160.0180.00416.39
7.4.150.0150.00317.40
7.4.140.0080.00917.86
7.4.130.0130.00416.37
7.4.120.0090.00916.40
7.4.110.0140.00316.23
7.4.100.0070.01016.38
7.4.90.0140.00316.49
7.4.80.0070.01119.39
7.4.70.0080.00816.29
7.4.60.0130.00316.41
7.4.50.0030.00516.43
7.4.40.0050.00822.77
7.4.30.0070.01016.41
7.4.00.0040.01414.72
7.3.330.0050.00013.04
7.3.320.0000.00512.98
7.3.310.0070.00016.08
7.3.300.0000.00716.17
7.3.290.0130.00316.15
7.3.280.0030.01316.12
7.3.270.0140.00317.40
7.3.260.0030.01416.27
7.3.250.0100.00616.28
7.3.240.0060.00916.31
7.3.230.0030.01916.39
7.3.210.0150.01116.10
7.3.200.0130.01019.39
7.3.190.0060.01116.15
7.3.180.0120.00316.13
7.3.170.0130.00716.52
7.3.160.0040.01216.12
7.3.120.0090.00614.82
7.3.40.0190.00314.37
7.3.10.0030.01016.50
7.3.00.0060.00616.43
7.2.330.0100.00716.62
7.2.320.0090.00916.45
7.2.310.0060.01016.66
7.2.300.0200.00316.59
7.2.290.0030.01316.57
7.2.130.0120.00016.41
7.2.120.0060.00616.71
7.2.110.0030.01416.59
7.2.100.0040.01116.68
7.2.90.0170.00016.75
7.2.80.0030.01316.80
7.2.70.0000.01416.64
7.2.60.0020.01216.79
7.2.50.0090.00616.95
7.2.40.0030.00616.52
7.2.30.0090.00616.73
7.2.20.0060.00816.66
7.2.10.0140.00016.63
7.2.00.0040.00617.89
7.1.250.0000.01215.70
7.1.200.0000.00815.73
7.1.100.1000.01016.19
7.1.70.0000.00917.16
7.1.60.0000.01316.86
7.1.50.0000.01016.83
7.1.40.0150.00016.41
7.1.30.0040.00716.55
7.1.20.0090.00916.46
7.1.10.0100.00016.48
7.1.00.0080.00516.89
7.0.200.0000.00916.66
7.0.190.0000.01316.65
7.0.180.0040.00416.10
7.0.170.0050.00516.24
7.0.160.0040.00416.15
7.0.150.0060.00316.03
7.0.140.0000.01016.03
7.0.130.0000.01016.57
7.0.120.0080.00216.37
7.0.110.0060.00616.15
7.0.100.0050.00916.37
7.0.90.0000.01316.21
7.0.80.0080.00816.49
7.0.70.0040.00816.20
7.0.60.0080.00415.82
7.0.50.0070.00716.36
7.0.40.0060.00615.25
7.0.30.0100.00715.25
7.0.20.0060.00615.25
7.0.10.0080.00415.25
7.0.00.0030.01215.25
5.6.300.0000.07820.65
5.6.290.0000.04920.91
5.6.280.0120.03721.00
5.6.270.0060.04621.06
5.6.260.0070.04020.86
5.6.250.0110.03821.05
5.6.240.0160.03220.77
5.6.230.0070.04420.80
5.6.220.0120.03820.82
5.6.210.0070.04321.00
5.6.200.0030.04521.01
5.6.190.0150.06420.83
5.6.180.0030.04220.85
5.6.170.0120.03620.73
5.6.160.0060.04520.85
5.6.150.0100.04420.93
5.6.140.0100.04720.80
5.6.130.0030.05920.80
5.6.120.0110.04620.84
5.6.110.0070.04520.73
5.6.100.0100.04220.70
5.6.90.0060.05520.82
5.6.80.0180.04820.15
5.6.70.0000.07620.08
5.6.60.0320.02920.11
5.6.50.0140.03220.40
5.6.40.0030.04820.17
5.6.30.0060.03920.17
5.6.20.0000.04420.09
5.6.10.0040.04820.36
5.6.00.0070.04520.14
5.5.380.0030.04517.57
5.5.370.0060.03917.45
5.5.360.0000.05517.39
5.5.350.0030.04517.44
5.5.340.0030.05518.00
5.5.330.0030.05118.01
5.5.320.0000.04218.03
5.5.310.0000.04617.99
5.5.300.0070.03918.01
5.5.290.0030.05417.89
5.5.280.0030.04017.69
5.5.270.0070.03917.99
5.5.260.0030.05017.99
5.5.250.0030.03917.62
5.5.240.0030.03817.08
5.5.230.0030.03917.36
5.5.220.0030.03617.39
5.5.210.0030.04117.28
5.5.200.0030.03817.35
5.5.190.0130.03517.16
5.5.180.0000.05117.16
5.5.160.0000.04417.04
5.5.150.0070.03617.33
5.5.140.0030.03717.37
5.5.130.0030.04017.16
5.5.120.0030.04617.27
5.5.110.0030.04017.27
5.5.100.0000.04416.94
5.5.90.0030.03917.28
5.5.80.0000.03917.14
5.5.70.0000.04017.19
5.5.60.0060.03517.23
5.5.50.0030.03816.93
5.5.40.0070.03717.25
5.5.30.0000.04216.93
5.5.20.0090.03116.92
5.5.10.0030.04717.23
5.5.00.0000.04616.89
5.4.450.0060.04119.46
5.4.440.0070.04619.13
5.4.430.0030.04519.47
5.4.420.0100.03619.25
5.4.410.0000.05019.20
5.4.400.0070.03618.80
5.4.390.0030.05118.95
5.4.380.0070.03619.02
5.4.370.0030.03918.97
5.4.360.0030.04219.04
5.4.350.0030.03518.93
5.4.340.0070.03718.92
5.4.320.0040.03919.15
5.4.310.0100.03518.96
5.4.300.0070.03919.12
5.4.290.0000.04118.97
5.4.280.0130.05019.00
5.4.270.0000.04018.96
5.4.260.0100.03319.06
5.4.250.0000.03919.02
5.4.240.0040.04019.00
5.4.230.0000.04018.84
5.4.220.0070.03718.92
5.4.210.0100.03818.80
5.4.200.0030.03619.11
5.4.190.0060.03818.91
5.4.180.0060.03819.12
5.4.170.0030.04019.12
5.4.160.0070.05518.91
5.4.150.0030.04418.94
5.4.140.0060.04416.48
5.4.130.0000.04916.48
5.4.120.0100.02916.57
5.4.110.0000.03716.61
5.4.100.0070.07216.47
5.4.90.0030.03516.52
5.4.80.0000.04116.45
5.4.70.0000.04116.53
5.4.60.0030.03816.57
5.4.50.0060.03416.44
5.4.40.0070.03116.55
5.4.30.0070.03416.59
5.4.20.0000.03816.30
5.4.10.0070.03416.61
5.4.00.0000.03515.95
5.3.290.0060.03615.25
5.3.280.0060.03815.25
5.3.270.0030.04215.25
5.3.260.0000.04415.25
5.3.250.0160.05215.25
5.3.240.0070.03215.25
5.3.230.0000.04215.25
5.3.220.0090.03015.25
5.3.210.0030.03915.25
5.3.200.0240.03115.25
5.3.190.0040.03915.25
5.3.180.0000.04015.25
5.3.170.0090.03415.25
5.3.160.0000.04615.25
5.3.150.0060.03515.25
5.3.140.0030.03915.25
5.3.130.0060.03515.25
5.3.120.0100.03615.25
5.3.110.0030.04115.25
5.3.100.0030.03815.25
5.3.90.0100.04015.25
5.3.80.0030.04215.25
5.3.70.0040.03915.25
5.3.60.0060.03615.25
5.3.50.0000.04015.25
5.3.40.0000.04115.25
5.3.30.0030.03715.25
5.3.20.0060.03415.25
5.3.10.0060.03815.25
5.3.00.0000.03915.25

preferences:
41.24 ms | 401 KiB | 5 Q