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.70.0130.00316.58
8.3.60.0140.00616.50
8.3.50.0150.00522.84
8.3.40.0120.00618.80
8.3.30.0140.00019.14
8.3.20.0040.00420.34
8.3.10.0040.00423.71
8.3.00.0050.00319.25
8.2.180.0100.01016.50
8.2.170.0110.00422.96
8.2.160.0100.00320.52
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00320.86
8.2.110.0060.00322.20
8.2.100.0040.00817.97
8.2.90.0030.00519.08
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0000.00917.80
8.2.50.0050.00318.07
8.2.40.0000.00718.16
8.2.30.0000.00717.96
8.2.20.0040.00417.62
8.2.10.0040.00418.04
8.2.00.0060.00317.77
8.1.280.0170.00325.92
8.1.270.0080.00023.71
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0080.00023.97
8.1.230.0000.01119.15
8.1.220.0030.00617.74
8.1.210.0030.00818.77
8.1.200.0030.00617.23
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0000.00918.58
8.1.160.0040.00422.01
8.1.150.0040.00418.89
8.1.140.0080.00017.29
8.1.130.0000.00717.74
8.1.120.0000.00717.43
8.1.110.0080.00017.39
8.1.100.0030.00317.36
8.1.90.0040.00417.41
8.1.80.0030.00517.38
8.1.70.0000.00717.40
8.1.60.0040.00417.53
8.1.50.0000.00817.32
8.1.40.0000.00817.47
8.1.30.0060.00317.55
8.1.20.0040.00417.42
8.1.10.0040.00417.41
8.1.00.0060.00317.46
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0040.00418.43
8.0.270.0000.00717.16
8.0.260.0000.00617.11
8.0.250.0030.00316.89
8.0.240.0080.00016.91
8.0.230.0070.00016.98
8.0.220.0000.00616.87
8.0.210.0000.00716.77
8.0.200.0000.00716.95
8.0.190.0080.00016.94
8.0.180.0000.00716.97
8.0.170.0040.00417.00
8.0.160.0070.00016.88
8.0.150.0040.00416.83
8.0.140.0040.00416.89
8.0.130.0080.00013.22
8.0.120.0000.00816.96
8.0.110.0000.00716.95
8.0.100.0050.00316.79
8.0.90.0000.00716.88
8.0.80.0110.00416.95
8.0.70.0020.00516.72
8.0.60.0080.00016.87
8.0.50.0070.00016.84
8.0.30.0110.00717.12
8.0.20.0080.01417.40
8.0.10.0030.00517.03
8.0.00.0150.00516.72
7.4.330.0000.00615.03
7.4.320.0000.00716.49
7.4.300.0030.00316.45
7.4.290.0040.00416.43
7.4.280.0030.00516.57
7.4.270.0040.00416.46
7.4.260.0060.00316.52
7.4.250.0040.00416.52
7.4.240.0030.00316.44
7.4.230.0070.00016.34
7.4.220.0100.00716.49
7.4.210.0100.00316.57
7.4.200.0080.00016.60
7.4.160.0070.01016.63
7.4.150.0170.00617.40
7.4.140.0090.01217.86
7.4.130.0110.00816.42
7.4.120.0060.01016.56
7.4.110.0040.01216.43
7.4.100.0100.00716.59
7.4.90.0060.01216.53
7.4.80.0070.01019.39
7.4.70.0120.00416.52
7.4.60.0100.00716.50
7.4.50.0000.00816.16
7.4.40.0000.02016.23
7.4.30.0150.00316.43
7.4.00.0040.01214.84
7.3.330.0000.00513.14
7.3.320.0030.00313.09
7.3.310.0040.00416.33
7.3.300.0000.00716.30
7.3.290.0070.00716.28
7.3.280.0080.00916.28
7.3.270.0090.00917.40
7.3.260.0070.01016.35
7.3.250.0100.00716.33
7.3.240.0090.00916.15
7.3.230.0070.01016.46
7.3.210.0060.00916.27
7.3.200.0140.00419.39
7.3.190.0080.00916.42
7.3.180.0060.01216.25
7.3.170.0040.01116.37
7.3.160.0130.00316.49
7.3.120.0100.00614.69
7.3.110.0070.00714.72
7.3.100.0000.01414.63
7.3.90.0060.00914.81
7.3.80.0070.00414.75
7.3.70.0120.00314.60
7.3.60.0090.00614.91
7.3.50.0070.00714.83
7.3.40.0000.01314.41
7.3.30.0060.00314.48
7.3.20.0070.00416.57
7.3.10.0030.00716.41
7.3.00.0100.00716.77
7.2.330.0110.00616.30
7.2.320.0040.01216.36
7.2.310.0080.00816.54
7.2.300.0090.00916.65
7.2.290.0140.01116.32
7.2.240.0060.00614.80
7.2.230.0040.01115.09
7.2.220.0040.00714.73
7.2.210.0100.00314.83
7.2.200.0030.01014.89
7.2.190.0000.01415.11
7.2.180.0030.00814.96
7.2.170.0070.00714.50
7.2.160.0100.00314.87
7.2.150.0100.00716.97
7.2.140.0030.01316.53
7.2.130.0000.01116.81
7.2.120.0040.01116.90
7.2.110.0030.00916.75
7.2.100.0140.00316.71
7.2.90.0070.00716.60
7.2.80.0030.01316.90
7.2.70.0070.01016.45
7.2.60.0090.00916.70
7.2.50.0040.01216.95
7.2.40.0040.01216.79
7.2.30.0060.00616.74
7.2.20.0120.00316.98
7.2.10.0060.00616.73
7.2.00.0050.00918.00
7.1.330.0070.00715.93
7.1.320.0030.01015.46
7.1.310.0000.01015.63
7.1.300.0040.00415.75
7.1.290.0110.00015.79
7.1.280.0070.00715.78
7.1.270.0060.00915.95
7.1.260.0070.00715.46
7.1.250.0030.01015.58
7.1.200.0090.00315.84
7.1.100.0310.00717.37
7.1.70.0020.00517.23
7.1.60.0110.01419.40
7.1.50.0130.01016.89
7.1.00.0100.07022.54
7.0.200.0030.00616.36
7.0.140.0070.07322.15
7.0.60.0070.03719.89
7.0.50.0030.04317.79
7.0.40.0000.04720.19
7.0.30.0330.07320.01
7.0.20.0230.06720.03
7.0.10.0070.04320.01
7.0.00.0100.06720.19
5.6.280.0030.07320.86
5.6.210.0130.06320.74
5.6.200.0100.08018.12
5.6.190.0030.04320.57
5.6.180.0230.04720.39
5.6.170.0230.03320.33
5.6.160.0100.08320.37
5.6.150.0030.08018.16
5.6.140.0000.05018.18
5.6.130.0030.04018.12
5.6.120.0100.08320.96
5.6.110.0030.08320.88
5.6.100.0100.08020.96
5.6.90.0070.05020.96
5.6.80.0030.08320.50
5.5.350.0030.08320.38
5.5.340.0030.07717.99
5.5.330.0100.06320.14
5.5.320.0000.05720.22
5.5.310.0330.06020.29
5.5.300.0100.06017.91
5.5.290.0070.08017.95
5.5.280.0100.05720.95
5.5.270.0070.05720.88
5.5.260.0030.08720.95
5.5.250.0100.03720.61
5.5.240.3200.03320.22
5.4.450.0300.05719.25
5.4.440.0170.05019.48
5.4.430.0430.04019.22
5.4.420.0200.03719.45
5.4.410.0700.04319.43
5.4.400.0270.03319.24
5.4.390.0600.04019.25
5.4.380.0300.06718.74
5.4.370.0630.07718.68
5.4.360.0230.06018.72
5.4.350.0270.05718.61
5.4.340.0230.07018.50
5.4.320.0070.03512.45
5.4.310.0080.03712.45
5.4.300.0050.03712.45
5.4.290.0030.04212.45
5.4.280.0060.03612.35
5.4.270.0080.03912.35
5.4.260.0050.03912.34
5.4.250.0040.03912.35
5.4.240.0060.03512.35
5.4.230.0060.03612.34
5.4.220.0030.03812.34
5.4.210.0030.03712.34
5.4.200.0100.03212.34
5.4.190.0040.03712.34
5.4.180.0060.03512.34
5.4.170.0060.03512.35
5.4.160.0080.03612.34
5.4.150.0060.03912.34
5.4.140.0060.03712.02
5.4.130.0120.02912.01
5.4.120.0070.03411.97
5.4.110.0050.03611.96
5.4.100.0070.03811.96
5.4.90.0070.03611.96
5.4.80.0100.03511.96
5.4.70.0090.03011.96
5.4.60.0060.03411.96
5.4.50.0070.03311.96
5.4.40.0040.03611.95
5.4.30.0050.03611.95
5.4.20.0040.03711.95
5.4.10.0070.03911.95
5.4.00.0040.03711.44
5.3.290.0060.03912.80
5.3.280.0060.03712.71
5.3.270.0080.03912.73
5.3.260.0100.04112.71
5.3.250.0100.04912.72
5.3.240.0110.04912.72
5.3.230.0100.04912.71
5.3.220.0110.04812.68
5.3.210.0060.04212.68
5.3.200.0080.03512.68
5.3.190.0040.03812.68
5.3.180.0050.03612.68
5.3.170.0070.03512.67
5.3.160.0120.03412.67
5.3.150.0040.04012.67
5.3.140.0060.03812.66
5.3.130.0110.03812.66
5.3.120.0090.03712.66
5.3.110.0070.03812.66
5.3.100.0040.03912.12
5.3.90.0070.03512.08
5.3.80.0060.03612.07
5.3.70.0060.03612.07
5.3.60.0070.03512.06
5.3.50.0050.03712.00
5.3.40.0050.03612.00
5.3.30.0040.03611.95
5.3.20.0050.03611.73
5.3.10.0030.03611.69
5.3.00.0070.03411.68
5.2.170.0060.0299.18
5.2.160.0070.0279.18
5.2.150.0060.0299.18
5.2.140.0110.0249.18
5.2.130.0050.0289.13
5.2.120.0070.0269.14
5.2.110.0020.0319.14
5.2.100.0020.0309.14
5.2.90.0030.0319.14
5.2.80.0030.0329.13
5.2.70.0020.0469.14
5.2.60.0060.0289.09
5.2.50.0060.0289.05
5.2.40.0040.0389.03
5.2.30.0060.0279.01
5.2.20.0050.0279.00
5.2.10.0040.0278.92
5.2.00.0050.0278.77
5.1.60.0050.0228.06
5.1.50.0010.0288.06
5.1.40.0060.0288.04
5.1.30.0050.0258.39
5.1.20.0030.0278.41
5.1.10.0030.0268.14
5.1.00.0040.0258.14
5.0.50.0060.0176.62
5.0.40.0050.0176.48
5.0.30.0080.0276.29
5.0.20.0070.0156.27
5.0.10.0040.0276.24
5.0.00.0040.0326.23
4.4.90.0020.0164.78
4.4.80.0060.0114.76
4.4.70.0020.0164.76
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0050.0224.71
4.4.30.0040.0154.75
4.4.20.0020.0164.85
4.4.10.0050.0164.85
4.4.00.0040.0254.76
4.3.110.0020.0244.67
4.3.100.0020.0154.66
4.3.90.0030.0184.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0050.0124.63
4.3.50.0030.0154.63
4.3.40.0040.0224.54
4.3.30.0010.0163.28
4.3.20.0000.0173.26
4.3.10.0030.0143.22
4.3.00.0030.01316.03

preferences:
52.75 ms | 401 KiB | 5 Q