3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a= array('mela'=>'pera','mela'=>'pera','arancia'=>'mela'); $b= array_diff_key( $a , array_unique( $a ) ); $i=0; print_r($b); print_r($b[1]);

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.0110.01116.71
8.3.50.0120.00722.84
8.3.40.0110.00718.69
8.3.30.0100.00318.93
8.3.20.0040.00420.24
8.3.10.0070.00023.53
8.3.00.0080.00019.26
8.2.180.0120.00416.50
8.2.170.0140.00722.96
8.2.160.0070.00720.41
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.01126.16
8.2.120.0040.00420.89
8.2.110.0060.00322.21
8.2.100.0100.00017.84
8.2.90.0000.00819.28
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0050.00317.80
8.2.50.0080.00018.07
8.2.40.0000.00717.87
8.2.30.0080.00018.10
8.2.20.0070.00017.80
8.2.10.0000.00718.05
8.2.00.0000.00817.61
8.1.280.0070.00725.92
8.1.270.0030.00523.92
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00420.74
8.1.230.0040.00722.61
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0070.00317.11
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0050.00318.50
8.1.160.0040.00421.88
8.1.150.0000.00718.76
8.1.140.0050.00517.34
8.1.130.0030.00317.82
8.1.120.0030.00317.27
8.1.110.0040.00417.42
8.1.100.0050.00217.41
8.1.90.0000.00717.40
8.1.80.0050.00317.38
8.1.70.0040.00417.34
8.1.60.0080.00017.51
8.1.50.0040.00417.42
8.1.40.0060.00317.48
8.1.30.0090.00017.52
8.1.20.0070.00017.63
8.1.10.0040.00417.48
8.1.00.0000.00817.50
8.0.300.0050.00218.77
8.0.290.0000.00716.63
8.0.280.0030.00318.38
8.0.270.0040.00417.30
8.0.260.0040.00417.18
8.0.250.0000.00616.89
8.0.240.0030.00316.93
8.0.230.0070.00016.89
8.0.220.0040.00416.75
8.0.210.0050.00316.93
8.0.200.0000.00816.93
8.0.190.0000.00816.94
8.0.180.0040.00816.93
8.0.170.0000.00816.90
8.0.160.0000.00716.86
8.0.150.0000.00816.82
8.0.140.0070.00016.82
8.0.130.0030.00313.28
8.0.120.0080.00016.77
8.0.110.0000.00716.89
8.0.100.0000.00816.92
8.0.90.0030.00316.88
8.0.80.0100.00616.88
8.0.70.0030.00516.72
8.0.60.0000.00716.71
8.0.50.0040.00416.89
8.0.30.0110.00816.83
8.0.20.0100.00817.40
8.0.10.0000.00816.89
8.0.00.0090.01016.52
7.4.330.0020.00215.09
7.4.320.0000.00616.49
7.4.300.0030.00316.54
7.4.290.0030.00316.43
7.4.280.0040.00416.44
7.4.270.0000.00716.45
7.4.260.0050.00316.42
7.4.250.0040.00416.45
7.4.240.0040.00416.47
7.4.230.0030.00316.25
7.4.220.0060.01216.46
7.4.210.0030.01316.61
7.4.200.0000.00816.38
7.4.160.0000.01716.36
7.4.150.0140.01617.40
7.4.140.0100.00717.86
7.4.130.0090.01016.47
7.4.120.0100.00616.38
7.4.110.0030.01416.32
7.4.100.0170.00416.30
7.4.90.0000.01716.41
7.4.80.0090.00619.39
7.4.70.0120.00316.48
7.4.60.0090.00916.38
7.4.50.0040.00016.34
7.4.40.0120.00916.63
7.4.30.0170.00616.55
7.4.00.0030.00914.85
7.3.330.0000.00513.11
7.3.320.0030.00312.99
7.3.310.0030.00316.12
7.3.300.0020.00516.23
7.3.290.0040.01116.24
7.3.280.0090.00916.22
7.3.270.0100.01017.40
7.3.260.0090.00916.66
7.3.250.0150.00216.47
7.3.240.0130.00316.42
7.3.230.0100.00716.39
7.3.210.0100.01316.39
7.3.200.0030.01319.39
7.3.190.0030.01316.30
7.3.180.0130.00316.23
7.3.170.0080.01216.35
7.3.160.0120.00316.31
7.2.330.0100.00716.54
7.2.320.0080.00916.60
7.2.310.0090.00816.43
7.2.300.0150.00416.58
7.2.290.0030.00616.58
7.2.00.0030.00719.24
7.1.100.0200.01017.25
7.1.70.0000.01216.87
7.1.60.0070.01019.40
7.1.50.0100.01416.89
7.1.00.0000.07722.45
7.0.200.0000.00716.54
7.0.140.0030.07321.93
7.0.60.0030.04719.91
7.0.50.0070.03717.85
7.0.40.0100.06720.12
7.0.30.0330.06020.30
7.0.20.0270.08020.19
7.0.10.0100.04020.17
7.0.00.0100.04020.12
5.6.280.0070.06720.86
5.6.210.0070.08020.66
5.6.200.0170.05318.15
5.6.190.0200.07020.45
5.6.180.0230.03720.39
5.6.170.0230.08720.48
5.6.160.0070.04320.70
5.6.150.0130.07018.15
5.6.140.0130.07318.16
5.6.130.0070.08018.21
5.6.120.0130.06021.09
5.6.110.0070.07321.00
5.6.100.0070.08721.01
5.6.90.0100.05021.09
5.6.80.0100.07720.37
5.5.350.0170.06020.39
5.5.340.0030.03717.98
5.5.330.0070.08320.41
5.5.320.0070.07320.27
5.5.310.0270.05320.30
5.5.300.0070.05017.91
5.5.290.0130.05317.91
5.5.280.0100.08020.76
5.5.270.0070.05020.76
5.5.260.0000.06720.79
5.5.250.0130.07720.54
5.5.240.0230.06720.03
5.4.450.0200.04319.46
5.4.440.0330.04019.40
5.4.430.0370.04319.24
5.4.420.0330.03719.40
5.4.410.0530.03318.96
5.4.400.0430.02718.78
5.4.390.0370.04719.24
5.4.380.0430.07718.70
5.4.370.0570.07018.68
5.4.360.0400.05718.75
5.4.350.0430.06718.52
5.4.340.0500.06318.49
5.4.320.0030.03912.46
5.4.310.0070.03712.45
5.4.300.0050.03712.45
5.4.290.0080.03512.45
5.4.280.0060.03512.34
5.4.270.0050.03712.35
5.4.260.0030.04012.34
5.4.250.0070.03612.35
5.4.240.0070.03412.34
5.4.230.0060.03712.34
5.4.220.0050.03712.34
5.4.210.0030.03812.34
5.4.200.0070.03612.34
5.4.190.0070.03412.33
5.4.180.0100.03112.34
5.4.170.0050.03812.34
5.4.160.0050.03612.34
5.4.150.0080.03312.34
5.4.140.0110.03212.02
5.4.130.0100.03112.01
5.4.120.0040.03811.97
5.4.110.0070.03411.96
5.4.100.0080.03311.96
5.4.90.0040.03811.96
5.4.80.0030.04111.96
5.4.70.0040.03611.96
5.4.60.0070.03311.96
5.4.50.0050.03711.96
5.4.40.0060.03411.95
5.4.30.0070.03411.95
5.4.20.0050.03511.94
5.4.10.0090.03111.95
5.4.00.0060.03511.43
5.3.290.0080.03812.80
5.3.280.0080.03612.71
5.3.270.0040.04112.72
5.3.260.0090.03612.72
5.3.250.0060.03912.72
5.3.240.0070.03712.72
5.3.230.0030.04012.70
5.3.220.0030.03912.68
5.3.210.0090.03512.68
5.3.200.0040.03812.68
5.3.190.0060.03812.68
5.3.180.0060.03612.67
5.3.170.0040.04012.67
5.3.160.0060.03612.67
5.3.150.0050.03812.67
5.3.140.0050.03712.66
5.3.130.0050.03912.66
5.3.120.0060.03712.66
5.3.110.0070.03712.66
5.3.100.0060.03512.12
5.3.90.0050.03612.08
5.3.80.0050.03712.08
5.3.70.0080.03312.07
5.3.60.0050.03612.07
5.3.50.0050.03612.00
5.3.40.0060.03512.00
5.3.30.0050.03511.95
5.3.20.0100.03111.72
5.3.10.0050.03511.69
5.3.00.0070.03411.68
5.2.170.0080.0269.18
5.2.160.0050.0289.18
5.2.150.0080.0269.19
5.2.140.0060.0289.17
5.2.130.0060.0279.13
5.2.120.0040.0349.13
5.2.110.0060.0279.14
5.2.100.0080.0259.14
5.2.90.0040.0309.14
5.2.80.0040.0349.14
5.2.70.0110.0239.13
5.2.60.0040.0309.09
5.2.50.0040.0309.05
5.2.40.0040.0299.04
5.2.30.0100.0239.01
5.2.20.0070.0269.00
5.2.10.0010.0318.92
5.2.00.0110.0228.77
5.1.60.0030.0258.07
5.1.50.0070.0238.06
5.1.40.0020.0268.04
5.1.30.0040.0268.39
5.1.20.0100.0218.41
5.1.10.0030.0278.14
5.1.00.0090.0218.14
5.0.50.0040.0196.62
5.0.40.0050.0176.48
5.0.30.0050.0296.29
5.0.20.0020.0216.26
5.0.10.0040.0196.24
5.0.00.0020.0316.23
4.4.90.0010.0174.78
4.4.80.0030.0154.75
4.4.70.0080.0104.76
4.4.60.0030.0154.75
4.4.50.0020.0154.77
4.4.40.0060.0214.71
4.4.30.0050.0134.76
4.4.20.0040.0134.85
4.4.10.0020.0154.85
4.4.00.0050.0224.76
4.3.110.0040.0144.67
4.3.100.0030.0144.66
4.3.90.0030.0134.63
4.3.80.0020.0244.59
4.3.70.0020.0144.63
4.3.60.0010.0154.63
4.3.50.0040.0144.63
4.3.40.0040.0224.54
4.3.30.0010.0173.29
4.3.20.0030.0153.25
4.3.10.0010.0163.22
4.3.00.0100.01716.03

preferences:
93.5 ms | 401 KiB | 5 Q