3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('one', 'two'); $b = array('two'); $c = array_diff($one, $two); $c[] = 'three'; var_dump($c);

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.0090.00616.75
8.3.50.0110.00721.25
8.3.40.0170.00018.84
8.3.30.0040.01418.71
8.3.20.0040.00420.21
8.3.10.0050.00321.78
8.3.00.0000.00721.70
8.2.180.0100.00716.63
8.2.170.0070.00722.96
8.2.160.0070.00720.57
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00721.00
8.2.120.0040.00426.35
8.2.110.0060.00319.30
8.2.100.0040.00817.90
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0090.00018.09
8.2.40.0040.00422.24
8.2.30.0000.00719.33
8.2.20.0070.00317.58
8.2.10.0040.00417.92
8.2.00.0040.00418.05
8.1.280.0070.00725.92
8.1.270.0120.00622.18
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0050.00522.47
8.1.230.0110.00017.77
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0050.00517.35
8.1.190.0040.00416.99
8.1.180.0050.00318.10
8.1.170.0040.00418.32
8.1.160.0070.00020.70
8.1.150.0040.00418.92
8.1.140.0030.00519.55
8.1.130.0050.00217.56
8.1.120.0070.00017.35
8.1.110.0000.00717.32
8.1.100.0000.00717.35
8.1.90.0030.00517.27
8.1.80.0040.00417.42
8.1.70.0000.00717.29
8.1.60.0000.01117.56
8.1.50.0040.00417.41
8.1.40.0050.00317.52
8.1.30.0000.00817.60
8.1.20.0040.00417.54
8.1.10.0040.00417.43
8.1.00.0030.00517.51
8.0.300.0000.00918.77
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0040.00417.29
8.0.260.0000.00618.31
8.0.250.0000.00716.85
8.0.240.0030.00616.94
8.0.230.0030.00316.98
8.0.220.0060.00316.79
8.0.210.0000.00716.82
8.0.200.0040.00416.93
8.0.190.0030.00516.81
8.0.180.0040.00416.85
8.0.170.0030.00616.80
8.0.160.0000.00816.79
8.0.150.0000.00716.81
8.0.140.0030.00316.70
8.0.130.0000.00513.35
8.0.120.0040.00416.89
8.0.110.0040.00416.79
8.0.100.0000.00716.89
8.0.90.0040.00416.85
8.0.80.0070.01016.88
8.0.70.0030.00616.80
8.0.60.0000.00716.83
8.0.50.0070.00016.90
8.0.30.0150.00217.03
8.0.20.0120.00717.40
8.0.10.0050.00216.87
8.0.00.0120.00616.66
7.4.330.0050.00016.85
7.4.320.0000.00616.49
7.4.300.0040.00416.47
7.4.290.0080.00016.50
7.4.280.0040.00416.32
7.4.270.0060.00016.33
7.4.260.0030.00716.42
7.4.250.0000.00716.31
7.4.240.0050.00316.54
7.4.230.0070.00016.27
7.4.220.0130.00516.64
7.4.210.0100.00416.43
7.4.200.0000.00816.53
7.4.160.0080.00816.28
7.4.150.0110.00817.40
7.4.140.0140.01017.86
7.4.130.0070.01216.45
7.4.120.0050.01216.60
7.4.110.0070.01416.46
7.4.100.0090.01216.49
7.4.90.0060.01116.65
7.4.80.0100.00719.39
7.4.70.0170.00316.48
7.4.60.0130.00316.55
7.4.50.0060.00616.60
7.4.40.0070.01316.67
7.4.30.0110.01116.25
7.4.00.0060.00914.74
7.3.330.0000.00713.09
7.3.320.0000.00513.07
7.3.310.0070.00316.12
7.3.300.0040.00216.14
7.3.290.0030.00316.27
7.3.280.0060.00916.34
7.3.270.0030.01417.40
7.3.260.0110.00616.13
7.3.250.0110.00616.35
7.3.240.0080.01016.30
7.3.230.0070.01016.39
7.3.210.0030.01316.15
7.3.200.0110.01119.39
7.3.190.0000.01716.25
7.3.180.0090.00916.25
7.3.170.0040.01316.35
7.3.160.0100.00616.49
7.2.330.0120.00616.29
7.2.320.0070.01616.68
7.2.310.0140.00716.55
7.2.300.0100.00716.31
7.2.290.0090.00616.59
7.2.60.0130.00716.88
7.2.00.0030.01019.40
7.1.200.0060.00915.74
7.1.100.0060.00618.24
7.1.70.0040.00417.25
7.1.60.0090.00919.40
7.1.50.0040.01916.56
7.1.00.0170.06322.43
7.0.200.0430.00314.61
7.0.60.0100.03321.73
7.0.50.0030.04717.71
7.0.40.0070.05019.90
7.0.30.0200.04020.20
7.0.20.0270.07720.21
7.0.10.0100.08720.20
7.0.00.0100.08320.10
5.6.280.0030.03021.10
5.6.210.0170.06020.70
5.6.200.0100.07718.18
5.6.190.0030.06020.56
5.6.180.0330.07020.27
5.6.170.0370.04320.44
5.6.160.0200.06020.47
5.6.150.0130.07318.07
5.6.140.0070.07718.05
5.6.130.0170.05318.21
5.6.120.0100.04021.09
5.6.110.0100.08021.01
5.6.100.0030.07021.03
5.6.90.0030.08721.13
5.6.80.0070.06320.52
5.5.350.0400.06720.36
5.5.340.0170.07317.92
5.5.330.0000.05720.56
5.5.320.0370.04320.29
5.5.310.0300.05320.28
5.5.300.0030.03717.88
5.5.290.0230.06718.01
5.5.280.0030.04320.88
5.5.270.0070.08320.78
5.5.260.0100.08320.83
5.5.250.0070.08020.63
5.5.240.0170.07720.18

preferences:
31.05 ms | 401 KiB | 5 Q