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); print_r( 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.0190.00018.55
8.3.50.0100.00921.89
8.3.40.0160.00018.71
8.3.30.0110.00418.48
8.3.20.0020.00520.21
8.3.10.0040.00420.54
8.3.00.0080.00021.90
8.2.180.0090.00925.92
8.2.170.0150.00618.92
8.2.160.0030.01022.96
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0110.00420.88
8.2.120.0000.00726.35
8.2.110.0060.00321.09
8.2.100.0080.00417.91
8.2.90.0080.00019.25
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00417.90
8.2.50.0050.00318.09
8.2.40.0040.00422.27
8.2.30.0040.00419.37
8.2.20.0050.00317.62
8.2.10.0000.00717.90
8.2.00.0000.00818.08
8.1.280.0090.00925.92
8.1.270.0040.00422.05
8.1.260.0000.01028.09
8.1.250.0040.00428.09
8.1.240.0000.00823.96
8.1.230.0070.00419.25
8.1.220.0070.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00817.00
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0000.00720.70
8.1.150.0080.00020.61
8.1.140.0040.00419.51
8.1.130.0110.00017.55
8.1.120.0020.00517.44
8.1.110.0040.00417.27
8.1.100.0040.00417.38
8.1.90.0000.00717.38
8.1.80.0070.00017.46
8.1.70.0030.00317.39
8.1.60.0040.00417.41
8.1.50.0080.00017.40
8.1.40.0000.00817.45
8.1.30.0030.00517.59
8.1.20.0000.00817.31
8.1.10.0040.00417.35
8.1.00.0040.00817.45
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0030.00318.38
8.0.270.0030.00317.26
8.0.260.0060.00017.25
8.0.250.0030.00316.93
8.0.240.0040.00416.82
8.0.230.0000.00716.93
8.0.220.0050.00216.78
8.0.210.0040.00416.77
8.0.200.0040.00416.88
8.0.190.0050.00316.90
8.0.180.0000.00716.94
8.0.170.0040.00416.98
8.0.160.0030.00516.93
8.0.150.0040.00416.87
8.0.140.0050.00216.78
8.0.130.0070.00013.29
8.0.120.0040.00416.87
8.0.110.0000.00816.91
8.0.100.0040.00416.88
8.0.90.0040.00416.83
8.0.80.0120.00316.84
8.0.70.0070.00016.76
8.0.60.0000.00816.75
8.0.50.0030.00316.79
8.0.30.0140.00517.01
8.0.20.0140.00717.40
8.0.10.0070.00017.03
8.0.00.0090.00916.56
7.4.330.0060.00016.84
7.4.320.0000.00616.47
7.4.300.0030.00316.62
7.4.290.0040.00416.30
7.4.280.0070.00016.29
7.4.270.0000.00716.54
7.4.260.0040.00416.53
7.4.250.0000.01016.41
7.4.240.0000.00816.54
7.4.230.0030.00316.33
7.4.220.0060.01916.57
7.4.210.0160.00316.54
7.4.200.0070.00016.59
7.4.160.0090.00616.38
7.4.150.0090.00917.40
7.4.140.0140.01117.86
7.4.130.0100.01216.42
7.4.120.0110.00916.51
7.4.110.0170.00716.53
7.4.100.0120.00616.50
7.4.90.0000.01716.47
7.4.80.0070.01319.39
7.4.70.0070.01716.38
7.4.60.0000.01716.56
7.4.50.0030.00616.19
7.4.40.0090.00916.43
7.4.30.0160.00016.46
7.4.00.0060.00914.72
7.3.330.0030.00313.03
7.3.320.0000.00713.08
7.3.310.0050.00216.00
7.3.300.0070.00016.12
7.3.290.0060.01216.17
7.3.280.0090.00816.20
7.3.270.0060.01217.40
7.3.260.0130.00316.07
7.3.250.0090.00816.28
7.3.240.0090.00916.17
7.3.230.0100.01416.39
7.3.210.0090.00616.18
7.3.200.0110.00616.07
7.3.190.0080.00816.39
7.3.180.0130.00716.58
7.3.170.0170.00016.21
7.3.160.0110.00816.36
7.3.120.0060.00914.72
7.3.110.0030.01214.71
7.3.100.0030.00914.28
7.3.90.0000.01414.69
7.3.80.0100.00314.57
7.3.70.0110.00414.67
7.3.60.0100.00314.39
7.3.50.0000.01314.46
7.3.40.0060.01014.55
7.3.30.0120.00614.70
7.3.20.0040.01116.64
7.3.10.0060.00816.40
7.3.00.0050.00716.43
7.2.330.0210.00316.29
7.2.320.0080.01316.13
7.2.310.0090.00916.32
7.2.300.0080.00916.25
7.2.290.0110.00716.46
7.2.240.0130.00614.90
7.2.230.0060.01014.43
7.2.220.0040.01414.67
7.2.210.0070.00414.96
7.2.200.0030.01214.97
7.2.190.0070.01014.60
7.2.180.0110.00714.90
7.2.170.0040.01214.56
7.2.160.0090.01114.96
7.2.150.0100.00716.36
7.2.140.0040.01116.71
7.2.130.0110.00216.65
7.2.120.0060.00616.66
7.2.110.0060.01116.63
7.2.100.0170.00516.58
7.2.90.0090.00516.46
7.2.80.0090.00516.62
7.2.70.0070.00616.65
7.2.60.0060.00816.54
7.2.50.0060.00916.56
7.2.40.0080.00516.61
7.2.30.0100.00316.70
7.2.20.0090.00516.59
7.2.10.0080.00516.69
7.2.00.0060.00817.46
7.1.330.0030.01215.50
7.1.320.0090.00615.45
7.1.310.0110.00315.77
7.1.300.0070.01015.40
7.1.290.0030.01015.63
7.1.280.0030.00915.64
7.1.270.0070.00715.65
7.1.260.0060.00615.50
7.1.250.0080.00715.65
7.1.240.0070.00415.70
7.1.230.0070.01115.71
7.1.220.0100.00315.77
7.1.210.0070.01015.79
7.1.200.0050.00815.65
7.1.190.0090.00915.62
7.1.180.0030.01015.44
7.1.170.0140.00315.57
7.1.160.0030.00715.42
7.1.150.0060.00615.54
7.1.140.0110.00715.71
7.1.130.0140.00015.69
7.1.120.0060.00615.87
7.1.110.0060.00615.74
7.1.100.0100.00715.80
7.1.90.0100.00315.64
7.1.80.0090.00615.52
7.1.70.0070.00716.33
7.1.60.0070.01117.28
7.1.50.0060.00616.08
7.1.40.0130.00315.43
7.1.30.0120.00315.38
7.1.20.0060.00315.17
7.1.10.0110.00015.73
7.1.00.0060.04219.04
7.0.330.0100.00315.28
7.0.320.0120.00315.28
7.0.310.0060.00615.24
7.0.300.0140.00015.06
7.0.290.0060.00614.87
7.0.280.0080.00814.80
7.0.270.0090.00614.97
7.0.260.0060.00614.98
7.0.250.0030.01015.28
7.0.240.0070.00714.74
7.0.230.0100.00615.09
7.0.220.0070.00415.11
7.0.210.0080.00315.06
7.0.200.0070.00815.83
7.0.190.0100.00315.17
7.0.180.0030.01015.00
7.0.170.0030.00715.05
7.0.160.0100.00015.19
7.0.150.0090.00315.03
7.0.140.0070.01015.16
7.0.130.0070.00714.88
7.0.120.0130.00315.05
7.0.110.0100.00015.15
7.0.100.0030.05017.43
7.0.90.0080.02717.42
7.0.80.0170.03817.46
7.0.70.0100.03817.42
7.0.60.0090.04217.49
7.0.50.0080.02617.61
7.0.40.0070.02316.77
7.0.30.0020.02616.55
7.0.20.0060.02316.40
7.0.10.0040.02316.49
7.0.00.0030.02816.48
5.6.380.0060.00614.11
5.6.370.0060.00614.41
5.6.360.0060.00614.21
5.6.350.0000.01214.25
5.6.340.0060.00314.31
5.6.330.0080.00814.18
5.6.320.0070.00714.20
5.6.310.0110.00413.94
5.6.300.0090.00713.69
5.6.290.0080.00714.30
5.6.280.0020.02617.49
5.6.270.0060.01414.10
5.6.260.0110.00714.16
5.6.250.0090.04617.39
5.6.240.0090.02717.21
5.6.230.0060.04717.37
5.6.220.0020.05117.23
5.6.210.0060.04217.11
5.6.200.0130.02617.39
5.6.190.0100.02017.47
5.6.180.0050.02917.41
5.6.170.0080.02217.65
5.6.160.0060.02417.52
5.6.150.0060.02417.31
5.6.140.0070.02417.49
5.6.130.0080.03117.49
5.6.120.0070.02717.68
5.6.110.0080.02817.49
5.6.100.0080.02817.45
5.6.90.0070.02517.59
5.6.80.0110.01817.13
5.6.70.0120.02617.12
5.6.60.0100.01817.19
5.6.50.0120.01816.94
5.6.40.0090.02517.01
5.6.30.0110.02117.16
5.6.20.0100.02517.25
5.6.10.0050.02416.98
5.6.00.0060.02417.00
5.5.380.0100.03515.48
5.5.370.0110.03915.57
5.5.360.0140.03915.72
5.5.350.0110.02615.56
5.5.340.0100.02115.96
5.5.330.0070.02315.93
5.5.320.0130.02016.00
5.5.310.0090.02415.87
5.5.300.0090.02315.98
5.5.290.0070.02515.96
5.5.280.0080.02315.92
5.5.270.0100.02415.88
5.5.260.0020.02815.89
5.5.250.0050.03615.85
5.5.240.0120.02015.67
5.5.230.0160.02415.66
5.5.220.0240.02315.59
5.5.210.0160.02215.69
5.5.200.0260.02015.68
5.5.190.0130.02415.62
5.5.180.0080.02615.66
5.5.170.0220.00711.21
5.5.160.0080.02515.54
5.5.150.0090.01815.53
5.5.140.0070.02415.56
5.5.130.0140.01515.61
5.5.120.0080.02015.53
5.5.110.0050.02315.57
5.5.100.0080.02215.58
5.5.90.0060.02415.49
5.5.80.0040.02615.56
5.5.70.0080.01815.53
5.5.60.0050.02415.54
5.5.50.0070.02215.41
5.5.40.0100.02015.56
5.5.30.0080.02715.36
5.5.20.0020.02315.54
5.5.10.0030.02415.59
5.5.00.0030.01715.52

preferences:
34.82 ms | 401 KiB | 5 Q