3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a' => true,'b' => true, 'c' => true); $b = array('a' => false,'b' => true, 'c' => false); var_dump(array_diff($a, $b)) ?>

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.0120.00318.30
8.3.50.0090.00717.38
8.3.40.0150.00018.72
8.3.30.0100.00718.59
8.3.20.0030.00618.30
8.3.10.0040.00420.28
8.3.00.0040.00417.38
8.2.180.0120.00916.38
8.2.170.0070.01322.96
8.2.160.0110.00622.11
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00019.82
8.2.110.0070.00321.00
8.2.100.0060.00617.72
8.2.90.0100.00019.23
8.2.80.0030.00617.80
8.2.70.0030.00617.38
8.2.60.0030.00617.90
8.2.50.0040.00418.07
8.2.40.0030.00519.75
8.2.30.0000.00717.94
8.2.20.0000.00817.68
8.2.10.0050.00217.60
8.2.00.0000.00717.68
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00320.75
8.1.230.0070.00421.00
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0000.00717.41
8.1.180.0050.00318.10
8.1.170.0040.00418.90
8.1.160.0040.00418.88
8.1.150.0000.00718.57
8.1.140.0060.00317.27
8.1.130.0030.00317.81
8.1.120.0000.00717.44
8.1.110.0060.00317.27
8.1.100.0040.00417.28
8.1.90.0040.00717.41
8.1.80.0070.00017.27
8.1.70.0030.00317.34
8.1.60.0070.00017.52
8.1.50.0000.00717.40
8.1.40.0070.00017.44
8.1.30.0050.00317.56
8.1.20.0030.00617.48
8.1.10.0070.00017.40
8.1.00.0040.00417.39
8.0.300.0050.00219.93
8.0.290.0070.00016.63
8.0.280.0000.00718.40
8.0.270.0070.00017.17
8.0.260.0000.00718.48
8.0.250.0060.00316.76
8.0.240.0030.00716.86
8.0.230.0000.00816.88
8.0.220.0000.00816.86
8.0.210.0000.00716.82
8.0.200.0000.00716.92
8.0.190.0070.00316.89
8.0.180.0040.00416.74
8.0.170.0000.00916.84
8.0.160.0030.00316.81
8.0.150.0040.00416.80
8.0.140.0020.00516.67
8.0.130.0000.00513.26
8.0.120.0000.00816.79
8.0.110.0030.00316.59
8.0.100.0000.00716.59
8.0.90.0030.00316.84
8.0.80.0120.00316.86
8.0.70.0070.00016.61
8.0.60.0000.00716.88
8.0.50.0080.00016.63
8.0.30.0090.01217.00
8.0.20.0100.00817.13
8.0.10.0070.00016.97
8.0.00.0100.01116.72
7.4.330.0050.00014.65
7.4.320.0030.00316.34
7.4.300.0030.00316.50
7.4.290.0040.00416.43
7.4.280.0090.00016.54
7.4.270.0040.00416.36
7.4.260.0030.00313.12
7.4.250.0050.00316.46
7.4.240.0050.00316.39
7.4.230.0070.00016.22
7.4.220.0090.00616.46
7.4.210.0050.01216.45
7.4.200.0000.00716.59
7.4.190.0000.00716.34
7.4.160.0090.00616.30
7.4.150.0100.00717.07
7.4.140.0090.00817.14
7.4.130.0130.00516.32
7.4.120.0110.00616.30
7.4.110.0110.01116.54
7.4.100.0170.00016.37
7.4.90.0070.01016.50
7.4.80.0100.00718.80
7.4.70.0100.01316.21
7.4.60.0100.00716.44
7.4.50.0030.00316.41
7.4.40.0030.00922.05
7.4.30.0130.00616.50
7.4.00.0090.00914.86
7.3.330.0060.00012.88
7.3.320.0060.00013.00
7.3.310.0000.00716.22
7.3.300.0030.00316.12
7.3.290.0070.00716.17
7.3.280.0090.00816.13
7.3.270.0130.00417.07
7.3.260.0100.00918.24
7.3.250.0100.01016.19
7.3.240.0110.00716.13
7.3.230.0110.00816.51
7.3.210.0100.00716.31
7.3.200.0070.01019.39
7.3.190.0130.00316.06
7.3.180.0060.01316.15
7.3.170.0190.00716.25
7.3.160.0090.00616.21
7.3.120.0060.00914.87
7.3.10.0070.00716.52
7.3.00.0060.00916.73
7.2.330.0150.00316.28
7.2.320.0090.01216.38
7.2.310.0150.00616.27
7.2.300.0060.01216.43
7.2.290.0060.01216.47
7.2.130.0060.00616.66
7.2.120.0070.00716.66
7.2.110.0090.00316.77
7.2.100.0000.01416.41
7.2.90.0110.00316.77
7.2.80.0090.00316.89
7.2.70.0090.00316.54
7.2.60.0090.00616.53
7.2.50.0030.01316.54
7.2.40.0110.00016.55
7.2.30.0130.00316.86
7.2.20.0040.00716.80
7.2.10.0030.01216.68
7.2.00.0000.01317.90
7.1.250.0090.00615.75
7.1.100.0030.00918.15
7.1.70.0050.00216.95
7.1.60.0070.01419.40
7.1.50.0030.01016.59
7.1.00.0000.06322.53
7.0.200.0000.00816.63
7.0.140.0030.07322.15
7.0.120.0030.03022.08
7.0.60.0070.08019.74
7.0.50.0100.05317.90
7.0.40.0100.06020.30
7.0.30.0300.06720.35
7.0.20.0270.07020.30
7.0.10.0100.07720.21
7.0.00.0070.04320.16
5.6.280.0030.07321.11
5.6.210.0070.06020.50
5.6.200.0000.05718.12
5.6.190.0000.05020.79
5.6.180.0470.05320.63
5.6.170.0170.04020.71
5.6.160.0170.07720.61
5.6.150.0030.06718.12
5.6.140.0100.07318.21
5.6.130.0100.08018.21
5.6.120.0100.03721.01
5.6.110.0100.03721.02
5.6.100.0000.04320.95
5.6.90.0070.04021.00
5.6.80.0130.07320.40
5.5.350.0370.06720.32
5.5.340.0030.04018.02
5.5.330.0100.08320.41
5.5.320.0070.04020.20
5.5.310.0200.04020.17
5.5.300.0070.03318.02
5.5.290.0030.04017.91
5.5.280.0170.06020.88
5.5.270.0030.07320.94
5.5.260.0030.09020.87
5.5.250.0000.05320.77
5.5.240.0130.07320.26
5.4.450.0230.04719.44
5.4.440.0500.02719.20
5.4.430.0530.03719.54
5.4.420.0700.03319.42
5.4.410.0400.04319.41
5.4.400.0500.04019.06
5.4.390.0730.04019.15
5.4.380.0370.04019.13
5.4.370.0730.04018.93
5.4.360.1130.03019.09
5.4.350.0870.03718.81
5.4.340.0570.05019.25
5.4.320.0500.04719.05
5.4.310.0970.05318.92
5.4.300.0700.04719.25
5.4.290.0530.03719.13
5.4.280.0370.04719.10
5.4.270.0800.03319.22
5.4.260.0670.03719.21
5.4.250.0600.03319.13
5.4.240.0470.04019.06
5.4.230.0400.04319.09
5.4.220.0230.04318.89
5.4.210.0430.04318.90
5.4.200.0270.04319.13
5.4.190.0700.04019.05
5.4.180.0600.03719.05
5.4.170.0670.03018.92
5.4.160.0630.04019.21
5.4.150.0430.04719.04
5.4.140.0700.04016.44
5.4.130.0830.02316.28
5.4.120.0330.03316.48
5.4.110.0670.04016.52
5.4.100.0330.04316.37
5.4.90.0470.03716.44
5.4.80.0600.04016.19
5.4.70.0670.03716.39
5.4.60.0630.03016.25
5.4.50.0630.03716.25
5.4.40.0470.03716.03
5.4.30.0800.03316.31
5.4.20.0670.03316.38
5.4.10.0730.02716.37
5.4.00.0530.03715.63
5.3.290.0570.05015.14
5.3.280.0530.04015.14
5.3.270.0630.05015.14
5.3.260.0570.04315.14
5.3.250.0630.03715.14
5.3.240.0630.04315.14
5.3.230.0130.03715.14
5.3.220.0530.03715.14
5.3.210.0930.03715.14
5.3.200.0430.04015.14
5.3.190.0630.03315.14
5.3.180.0800.04015.14
5.3.170.0730.03315.13
5.3.160.0430.04015.13
5.3.150.0470.04015.13
5.3.140.0530.04715.13
5.3.130.0800.03715.13
5.3.120.0770.03015.13
5.3.110.0670.04315.13
5.3.100.0030.03015.13
5.3.90.0900.04015.13
5.3.80.0430.03715.13
5.3.70.0600.03015.12
5.3.60.0200.05015.12
5.3.50.0870.03315.12
5.3.40.0230.03315.12
5.3.30.0900.03015.12
5.3.20.0700.05715.12
5.3.10.0700.03315.12
5.3.00.0700.03015.11
5.2.170.0400.03315.12
5.2.160.0330.02715.12
5.2.150.0530.03315.12
5.2.140.0770.02315.12
5.2.130.0470.04015.12
5.2.120.0700.03015.12
5.2.110.0300.03315.12
5.2.100.0530.02715.11
5.2.90.0670.03015.11
5.2.80.0770.03715.11
5.2.70.0470.03315.11
5.2.60.0530.02715.11
5.2.50.0400.04715.11
5.2.40.0570.02715.11
5.2.30.0270.03315.11
5.2.20.0470.03315.11
5.2.10.0100.03315.11
5.2.00.0430.02715.11
5.1.60.0170.02715.11
5.1.50.0400.03015.11
5.1.40.0600.03015.11
5.1.30.0270.03315.11
5.1.20.0330.02315.11
5.1.10.0400.02315.11
5.1.00.0200.02715.11
5.0.50.0230.01715.11
5.0.40.0170.02715.11
5.0.30.0100.03015.11
5.0.20.0200.01315.11
5.0.10.0100.05315.11
5.0.00.0230.03015.11
4.4.90.0030.02015.11
4.4.80.0130.01715.11
4.4.70.0100.02015.11
4.4.60.0270.01315.11
4.4.50.0270.01015.11
4.4.40.0270.02715.11
4.4.30.0070.01715.11
4.4.20.0030.01715.11
4.4.10.0100.02015.11
4.4.00.0230.02315.11
4.3.110.0100.02015.11
4.3.100.0130.01715.11
4.3.90.0000.02315.11
4.3.80.0170.02715.11
4.3.70.0200.01315.11
4.3.60.0170.01315.11
4.3.50.0270.03015.11
4.3.40.0100.02715.11
4.3.30.0070.01715.11
4.3.20.0100.01315.11
4.3.10.0100.01315.11
4.3.00.0030.01715.11

preferences:
45.51 ms | 400 KiB | 5 Q