3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = ['apple', 'orange', 'melon', 'banana', 'pineapple']; $find = ['pineapple']; $result = array_intersect($fruits, $find); 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.4.10.0090.00019.37
8.3.140.0040.00416.35
8.3.130.0070.00316.27
8.3.120.0090.00020.82
8.3.110.0030.00720.94
8.3.100.0130.00624.06
8.3.90.0040.00426.77
8.3.80.0090.00016.38
8.3.70.0110.00416.58
8.3.60.0120.00318.30
8.3.50.0050.00918.77
8.3.40.0150.00018.58
8.3.30.0060.00918.30
8.3.20.0030.00620.65
8.3.10.0080.00023.61
8.3.00.0050.00522.54
8.2.260.0080.00018.71
8.2.250.0040.00416.45
8.2.240.0060.00319.07
8.2.230.0090.00922.58
8.2.220.0050.00337.54
8.2.210.0140.00426.77
8.2.200.0090.00016.63
8.2.190.0070.01416.63
8.2.180.0150.00318.29
8.2.170.0160.00018.82
8.2.160.0000.01322.96
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0090.00018.54
8.2.110.0060.00320.35
8.2.100.0040.00717.72
8.2.90.0080.00017.75
8.2.80.0030.00518.71
8.2.70.0050.00317.80
8.2.60.0080.00017.25
8.2.50.0000.00917.63
8.2.40.0050.00320.94
8.2.30.0080.00319.16
8.2.20.0000.00717.86
8.2.10.0040.00419.16
8.2.00.0000.00718.03
8.1.300.0000.00916.34
8.1.290.0040.00418.88
8.1.280.0000.01525.92
8.1.270.0060.00320.70
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00623.61
8.1.230.0070.00420.92
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0070.00717.25
8.1.190.0050.00517.00
8.1.180.0020.00518.10
8.1.170.0050.00518.49
8.1.160.0000.00718.81
8.1.150.0040.00418.78
8.1.140.0040.00420.25
8.1.130.0030.00620.31
8.1.120.0050.00217.39
8.1.110.0070.00017.41
8.1.100.0070.00017.37
8.1.90.0080.00017.39
8.1.80.0080.00017.39
8.1.70.0040.00417.36
8.1.60.0060.00317.50
8.1.50.0030.00717.36
8.1.40.0040.00417.32
8.1.30.0080.00017.59
8.1.20.0050.00317.49
8.1.10.0070.00017.48
8.1.00.0000.00817.25
8.0.300.0070.00018.77
8.0.290.0050.00316.63
8.0.280.0070.00018.24
8.0.270.0030.00517.14
8.0.260.0000.00619.96
8.0.250.0070.00016.91
8.0.240.0040.00416.77
8.0.230.0000.00716.85
8.0.220.0040.00416.85
8.0.210.0070.00016.65
8.0.200.0030.00316.76
8.0.190.0040.00416.87
8.0.180.0040.00416.81
8.0.170.0000.00916.84
8.0.160.0000.00716.72
8.0.150.0070.00016.75
8.0.140.0000.00716.78
8.0.130.0060.00013.24
8.0.120.0070.00016.81
8.0.110.0070.00016.68
8.0.100.0040.00416.72
8.0.90.0000.00716.75
8.0.80.0080.00816.79
8.0.70.0000.00716.71
8.0.60.0000.00716.83
8.0.50.0000.00716.85
8.0.30.0110.00816.97
8.0.20.0150.00917.09
8.0.10.0000.00716.93
8.0.00.0080.01016.66
7.4.330.0050.00015.55
7.4.320.0030.00316.44
7.4.300.0030.00316.55
7.4.290.0070.00016.41
7.4.280.0000.00816.43
7.4.270.0030.00316.52
7.4.260.0000.00716.32
7.4.250.0000.00816.44
7.4.240.0030.00316.30
7.4.230.0000.00816.23
7.4.220.0070.00016.64
7.4.210.0070.00816.51
7.4.200.0040.00416.52
7.4.160.0060.00916.34
7.4.140.0080.01017.86
7.4.130.0130.00916.26
7.4.120.0090.00916.38
7.4.110.0090.00916.14
7.4.100.0130.00916.37
7.4.90.0040.01416.38
7.4.80.0000.01819.39
7.4.70.0140.00916.48
7.4.60.0080.00816.46
7.4.50.0050.00516.22
7.4.40.0060.01216.48
7.4.00.0100.00714.78
7.3.330.0040.00412.83
7.3.320.0030.00312.88
7.3.310.0070.00016.26
7.3.300.0000.00616.04
7.3.290.0030.00316.11
7.3.280.0080.00816.15
7.3.260.0080.01116.20
7.3.240.0110.00716.34
7.3.230.0150.00916.18
7.3.210.0070.01016.11
7.3.200.0170.00316.24
7.3.190.0100.00616.07
7.3.180.0130.00316.23
7.3.170.0140.00616.44
7.3.160.0110.00616.29
7.3.120.0030.01614.64
7.3.110.0040.01414.63
7.3.100.0030.00914.88
7.3.90.0040.01114.75
7.3.80.0030.00614.60
7.3.70.0060.00314.34
7.3.60.0070.01014.64
7.3.50.0110.00414.66
7.3.40.0100.00014.52
7.3.30.0090.00614.53
7.3.20.3010.00815.49
7.3.10.3350.00815.43
7.3.00.3700.00515.56
7.2.330.0160.00316.54
7.2.320.0110.00816.50
7.2.310.0030.01316.45
7.2.300.0110.01016.69
7.2.290.0120.00916.60
7.2.250.0120.00315.07
7.2.240.0070.01014.58
7.2.230.0060.00914.70
7.2.220.0040.01414.88
7.2.210.0090.00315.14
7.2.200.0000.01314.93
7.2.190.0070.00714.96
7.2.180.0030.01014.58
7.2.170.0040.01114.92
7.2.160.0130.00514.97
7.2.150.6660.00714.57
7.2.140.6790.01314.97
7.2.130.6500.00714.70
7.2.120.5680.01015.06
7.2.110.5830.00014.45
7.2.100.5330.01014.91
7.2.90.6930.01614.77
7.2.80.6110.00714.70
7.2.70.6320.01014.91
7.2.60.6200.00314.79
7.2.50.6030.00314.83
7.2.40.5440.00614.82
7.2.30.6430.01714.57
7.2.20.6200.00314.85
7.2.10.6780.01014.64
7.2.00.6400.00714.81
7.1.330.0040.01115.57
7.1.320.0070.00315.82
7.1.310.0030.00915.83
7.1.300.0070.01015.61
7.1.290.0070.00715.50
7.1.280.0110.00415.71
7.1.270.4340.00514.77
7.1.260.5380.00614.69
7.1.250.7080.01013.71

preferences:
67.33 ms | 403 KiB | 5 Q