3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = array("1","3","5","6","12","13","15","20","24","28","32","33","34","42","47","49","50","54","59","79"); $intersect = array_intersect_keys(array_combine($numbers, $numbers), array_fill_keys(range(1, 80), null)); ksort($intersect); var_dump($intersect);

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.0070.01416.86
8.3.50.0100.01016.36
8.3.40.0090.00618.87
8.3.30.0060.01218.85
8.3.20.0040.00420.52
8.3.10.0000.00821.73
8.3.00.0080.00023.57
8.2.180.0120.00318.31
8.2.170.0140.00722.96
8.2.160.0140.00719.41
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0060.00319.72
8.2.120.0070.00026.35
8.2.110.0060.00320.93
8.2.100.0040.00817.93
8.2.90.0080.00019.05
8.2.80.0030.00618.04
8.2.70.0060.00317.63
8.2.60.0030.00617.80
8.2.50.0050.00318.07
8.2.40.0080.00220.43
8.2.30.0000.00819.26
8.2.20.0060.00317.66
8.2.10.0000.00718.15
8.2.00.0000.00717.96
8.1.280.0070.01425.92
8.1.270.0080.00622.19
8.1.260.0070.00028.09
8.1.250.0030.00528.09
8.1.240.0030.01020.70
8.1.230.0040.00819.04
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00917.23
8.1.180.0070.00018.10
8.1.170.0060.00318.50
8.1.160.0050.00220.72
8.1.150.0060.00318.86
8.1.140.0040.00419.38
8.1.130.0000.00717.68
8.1.120.0000.00817.31
8.1.110.0080.00017.24
8.1.100.0070.00017.38
8.1.90.0060.00317.43
8.1.80.0000.00817.27
8.1.70.0000.00817.41
8.1.60.0000.00717.48
8.1.50.0090.00017.48
8.1.40.0070.00017.51
8.1.30.0000.00817.67
8.1.20.0030.00617.62
8.1.10.0040.00417.57
8.1.00.0040.00417.39
8.0.300.0050.00318.77
8.0.290.0050.00216.75
8.0.280.0000.00718.38
8.0.270.0040.00417.19
8.0.260.0000.00717.25
8.0.250.0030.00316.97
8.0.240.0000.00816.97
8.0.230.0040.00416.84
8.0.220.0020.00516.85
8.0.210.0000.00716.86
8.0.200.0000.00616.81
8.0.190.0040.00416.90
8.0.180.0040.00416.97
8.0.170.0000.00716.84
8.0.160.0030.00316.88
8.0.150.0050.00316.77
8.0.140.0000.00716.73
8.0.130.0030.00313.30
8.0.120.0040.00416.71
8.0.110.0050.00216.88
8.0.100.0040.00416.77
8.0.90.0040.00416.92
8.0.80.0080.00816.82
8.0.70.0030.00616.90
8.0.60.0000.00816.77
8.0.50.0000.00716.86
8.0.30.0100.00917.16
8.0.20.0100.00817.40
8.0.10.0000.00717.07
8.0.00.0070.01016.70
7.4.330.0020.00216.71
7.4.320.0030.00316.45
7.4.300.0000.00816.48
7.4.290.0000.00716.59
7.4.280.0050.00316.57
7.4.270.0070.00016.45
7.4.260.0040.00416.38
7.4.250.0080.00016.49
7.4.240.0020.00516.46
7.4.230.0050.00216.25
7.4.220.0000.01916.41
7.4.210.0050.01116.51
7.4.200.0070.00016.31
7.4.160.0100.00616.43
7.4.150.0060.01317.40
7.4.140.0080.01117.86
7.4.130.0150.00316.42
7.4.120.0130.00516.63
7.4.110.0160.00316.61
7.4.100.0080.00816.63
7.4.90.0120.00616.44
7.4.80.0070.01119.39
7.4.70.0070.01016.22
7.4.60.0130.00316.42
7.4.50.0060.00616.60
7.4.40.0060.01616.58
7.4.30.0090.01216.46
7.4.10.0030.01316.43
7.4.00.0050.01215.38
7.3.330.0050.00013.06
7.3.320.0030.00213.16
7.3.310.0000.00716.39
7.3.300.0030.00316.25
7.3.290.0030.00316.29
7.3.280.0090.00816.28
7.3.270.0120.01017.40
7.3.260.0030.01516.52
7.3.240.0160.00916.46
7.3.230.0100.00616.39
7.3.210.0060.01116.48
7.3.200.0030.01419.39
7.3.190.0150.00616.27
7.3.180.0100.00616.31
7.3.170.0100.00716.27
7.3.160.0110.00916.38
7.3.130.0070.01416.23
7.3.120.0120.00616.29
7.3.110.0150.00016.35
7.3.100.0040.01516.16
7.3.90.0110.00716.37
7.3.80.0030.01016.13
7.3.70.0040.01116.28
7.3.60.0060.00916.21
7.3.50.0060.00616.29
7.3.40.0090.00316.16
7.3.30.0100.01016.05
7.3.20.0060.00918.04
7.3.10.0030.00918.01
7.3.00.0070.01017.98
7.2.330.0090.00916.75
7.2.320.0060.01216.66
7.2.310.0090.00916.45
7.2.300.0180.00016.62
7.2.290.0130.00316.25
7.2.260.0160.00316.24
7.2.250.0100.01016.57
7.2.240.0120.00416.49
7.2.230.0070.00716.14
7.2.220.0090.00916.22
7.2.210.0030.01516.43
7.2.200.0060.00916.36
7.2.190.0030.01016.32
7.2.180.0120.00316.29
7.2.170.0000.01516.34
7.2.160.0060.01016.34
7.2.150.0040.00818.25
7.2.140.0090.00318.27
7.2.130.0090.00618.26
7.2.120.0030.01318.24
7.2.110.0050.00518.08
7.2.100.0120.00318.24
7.2.90.0030.00618.15
7.2.80.0060.00618.16
7.2.70.0040.01218.13
7.2.60.0040.00917.31
7.2.50.0070.00717.92
7.2.40.0120.00318.23
7.2.30.0060.00618.32
7.2.20.0100.00018.21
7.2.10.0070.00718.16
7.2.00.0070.00418.71
7.1.330.0040.01116.98
7.1.320.0030.00716.89
7.1.310.0070.00717.09
7.1.300.0060.00617.21
7.1.290.0050.00317.15
7.1.280.0000.01417.18
7.1.270.0060.01217.13
7.1.260.0000.01017.04
7.1.250.0100.00617.18
7.1.240.0070.00317.17
7.1.230.0060.00617.05
7.1.220.0040.00717.17
7.1.210.0030.00717.17
7.1.200.0050.00816.31
7.1.190.0110.00016.89
7.1.180.0000.01117.09
7.1.170.0030.00717.17
7.1.160.0060.01017.01
7.1.150.0100.00317.20
7.1.140.0000.01016.95
7.1.130.0070.00717.06
7.1.120.0060.00817.15
7.1.110.0000.01116.98
7.1.100.0060.00517.63
7.1.90.0070.00717.12
7.1.80.0000.01316.84
7.1.70.0060.00517.03
7.1.60.0050.01518.20
7.1.50.0080.00616.91
7.1.40.0070.00717.19
7.1.30.0070.00717.28
7.1.20.0000.01017.03
7.1.10.0030.01016.75
7.1.00.0050.04219.75
7.0.330.0030.01016.71
7.0.320.0040.01116.78
7.0.310.0120.00316.88
7.0.300.0030.01016.68
7.0.290.0070.00716.76
7.0.280.0030.01016.89
7.0.270.0100.00016.82
7.0.260.0060.00616.78
7.0.250.0070.00416.94
7.0.240.0060.00316.93
7.0.230.0060.00916.93
7.0.220.0000.01016.89
7.0.210.0060.00916.76
7.0.200.0070.00516.70
7.0.190.0070.00316.83
7.0.180.0050.00516.93
7.0.170.0060.00616.88
7.0.160.0090.00616.83
7.0.150.0040.00816.91
7.0.140.0040.00416.84
7.0.130.0060.00616.70
7.0.120.0060.00617.06
7.0.110.0030.00616.88
7.0.100.0110.00416.69
7.0.90.0090.00616.85
7.0.80.0000.01416.68
7.0.70.0070.00716.69
7.0.60.0050.04419.33
7.0.50.0050.04517.23
7.0.40.0020.04717.41
7.0.30.0220.03817.49
7.0.20.0140.04717.38
7.0.10.0030.02517.55
7.0.00.0100.02717.52
5.6.400.0070.00715.86
5.6.390.0030.01215.49
5.6.380.0060.00915.64
5.6.370.0060.00715.51
5.6.360.0070.00715.67
5.6.350.0070.00315.73
5.6.340.0030.01015.78
5.6.330.0040.00815.59
5.6.320.0040.01115.89
5.6.310.0070.01015.91
5.6.300.0040.01115.54
5.6.290.0090.00615.57
5.6.280.0030.03918.33
5.6.270.0100.00715.74
5.6.260.0080.00415.86
5.6.250.0150.00015.48
5.6.240.0060.00615.62
5.6.230.0030.01315.67
5.6.220.0100.00715.54
5.6.210.0020.02518.22
5.6.200.0070.03216.97
5.6.190.0040.04418.06
5.6.180.0280.04218.10
5.6.170.0170.02618.04
5.6.160.0030.03417.98
5.6.150.0070.04216.96
5.6.140.0050.03416.99
5.6.130.0030.02516.91
5.6.120.0070.03118.32
5.6.110.0050.02518.45
5.6.100.0100.04318.38
5.6.90.0130.04218.31
5.6.80.0100.04118.00
5.6.70.0110.00315.49
5.6.60.0070.01015.62
5.6.50.0000.00915.66
5.6.40.0030.01015.57
5.6.30.0100.00715.45
5.6.20.0090.00615.69
5.6.10.0030.00615.71
5.6.00.0040.00815.75
5.5.380.0070.00715.58
5.5.370.0110.00315.53
5.5.360.0090.00015.65
5.5.350.2150.02418.00
5.5.340.0070.02516.71
5.5.330.0080.04218.00
5.5.320.0170.02717.94
5.5.310.0190.02817.76
5.5.300.0000.02916.66
5.5.290.0070.04116.70
5.5.280.0050.02818.28
5.5.270.0080.03818.12
5.5.260.0050.04518.07
5.5.250.0100.03218.12
5.5.240.0090.03317.94
5.5.230.0080.00815.62
5.5.220.0030.00615.46
5.5.210.0040.01115.57
5.5.200.0100.00715.59
5.5.190.0040.01115.48
5.5.180.0030.01015.18
5.5.170.0030.00615.39
5.5.160.0060.00915.49
5.5.150.0060.00615.23
5.5.140.0070.01315.62
5.5.130.0090.00915.38
5.5.120.0090.01015.17
5.5.110.0030.01215.25
5.5.100.0030.01015.63
5.5.90.0150.00415.40
5.5.80.0100.00315.36
5.5.70.0090.00615.54
5.5.60.0090.00615.50
5.5.50.0100.00315.52
5.5.40.0040.01115.23
5.5.30.0060.00615.71
5.5.20.0120.00315.60
5.5.10.0060.00915.28
5.5.00.0090.00615.50

preferences:
52.01 ms | 401 KiB | 5 Q