3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a= array( 'mela' => 'pera', 'pippo'=> 'pera', ); $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.40.0110.00418.59
8.3.30.0140.00019.10
8.3.20.0000.00720.52
8.3.10.0080.00023.69
8.3.00.0030.00519.36
8.2.170.0100.01022.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0040.00421.02
8.2.110.0070.00320.35
8.2.100.0040.00722.21
8.2.90.0040.00419.27
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0000.00717.93
8.2.50.0040.00418.07
8.2.40.0080.00018.09
8.2.30.0020.00518.09
8.2.20.0030.00517.75
8.2.10.0050.00318.13
8.2.00.0030.00617.66
8.1.270.0030.00623.79
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.01019.16
8.1.230.0060.00619.16
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00617.23
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0080.00018.59
8.1.160.0040.00421.87
8.1.150.0050.00318.81
8.1.140.0000.01017.26
8.1.130.0030.00317.76
8.1.120.0030.00317.25
8.1.110.0040.00417.39
8.1.100.0070.00017.31
8.1.90.0040.00417.41
8.1.80.0040.00417.35
8.1.70.0000.00717.25
8.1.60.0000.00917.52
8.1.50.0030.00517.44
8.1.40.0040.00417.34
8.1.30.0080.00017.62
8.1.20.0000.00817.49
8.1.10.0040.00417.55
8.1.00.0070.00017.33
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00818.32
8.0.270.0040.00417.23
8.0.260.0000.00617.20
8.0.250.0000.00716.82
8.0.240.0060.00016.92
8.0.230.0030.00316.91
8.0.220.0000.00616.90
8.0.210.0030.00316.88
8.0.200.0080.00016.94
8.0.190.0000.00817.01
8.0.180.0030.00616.82
8.0.170.0030.00516.82
8.0.160.0030.00516.91
8.0.150.0000.00716.74
8.0.140.0040.00416.68
8.0.130.0040.00413.30
8.0.120.0000.00716.84
8.0.110.0070.00016.77
8.0.100.0000.00816.89
8.0.90.0030.00416.84
8.0.80.0060.00916.93
8.0.70.0000.00716.67
8.0.60.0000.00716.89
8.0.50.0040.00416.95
8.0.30.0090.01017.05
8.0.20.0130.00717.40
8.0.10.0000.00716.83
8.0.00.0140.00316.93
7.4.330.0050.00015.03
7.4.320.0070.00016.55
7.4.300.0030.00316.49
7.4.290.0070.00016.31
7.4.280.0030.00516.34
7.4.270.0050.00216.56
7.4.260.0000.00716.34
7.4.250.0040.00416.40
7.4.240.0000.00716.46
7.4.230.0030.00316.44
7.4.220.0040.01316.58
7.4.210.0070.01416.39
7.4.200.0030.00616.32
7.4.160.0060.00916.61
7.4.150.0140.01017.40
7.4.140.0080.00917.86
7.4.130.0120.00716.39
7.4.120.0040.01216.43
7.4.110.0170.00016.63
7.4.100.0100.00716.43
7.4.90.0160.00016.50
7.4.80.0130.00919.39
7.4.70.0030.01416.46
7.4.60.0030.01316.61
7.4.50.0040.00416.37
7.4.40.0100.01016.09
7.4.30.0070.01016.70
7.4.00.0040.01215.06
7.3.330.0050.00013.07
7.3.320.0000.00513.11
7.3.310.0030.00316.32
7.3.300.0000.00716.19
7.3.290.0100.01016.30
7.3.280.0110.00516.28
7.3.270.0120.00917.40
7.3.260.0060.01016.33
7.3.250.0070.01016.38
7.3.240.0090.00916.57
7.3.230.0100.00716.39
7.3.210.0080.00816.15
7.3.200.0120.01219.39
7.3.190.0080.01016.47
7.3.180.0060.01116.43
7.3.170.0060.01016.47
7.3.160.0130.00316.49
7.3.120.0000.01517.15
7.3.110.0000.01817.15
7.3.100.0000.01217.15
7.3.90.0040.00417.15
7.3.80.0060.00317.15
7.3.70.0000.01017.15
7.3.60.0040.01217.15
7.3.50.0030.01317.15
7.3.40.0030.00617.15
7.3.30.0060.00317.15
7.3.20.0130.00317.15
7.3.10.0070.00717.15
7.3.00.0080.00817.15
7.2.330.0090.00916.62
7.2.320.0060.00916.24
7.2.310.0070.01116.55
7.2.300.0180.00616.32
7.2.290.0100.01316.49
7.2.240.0070.00717.15
7.2.230.0030.01417.15
7.2.220.0040.01217.15
7.2.210.0080.00817.15
7.2.200.0070.00717.15
7.2.190.0060.00917.15
7.2.180.0070.01117.15
7.2.170.0110.00317.15
7.2.160.0110.00617.15
7.2.150.0030.01017.15
7.2.140.0030.00617.15
7.2.130.0100.00617.15
7.2.120.0000.01517.15
7.2.110.0090.00617.15
7.2.100.0090.00317.15
7.2.90.0070.00717.15
7.2.80.0130.00317.15
7.2.70.0030.00917.15
7.2.60.0000.01017.15
7.2.50.0110.00417.15
7.2.40.0030.00717.15
7.2.30.0060.01217.15
7.2.20.0070.01017.15
7.2.10.0070.00417.15
7.2.00.0060.00418.24
7.1.330.0030.01317.15
7.1.320.0000.01417.15
7.1.310.0100.00717.15
7.1.300.0060.00317.15
7.1.290.0070.01017.15
7.1.280.0120.00417.15
7.1.270.0100.00717.15
7.1.260.0100.00717.15
7.1.250.0140.00017.15
7.1.100.0210.01017.50
7.1.70.0030.00517.28
7.1.60.0070.01719.40
7.1.50.0070.01016.89
7.1.00.0100.07022.54
7.0.200.0020.00516.48
7.0.140.0070.07021.99
7.0.60.0030.08319.92
7.0.50.0100.07717.80
7.0.40.0100.05320.42
7.0.30.0200.04720.34
7.0.20.0300.07020.02
7.0.10.0230.05320.18
7.0.00.0100.07720.16
5.6.280.0130.06321.11
5.6.210.0130.07720.54
5.6.200.0130.07018.12
5.6.190.0000.04720.35
5.6.180.3400.04020.36
5.6.170.0170.08320.40
5.6.160.0030.06320.48
5.6.150.0030.08318.16
5.6.140.0100.08318.18
5.6.130.0070.03718.18
5.6.120.0130.07721.09
5.6.110.0030.06020.98
5.6.100.0200.07020.95
5.6.90.0000.04320.96
5.6.80.0070.03720.38
5.6.70.0300.06720.49
5.5.350.0430.06720.36
5.5.340.0070.04717.91
5.5.330.0030.05320.23
5.5.320.0400.06320.26
5.5.310.0270.04320.17
5.5.300.0170.07717.96
5.5.290.0070.08317.92
5.5.280.0130.07720.68
5.5.270.0100.08020.64
5.5.260.0070.05320.88
5.5.250.0030.09020.57
5.5.240.4130.04320.23
5.4.450.0700.06319.55
5.4.440.0600.05719.63
5.4.430.0700.05719.63
5.4.420.0200.04719.43
5.4.410.0070.05318.94
5.4.400.0330.05318.71
5.4.390.0470.06318.48
5.4.380.0030.06318.72
5.4.370.0230.04318.58
5.4.360.0100.04018.77
5.4.350.0160.07711.97
5.4.340.0060.03911.96
5.4.320.0040.03812.45
5.4.310.0090.03512.45
5.4.300.0070.03412.46
5.4.290.0060.03712.45
5.4.280.0100.03012.34
5.4.270.0040.03612.34
5.4.260.0070.03512.35
5.4.250.0070.03412.34
5.4.240.0040.03612.35
5.4.230.0040.03812.34
5.4.220.0070.03412.34
5.4.210.0080.03212.34
5.4.200.0060.03612.34
5.4.190.0050.03612.33
5.4.180.0060.03412.33
5.4.170.0040.03612.34
5.4.160.0080.03412.34
5.4.150.0080.03612.34
5.4.140.0040.04212.02
5.4.130.0030.03812.01
5.4.120.0060.04111.96
5.4.110.0060.03411.96
5.4.100.0030.03711.96
5.4.90.0090.04211.96
5.4.80.0070.03611.96
5.4.70.0050.03511.96
5.4.60.0080.03611.96
5.4.50.0090.03111.96
5.4.40.0040.03611.95
5.4.30.0070.03511.95
5.4.20.0040.03711.95
5.4.10.0060.03411.95
5.4.00.0070.03511.43
5.3.290.0030.04212.80
5.3.280.0080.03612.71
5.3.270.0080.03712.72
5.3.260.0050.04012.72
5.3.250.0050.03812.72
5.3.240.0060.03712.72
5.3.230.0060.03812.71
5.3.220.0090.03512.68
5.3.210.0070.03912.68
5.3.200.0100.03312.68
5.3.190.0070.03612.68
5.3.180.0040.03812.67
5.3.170.0050.03612.67
5.3.160.0080.03312.67
5.3.150.0050.03712.68
5.3.140.0080.03412.66
5.3.130.0060.03712.66
5.3.120.0030.04212.66
5.3.110.0060.03912.66
5.3.100.0070.03512.12
5.3.90.0060.03812.08
5.3.80.0030.03912.07
5.3.70.0060.03512.08
5.3.60.0070.03712.07
5.3.50.0060.03512.00
5.3.40.0050.03812.00
5.3.30.0040.03611.94
5.3.20.0060.03511.72
5.3.10.0070.03511.69
5.3.00.0080.03311.68
5.2.170.0030.0329.18
5.2.160.0090.0359.18
5.2.150.0030.0349.18
5.2.140.0040.0329.18
5.2.130.0040.0299.14
5.2.120.0070.0319.14
5.2.110.0090.0239.14
5.2.100.0030.0339.14
5.2.90.0080.0329.14
5.2.80.0070.0279.13
5.2.70.0030.0319.13
5.2.60.0020.0329.09
5.2.50.0030.0319.05
5.2.40.0080.0289.03
5.2.30.0090.0279.01
5.2.20.0030.0309.00
5.2.10.0040.0298.92
5.2.00.0030.0308.77
5.1.60.0040.0238.06
5.1.50.0040.0248.05
5.1.40.0040.0248.04
5.1.30.0040.0258.39
5.1.20.0030.0288.41
5.1.10.0040.0288.13
5.1.00.0070.0268.14
5.0.50.0030.0206.61
5.0.40.0030.0196.48
5.0.30.0040.0306.29
5.0.20.0020.0206.26
5.0.10.0040.0186.24
5.0.00.0020.0316.23
4.4.90.0020.0184.78
4.4.80.0030.0204.75
4.4.70.0030.0194.75
4.4.60.0030.0174.76
4.4.50.0020.0154.77
4.4.40.0020.0254.71
4.4.30.0000.0244.76
4.4.20.0030.0144.84
4.4.10.0020.0154.85
4.4.00.0020.0254.76
4.3.110.0050.0134.67
4.3.100.0010.0164.66
4.3.90.0020.0154.63
4.3.80.0020.0244.59
4.3.70.0020.0154.63
4.3.60.0030.0144.62
4.3.50.0040.0144.63
4.3.40.0030.0244.54
4.3.30.0020.0163.28
4.3.20.0020.0153.26
4.3.10.0010.0163.22
4.3.00.0130.0207.09

preferences:
41.81 ms | 400 KiB | 5 Q