3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [2,3,4,5,6,7]; $b = [11,64,2,5,8]; $c = 7; var_dump( array_intersect ( $a, $b )); var_dump( array_intersect ( $a, (array)$c )); var_dump( count( $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.40.0110.00418.92
8.3.30.0120.00918.58
8.3.20.0120.00620.25
8.3.10.0040.00423.52
8.3.00.0080.00019.79
8.2.170.0090.00622.96
8.2.160.0160.00320.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00821.13
8.2.120.0040.00426.35
8.2.110.0110.00720.31
8.2.100.0040.00717.91
8.2.90.0090.00019.17
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0000.00817.91
8.2.50.0110.00018.07
8.2.40.0040.00419.34
8.2.30.0030.00520.50
8.2.20.0030.00617.61
8.2.10.0040.00418.00
8.2.00.0090.00018.11
8.1.270.0030.00620.21
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0090.00022.14
8.1.230.0000.01217.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.48
8.1.190.0040.00417.34
8.1.180.0030.00618.10
8.1.170.0000.00818.51
8.1.160.0000.00720.64
8.1.150.0040.00418.75
8.1.140.0000.00819.62
8.1.130.0040.00417.64
8.1.120.0040.00417.53
8.1.110.0040.00417.35
8.1.100.0050.00317.35
8.1.90.0080.00017.50
8.1.80.0000.00817.49
8.1.70.0040.00417.37
8.1.60.0030.00517.46
8.1.50.0030.00517.45
8.1.40.0080.00017.44
8.1.30.0000.00917.69
8.1.20.0030.00617.54
8.1.10.0080.00017.45
8.1.00.0000.00717.37
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.29
8.0.270.0080.00017.27
8.0.260.0030.00317.18
8.0.250.0070.00016.82
8.0.240.0000.00816.87
8.0.230.0000.00816.86
8.0.220.0070.00016.91
8.0.210.0000.00816.77
8.0.200.0060.00016.97
8.0.190.0000.01016.85
8.0.180.0000.00816.92
8.0.170.0070.00016.94
8.0.160.0000.00716.97
8.0.150.0000.00916.78
8.0.140.0000.00916.81
8.0.130.0000.00813.39
8.0.120.0040.00416.86
8.0.110.0000.00716.88
8.0.100.0000.00716.84
8.0.90.0000.00716.95
8.0.80.0030.01316.93
8.0.70.0040.00417.06
8.0.60.0000.00716.82
8.0.50.0000.00816.73
8.0.30.0050.01216.93
8.0.20.0110.01017.40
8.0.10.0040.00416.94
8.0.00.0100.00716.65
7.4.330.0060.00016.78
7.4.320.0030.00316.61
7.4.300.0000.00616.60
7.4.290.0040.00416.63
7.4.280.0030.00616.53
7.4.270.0000.00716.58
7.4.260.0000.00716.55
7.4.250.0050.00316.36
7.4.240.0060.00216.50
7.4.230.0000.00716.59
7.4.220.0060.01216.39
7.4.210.0030.01416.45
7.4.200.0070.00016.54
7.4.160.0090.00616.33
7.4.150.0060.01217.40
7.4.140.0090.01117.86
7.4.130.0120.00916.48
7.4.120.0100.00716.45
7.4.110.0090.00916.46
7.4.100.0150.00916.50
7.4.90.0090.00916.52
7.4.80.0110.00719.39
7.4.70.0060.01216.67
7.4.60.0060.00916.54
7.4.50.0080.00616.53
7.4.40.0060.00916.55
7.4.30.0240.01416.50
7.4.00.0070.01215.06
7.3.330.0040.00412.99
7.3.320.0020.00213.10
7.3.310.0000.00716.22
7.3.300.0000.00616.26
7.3.290.0090.00616.28
7.3.280.0080.00816.25
7.3.270.0110.00617.40
7.3.260.0100.00716.27
7.3.250.0110.01016.21
7.3.240.0090.01016.29
7.3.230.0080.00816.39
7.3.210.0100.00616.31
7.3.200.0120.00416.36
7.3.190.0150.00616.46
7.3.180.0080.01016.48
7.3.170.0110.00716.41
7.3.160.0060.01016.24
7.3.120.0030.01614.73
7.3.110.0090.00714.89
7.3.100.0090.00414.97
7.3.90.0000.01414.79
7.3.80.0080.00614.75
7.3.70.0060.00314.69
7.3.60.0000.01314.68
7.3.50.0090.00614.64
7.3.40.0120.00614.59
7.3.30.0030.00714.65
7.3.20.0060.00916.56
7.3.10.0030.01016.51
7.3.00.0000.01116.29
7.2.330.0090.01216.45
7.2.320.0060.01616.54
7.2.310.0110.00516.31
7.2.300.0090.00916.33
7.2.290.0060.01216.60
7.2.250.0070.01414.94
7.2.240.0100.01015.21
7.2.230.0110.01114.97
7.2.220.0100.01014.63
7.2.210.0140.00315.04
7.2.200.0070.00714.70
7.2.190.0030.01014.76
7.2.180.0090.00914.89
7.2.170.0070.01014.89
7.2.130.0040.00817.02
7.2.120.0000.00916.81
7.2.110.0030.00816.93
7.2.100.0060.00616.96
7.2.90.0040.00716.74
7.2.80.0070.00716.68
7.2.70.0040.01216.95
7.2.60.0100.00516.59
7.2.50.0060.00616.88
7.2.40.0070.00716.98
7.2.30.0030.01016.68
7.2.20.0000.01316.73
7.2.10.0040.00416.82
7.2.00.0050.00918.09
7.1.330.0040.01115.71
7.1.320.0070.00715.71
7.1.310.0060.00915.67
7.1.300.0090.00615.71
7.1.290.0060.00915.56
7.1.280.0030.01415.52
7.1.270.0030.00615.80
7.1.260.0070.01015.57
7.1.250.0040.00415.84
7.1.200.0030.01015.85
7.1.100.0060.00618.29
7.1.70.0030.01317.16
7.1.60.0110.01419.13
7.1.50.0030.01717.04
7.1.00.0000.08022.47
7.0.200.0060.00316.75
7.0.60.0000.04719.86
7.0.50.0070.08317.88
7.0.40.0070.09020.40
7.0.30.0200.06020.43
7.0.20.0330.05320.16
7.0.10.0100.07020.17
7.0.00.0100.04020.19
5.6.280.0000.04320.76
5.6.210.0070.08020.53
5.6.200.0100.05018.19
5.6.190.0100.04720.61
5.6.180.0200.07720.64
5.6.170.0270.07720.62
5.6.160.0030.05320.38
5.6.150.0070.08018.12
5.6.140.0030.05718.18
5.6.130.0030.04018.07
5.6.120.0130.03721.11
5.6.110.0030.09320.98
5.6.100.0130.07321.08
5.6.90.0030.04020.97
5.6.80.0130.08020.52
5.5.350.4170.03720.36
5.5.340.0030.04018.02
5.5.330.0100.06320.29
5.5.320.0370.04020.29
5.5.310.0300.03020.12
5.5.300.0100.07717.91
5.5.290.0030.05317.95
5.5.280.0030.07320.87
5.5.270.0100.08320.75
5.5.260.0070.04020.79
5.5.250.0030.04320.66
5.5.240.0130.06320.36

preferences:
52.21 ms | 400 KiB | 5 Q