3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * So if you have 2 arrays holding either a string or integer and a key * holding an array, after php5.3, you'll get these error messages. Weird * that the behaviour has changed. */ $a = array(1, 2, 3, 4); $b = array(1, 2, 3 => array(1), 4); $diff = array_diff($a, $b); print_r( $diff );

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.01018.43
8.3.50.0080.00921.98
8.3.40.0130.00318.71
8.3.30.0100.01318.57
8.3.20.0040.00420.20
8.3.10.0030.00620.21
8.3.00.0040.00421.86
8.2.180.0030.01018.29
8.2.170.0070.00722.96
8.2.160.0030.01022.07
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00020.81
8.2.120.0080.00026.35
8.2.110.0030.00722.14
8.2.100.0040.00817.91
8.2.90.0000.00819.25
8.2.80.0040.00417.97
8.2.70.0050.00517.38
8.2.60.0080.00017.80
8.2.50.0030.00618.09
8.2.40.0050.00222.31
8.2.30.0000.00819.33
8.2.20.0000.00717.73
8.2.10.0040.00417.94
8.2.00.0040.00418.12
8.1.280.0140.00025.92
8.1.270.0090.00622.05
8.1.260.0050.00328.09
8.1.250.0000.00728.09
8.1.240.0030.00622.61
8.1.230.0070.00417.69
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0040.00416.99
8.1.190.0050.00317.09
8.1.180.0000.00718.10
8.1.170.0120.00018.31
8.1.160.0050.00320.71
8.1.150.0000.00718.89
8.1.140.0030.00519.55
8.1.130.0030.00517.64
8.1.120.0040.00417.43
8.1.110.0040.00417.29
8.1.100.0040.00417.39
8.1.90.0030.00317.39
8.1.80.0000.00717.38
8.1.70.0000.00717.30
8.1.60.0000.00717.54
8.1.50.0050.00317.46
8.1.40.0070.00017.41
8.1.30.0030.00617.59
8.1.20.0030.00517.39
8.1.10.0030.00517.34
8.1.00.0060.00617.30
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0030.00318.31
8.0.270.0000.00717.11
8.0.260.0030.00317.26
8.0.250.0000.00617.00
8.0.240.0030.00316.79
8.0.230.0030.00316.92
8.0.220.0070.00016.79
8.0.210.0000.00716.91
8.0.200.0050.00316.95
8.0.190.0050.00316.84
8.0.180.0000.00716.75
8.0.170.0080.00016.86
8.0.160.0000.00716.98
8.0.150.0000.00716.73
8.0.140.0020.00516.87
8.0.130.0020.00513.24
8.0.120.0030.00616.82
8.0.110.0050.00216.88
8.0.100.0040.00416.91
8.0.90.0030.00516.96
8.0.80.0120.00916.84
8.0.70.0000.00716.88
8.0.60.0040.00416.84
8.0.50.0040.00416.78
8.0.30.0080.00917.00
8.0.20.0080.01017.40
8.0.10.0070.00017.05
8.0.00.0110.01116.61
7.4.330.0050.00016.76
7.4.320.0070.00016.36
7.4.300.0030.00316.43
7.4.290.0000.00716.40
7.4.280.0030.00516.53
7.4.270.0060.00016.47
7.4.260.0040.00416.55
7.4.250.0000.00716.52
7.4.240.0020.00516.47
7.4.230.0000.00716.43
7.4.220.0030.01616.46
7.4.210.0110.00316.50
7.4.200.0070.00016.34
7.4.160.0130.00316.59
7.4.150.0100.00717.40
7.4.140.0070.01117.86
7.4.130.0080.01116.46
7.4.120.0100.00716.44
7.4.110.0080.00816.55
7.4.100.0080.01216.29
7.4.90.0030.01416.41
7.4.80.0100.01019.39
7.4.70.0100.00716.32
7.4.60.0100.00616.57
7.4.50.0030.00916.39
7.4.40.0110.00716.47
7.4.30.0090.00816.52
7.4.00.0120.00314.98
7.3.330.0000.00513.08
7.3.320.0060.00013.11
7.3.310.0000.00616.18
7.3.300.0070.00016.02
7.3.290.0100.00716.21
7.3.280.0060.00916.22
7.3.270.0110.01017.40
7.3.260.0160.00016.21
7.3.250.0090.00716.21
7.3.240.0110.00616.20
7.3.230.0040.01216.48
7.3.210.0070.01016.26
7.3.200.0070.01016.23
7.3.190.0130.00316.40
7.3.180.0130.00316.57
7.3.170.0060.00916.24
7.3.160.0170.00016.29
7.2.330.0100.00716.50
7.2.320.0140.00716.46
7.2.310.0110.01116.62
7.2.300.0100.00716.63
7.2.290.0040.01216.51
7.2.60.0060.00616.87
7.2.00.0030.00919.28
7.1.200.0000.01315.82
7.1.100.0030.00918.18
7.1.70.0000.00916.84
7.1.60.0140.01019.19
7.1.50.0040.01516.92
7.1.00.0030.07722.31
7.0.200.0490.00414.55
7.0.60.0200.06721.59
7.0.50.0100.08017.88
7.0.40.0000.04720.12
7.0.30.0430.06020.21
7.0.20.0200.07720.10
7.0.10.0070.08720.30
7.0.00.0070.08320.23
5.6.280.0000.03321.06
5.6.210.0200.07320.75
5.6.200.0030.06318.15
5.6.190.0030.04720.63
5.6.180.0270.04720.57
5.6.170.0230.04020.47
5.6.160.0070.08020.54
5.6.150.0030.03718.14
5.6.140.0000.05718.21
5.6.130.0070.07018.15
5.6.120.0030.06721.04
5.6.110.0100.05721.08
5.6.100.0070.07320.93
5.6.90.0270.06720.94
5.6.80.0100.07320.40
5.5.350.3300.02720.41
5.5.340.0100.07318.07
5.5.330.0100.06020.21
5.5.320.0200.05020.19
5.5.310.0400.06720.33
5.5.300.0000.04317.97
5.5.290.0100.06317.98
5.5.280.0100.05720.86
5.5.270.0030.09020.96
5.5.260.0100.07720.95
5.5.250.0100.06720.69
5.5.240.0200.06320.25

preferences:
76.67 ms | 401 KiB | 5 Q