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_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.0060.01518.17
8.3.50.0090.01121.05
8.3.40.0130.00718.77
8.3.30.0150.00618.39
8.3.20.0080.00020.15
8.3.10.0040.00421.66
8.3.00.0070.00723.65
8.2.180.0140.00316.63
8.2.170.0150.00322.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00019.66
8.2.120.0040.00426.35
8.2.110.0090.00020.96
8.2.100.0030.00917.91
8.2.90.0050.00319.08
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0050.00318.04
8.2.50.0000.00818.07
8.2.40.0000.00822.16
8.2.30.0040.00419.37
8.2.20.0050.00317.62
8.2.10.0040.00418.12
8.2.00.0040.00418.11
8.1.280.0100.00725.92
8.1.270.0040.01122.19
8.1.260.0000.00828.09
8.1.250.0080.00028.09
8.1.240.0090.00023.97
8.1.230.0040.00819.06
8.1.220.0060.00317.76
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0070.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00618.51
8.1.160.0000.00820.61
8.1.150.0040.00418.82
8.1.140.0040.00419.43
8.1.130.0040.00417.65
8.1.120.0040.00317.46
8.1.110.0030.00617.38
8.1.100.0040.00417.27
8.1.90.0040.00417.43
8.1.80.0040.00417.35
8.1.70.0080.00017.39
8.1.60.0080.00017.41
8.1.50.0090.00017.36
8.1.40.0050.00317.47
8.1.30.0030.00517.60
8.1.20.0040.00417.54
8.1.10.0000.00717.39
8.1.00.0080.00017.40
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0030.00318.43
8.0.270.0070.00017.19
8.0.260.0070.00017.14
8.0.250.0030.00316.83
8.0.240.0030.00316.82
8.0.230.0000.00816.83
8.0.220.0000.00716.86
8.0.210.0070.00016.72
8.0.200.0030.00316.89
8.0.190.0080.00016.86
8.0.180.0050.00216.82
8.0.170.0040.00416.75
8.0.160.0000.00716.74
8.0.150.0050.00316.86
8.0.140.0030.00316.66
8.0.130.0060.00013.32
8.0.120.0060.00316.68
8.0.110.0000.00716.80
8.0.100.0040.00416.71
8.0.90.0070.00016.81
8.0.80.0060.00916.83
8.0.70.0030.00516.65
8.0.60.0070.00016.72
8.0.50.0000.00816.83
8.0.30.0110.01216.83
8.0.20.0100.01117.40
8.0.10.0000.00716.84
8.0.00.0100.01016.72
7.4.330.0050.00016.77
7.4.320.0040.00416.52
7.4.300.0000.00716.56
7.4.290.0000.00716.42
7.4.280.0050.00316.49
7.4.270.0040.00416.55
7.4.260.0030.00516.35
7.4.250.0000.00816.33
7.4.240.0040.00416.42
7.4.230.0030.00316.64
7.4.220.0090.01216.57
7.4.210.0100.00616.52
7.4.200.0030.00316.65
7.4.160.0130.01316.37
7.4.150.0070.01417.40
7.4.140.0140.00517.86
7.4.130.0080.01016.38
7.4.120.0160.00616.40
7.4.110.0130.00716.22
7.4.100.0060.01216.25
7.4.90.0110.01116.25
7.4.80.0070.01319.39
7.4.70.0090.01116.23
7.4.60.0050.01116.47
7.4.50.0060.00616.43
7.4.40.0110.00816.45
7.4.30.0090.01216.38
7.4.00.0080.00615.01
7.3.330.0050.00012.90
7.3.320.0030.00312.94
7.3.310.0000.00716.18
7.3.300.0060.00316.14
7.3.290.0030.00316.13
7.3.280.0090.01016.12
7.3.270.0180.00217.40
7.3.260.0160.01016.42
7.3.250.0130.00716.38
7.3.240.0110.00416.27
7.3.230.0180.00016.39
7.3.210.0140.00416.20
7.3.200.0070.01419.39
7.3.190.0180.00916.32
7.3.180.0070.01116.06
7.3.170.0110.00816.32
7.3.160.0120.00616.45
7.3.120.0080.01014.65
7.3.110.0050.01214.78
7.3.100.0050.01014.77
7.3.90.0080.00614.79
7.3.80.0030.00814.67
7.3.70.0070.00714.59
7.3.60.0110.00514.58
7.3.50.0040.00714.67
7.3.40.0080.00814.48
7.3.30.0080.00614.62
7.3.20.0080.00416.41
7.3.10.0060.00816.42
7.3.00.0110.00516.53
7.2.330.0260.01416.46
7.2.320.0100.00716.63
7.2.310.0130.00316.18
7.2.300.0140.01016.61
7.2.290.0140.00316.34
7.2.250.0110.01114.48
7.2.240.0140.00514.80
7.2.230.0090.00614.93
7.2.220.0050.01014.89
7.2.210.0050.01014.81
7.2.200.0060.00914.72
7.2.190.0100.00314.67
7.2.180.0060.00814.70
7.2.170.0030.01314.92
7.2.160.0070.00714.94
7.2.150.0030.01016.87
7.2.140.0090.00616.76
7.2.130.0070.00716.87
7.2.120.0070.00716.89
7.2.110.0130.00316.68
7.2.100.0000.01016.76
7.2.90.0040.01116.86
7.2.80.0100.00716.46
7.2.70.0000.01616.84
7.2.60.0050.00716.65
7.2.50.0000.01416.49
7.2.40.0060.00916.61
7.2.30.0090.00316.52
7.2.20.0030.00716.80
7.2.10.0090.00616.86
7.2.00.0030.00717.94
7.1.330.0100.00515.80
7.1.320.0050.00915.90
7.1.310.0070.00815.61
7.1.300.0040.00815.80
7.1.290.0030.01115.58
7.1.280.0090.00415.64
7.1.270.0050.01015.69
7.1.260.0030.00815.76
7.1.250.0030.01415.52
7.1.200.0110.00015.78
7.1.100.0030.01018.02
7.1.70.0080.00317.16
7.1.60.0100.01419.28
7.1.50.0150.01516.91
7.1.00.0070.07322.48
7.0.200.0050.00516.79
7.0.100.0030.04720.15
7.0.90.0130.04019.87
7.0.80.0070.03719.83
7.0.70.0130.03319.85
7.0.60.0130.05319.93
7.0.50.0100.08020.14
7.0.40.0000.06320.12
7.0.30.0130.06320.10
7.0.20.0100.07020.18
7.0.10.0070.03720.12
7.0.00.0100.04320.04
5.6.280.0030.05721.10
5.6.250.0100.03720.59
5.6.240.0000.04720.68
5.6.230.0030.04020.63
5.6.220.0030.04020.74
5.6.210.0100.03720.64
5.6.200.0070.04321.04
5.6.190.0130.03021.09
5.6.180.0070.08020.95
5.6.170.0100.07721.06
5.6.160.0100.07721.04
5.6.150.0170.06320.96
5.6.140.0130.07321.04
5.6.130.0070.05321.11
5.6.120.0130.04720.95
5.6.110.0100.04721.16
5.6.100.0000.08021.09
5.6.90.0070.05021.07
5.6.80.0070.08020.41
5.6.70.0100.06020.32
5.6.60.0070.07720.36
5.6.50.0070.05320.51
5.6.40.0030.04720.40
5.6.30.0170.06020.43
5.6.20.0070.08020.52
5.6.10.0030.08720.46
5.6.00.0130.07320.38
5.5.380.0100.03320.44
5.5.370.0070.03720.45
5.5.360.0030.04320.39
5.5.350.0070.03720.42
5.5.340.0070.04020.83
5.5.330.0000.08720.88
5.5.320.0070.08320.77
5.5.310.0030.04020.64
5.5.300.0130.07020.83
5.5.290.0030.05720.88
5.5.280.0030.07020.79
5.5.270.0100.08020.63
5.5.260.0070.04720.83
5.5.250.0070.08320.64
5.5.240.0070.04320.22
5.5.230.0100.06020.24
5.5.220.0100.05320.23
5.5.210.0030.04020.13
5.5.200.0200.06320.14
5.5.190.0070.03720.23
5.5.180.0000.08320.28
5.5.160.0070.08020.26
5.5.150.0100.07320.11
5.5.140.0070.07020.23
5.5.130.0030.05320.14
5.5.120.0030.07020.10
5.5.110.0000.04720.15
5.5.100.0070.04320.16
5.5.90.0230.06320.09
5.5.80.0200.03320.00
5.5.70.0130.04320.09
5.5.60.0070.04020.15
5.5.50.0030.03720.05
5.5.40.0070.03319.95
5.5.30.0100.07320.05
5.5.20.0170.06020.15
5.5.10.0070.04320.04
5.5.00.0030.08020.03

preferences:
78.28 ms | 401 KiB | 5 Q