3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('red', 'blue', 'green', 'octarine'); $array2 = array('red', 'yellow', 'green'); $diff = array_diff($array1, $array2); print_r($diff); //Array ( [1] => blue [3] => octarine )

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.0100.00316.25
8.3.50.0120.00517.43
8.3.40.0110.00418.32
8.3.30.0060.00918.45
8.3.20.0080.00018.35
8.3.10.0040.00420.56
8.3.00.0080.00017.13
8.2.180.0060.01216.38
8.2.170.0140.00322.96
8.2.160.0140.00322.31
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.36
8.2.110.0090.00019.33
8.2.100.0150.00017.78
8.2.90.0040.00417.75
8.2.80.0000.00817.97
8.2.70.0040.00417.80
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0000.00719.29
8.2.30.0000.00719.08
8.2.20.0000.00717.51
8.2.10.0060.00317.71
8.2.00.0040.00417.70
8.1.280.0100.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.80
8.1.230.0090.00317.48
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00817.00
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0040.00418.56
8.1.160.0040.00418.75
8.1.150.0030.00618.82
8.1.140.0040.00417.34
8.1.130.0030.00317.72
8.1.120.0040.00417.46
8.1.110.0000.00717.42
8.1.100.0030.00417.34
8.1.90.0000.00717.31
8.1.80.0030.00317.34
8.1.70.0030.00317.27
8.1.60.0040.00417.54
8.1.50.0040.00417.33
8.1.40.0040.00417.44
8.1.30.0040.00417.56
8.1.20.0000.00817.42
8.1.10.0000.00817.33
8.1.00.0070.00017.36
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.37
8.0.270.0030.00317.24
8.0.260.0000.00616.67
8.0.250.0050.00216.88
8.0.240.0040.00416.90
8.0.230.0030.00316.88
8.0.220.0050.00316.70
8.0.210.0000.00716.73
8.0.200.0030.00616.78
8.0.190.0030.00516.88
8.0.180.0000.00716.86
8.0.170.0040.00416.87
8.0.160.0050.00316.84
8.0.150.0080.00016.82
8.0.140.0090.00016.83
8.0.130.0030.00313.18
8.0.120.0050.00216.83
8.0.110.0000.00716.72
8.0.100.0070.00016.66
8.0.90.0080.00016.64
8.0.80.0130.00416.88
8.0.70.0040.00416.81
8.0.60.0040.00416.61
8.0.50.0000.00716.68
8.0.30.0080.01116.86
8.0.20.0130.00917.09
8.0.10.0030.00516.92
8.0.00.0110.00716.74
7.4.330.0050.00012.88
7.4.320.0000.00616.45
7.4.300.0020.00516.41
7.4.290.0030.00316.53
7.4.280.0030.00616.32
7.4.270.0030.00316.54
7.4.260.0000.00513.14
7.4.250.0000.00816.55
7.4.240.0000.00716.29
7.4.230.0060.00016.61
7.4.220.0050.01116.44
7.4.210.0080.00916.54
7.4.200.0000.00716.47
7.4.190.0040.00416.37
7.4.160.0050.01016.31
7.4.150.0160.00316.36
7.4.140.0060.01316.40
7.4.130.0130.00616.42
7.4.120.0130.00616.50
7.4.110.0100.00716.50
7.4.100.0130.00316.49
7.4.90.0100.01316.46
7.4.80.0070.01016.56
7.4.70.0120.00916.29
7.4.60.0100.00716.34
7.4.50.0000.00516.31
7.4.40.0110.00416.12
7.4.30.0140.00316.50
7.4.00.0070.01115.07
7.3.330.0030.00313.11
7.3.320.0030.00313.04
7.3.310.0000.00616.22
7.3.300.0000.00616.16
7.3.290.0140.00016.10
7.3.280.0120.00516.14
7.3.270.0120.00616.16
7.3.260.0090.01716.20
7.3.250.0130.00516.40
7.3.240.0090.01316.18
7.3.230.0170.00316.32
7.3.210.0080.01116.28
7.3.200.0100.00619.39
7.3.190.0090.01016.31
7.3.180.0070.01016.21
7.3.170.0040.01216.19
7.3.160.0100.00616.38
7.3.120.0090.00614.56
7.2.330.0060.01216.33
7.2.320.0070.01516.66
7.2.310.0120.01416.28
7.2.300.0100.00616.68
7.2.290.0060.01216.50
7.2.60.0160.00016.50
7.2.00.0140.00319.38
7.1.200.0060.00315.57
7.1.100.0030.01418.13
7.1.70.0050.00216.79
7.1.60.0030.02019.40
7.1.50.0070.01416.69
7.1.00.0000.07022.31
7.0.200.0030.00616.75
7.0.140.0000.07322.10
7.0.120.0100.06322.04
7.0.60.0130.05720.00
7.0.50.0070.08017.88
7.0.40.0100.04020.15
7.0.30.0170.05720.27
7.0.20.0400.07020.20
7.0.10.0100.08720.02
7.0.00.0100.06720.13
5.6.280.0000.07320.85
5.6.210.0100.07320.55
5.6.200.0100.04018.12
5.6.190.0070.08320.63
5.6.180.0670.05720.49
5.6.170.0330.06720.48
5.6.160.0030.08020.54
5.6.150.0030.04018.11
5.6.140.0070.05018.16
5.6.130.0130.06318.18
5.6.120.0070.07720.96
5.6.110.0070.08321.11
5.6.100.0100.08020.97
5.6.90.0030.05320.91
5.6.80.0070.05720.40
5.5.350.3170.03720.42
5.5.340.0000.04317.97
5.5.330.0070.04720.27
5.5.320.0500.03320.27
5.5.310.0270.07720.36
5.5.300.0030.04017.94
5.5.290.0100.07318.04
5.5.280.0100.07720.79
5.5.270.0100.08320.76
5.5.260.0170.06320.86
5.5.250.0100.03720.54
5.5.240.0170.05720.23
5.4.450.0370.05719.64
5.4.440.0330.06019.46
5.4.430.0300.04719.49
5.4.420.0400.07019.62
5.4.410.0370.03319.33
5.4.400.0370.06719.10
5.4.390.0300.04719.25
5.4.380.0370.07319.15
5.4.370.0430.05319.24
5.4.360.0230.04019.16
5.4.350.0400.06319.19
5.4.340.0270.05719.08
5.4.320.0500.05319.13
5.4.310.0300.04719.01
5.4.300.0400.05319.07
5.4.290.0370.05718.99
5.4.280.0370.04719.25
5.4.270.0400.06719.21
5.4.260.0370.07019.06
5.4.250.0300.04019.18
5.4.240.0370.05018.98
5.4.230.0300.07318.98
5.4.220.0370.06319.09
5.4.210.0300.04319.21
5.4.200.0330.06719.05
5.4.190.0370.03018.81
5.4.180.0270.04018.96
5.4.170.0330.03319.07
5.4.160.0370.07019.28
5.4.150.0300.07318.82
5.4.140.0430.05716.49
5.4.130.0330.04016.38
5.4.120.0300.07016.49
5.4.110.0300.05716.56
5.4.100.0330.06716.54
5.4.90.0370.03716.40
5.4.80.0400.04716.43
5.4.70.0330.03316.49
5.4.60.0270.03716.54
5.4.50.0370.06316.23
5.4.40.0270.04716.16
5.4.30.0270.05016.51
5.4.20.0300.04316.48
5.4.10.0430.03316.42
5.4.00.0400.05015.83
5.3.290.0500.05014.81
5.3.280.0370.06014.80
5.3.270.0330.04714.62
5.3.260.0330.07014.60
5.3.250.0570.02714.59
5.3.240.0270.03714.50
5.3.230.0400.06314.56
5.3.220.0370.06314.57
5.3.210.0400.06314.57
5.3.200.0330.05714.57
5.3.190.0370.06714.53
5.3.180.0300.04714.67
5.3.170.0300.03314.57
5.3.160.0300.06314.48
5.3.150.0270.03714.55
5.3.140.0270.03714.52
5.3.130.0400.06714.65
5.3.120.0370.06714.70
5.3.110.0370.06314.63
5.3.100.0270.03714.00
5.3.90.0300.03713.99
5.3.80.0270.05314.23
5.3.70.0230.04014.12
5.3.60.0330.04013.90
5.3.50.0370.03313.96
5.3.40.0400.06014.02
5.3.30.0370.06013.99
5.3.20.0470.05713.77
5.3.10.0270.03713.69
5.3.00.0370.04313.71
5.2.170.0270.04012.04
5.2.160.0330.02712.04
5.2.150.0170.04312.04
5.2.140.0370.03712.04
5.2.130.0230.02712.04
5.2.120.0200.03012.04
5.2.110.0170.03712.04
5.2.100.0330.02312.04
5.2.90.0200.04712.04
5.2.80.0230.04012.04
5.2.70.0300.03012.04
5.2.60.0270.03012.04
5.2.50.0230.02712.04
5.2.40.0200.04012.04
5.2.30.0230.04712.04
5.2.20.0230.05012.04
5.2.10.0330.05312.04
5.2.00.0170.04012.04
5.1.60.0230.01712.04
5.1.50.0200.03312.04
5.1.40.0230.03012.04
5.1.30.0270.05012.04
5.1.20.0270.05712.04
5.1.10.0370.04312.04
5.1.00.0230.05012.04
5.0.50.0200.01712.04
5.0.40.0070.03312.04
5.0.30.0100.04712.04
5.0.20.0070.03012.04
5.0.10.0070.02012.04
5.0.00.0230.05712.04
4.4.90.0100.02712.04
4.4.80.0100.03012.04
4.4.70.0130.02712.04
4.4.60.0130.03312.04
4.4.50.0130.03312.04
4.4.40.0100.02312.04
4.4.30.0100.01712.04
4.4.20.0170.03312.04
4.4.10.0130.03312.04
4.4.00.0070.03012.04
4.3.110.0100.01712.04
4.3.100.0130.01312.04
4.3.90.0100.01712.04
4.3.80.0070.02712.04
4.3.70.0170.02712.04
4.3.60.0130.03312.04
4.3.50.0170.01712.04
4.3.40.0070.03312.04
4.3.30.0170.02712.04
4.3.20.0100.02312.04
4.3.10.0030.01712.04
4.3.00.0030.01712.04

preferences:
49.23 ms | 401 KiB | 5 Q