3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(array_unique(['1', 'a', 1, 9, null], SORT_REGULAR)); echo "\n";

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.1.130.0030.00320.09
8.1.120.0060.00317.38
8.1.110.0060.00317.32
8.1.100.0040.00417.36
8.1.90.0040.00417.29
8.1.80.0050.00317.18
8.1.70.0030.00317.28
8.1.60.0040.00417.47
8.1.50.0040.00417.30
8.1.40.0000.00717.40
8.1.30.0000.00917.48
8.1.20.0000.00817.56
8.1.10.0000.00717.47
8.1.00.0040.00817.26
8.0.260.0030.00318.46
8.0.250.0030.00316.83
8.0.240.0060.00016.75
8.0.230.0070.00016.71
8.0.220.0000.00716.80
8.0.210.0030.00316.61
8.0.200.0040.00816.68
8.0.190.0050.00216.79
8.0.180.0030.00316.70
8.0.170.0040.00416.75
8.0.160.0000.00816.74
8.0.150.0040.00316.61
8.0.140.0030.00616.72
8.0.130.0000.00613.18
8.0.120.0000.00716.60
8.0.110.0040.00416.64
8.0.100.0030.00516.56
8.0.90.0040.00416.61
8.0.80.0110.00616.74
8.0.70.0000.00716.65
8.0.60.0000.00716.66
8.0.50.0000.00716.65
8.0.30.0070.01016.96
8.0.20.0170.00217.05
8.0.10.0000.00816.99
8.0.00.0060.01216.68
7.4.330.0050.00015.55
7.4.320.0040.00416.32
7.4.300.0000.00616.45
7.4.290.0040.00416.44
7.4.280.0000.00816.36
7.4.270.0000.00716.31
7.4.260.0030.00313.03
7.4.250.0030.00616.47
7.4.240.0070.00016.28
7.4.230.0030.00316.46
7.4.220.0020.00516.24
7.4.210.0080.00816.45
7.4.200.0000.00716.45
7.4.130.0080.01316.42
7.4.120.0070.01216.27
7.4.110.0090.00916.34
7.4.100.0100.00916.42
7.4.90.0110.00916.28
7.4.80.0090.01116.34
7.4.70.0070.01116.17
7.4.60.0100.00816.26
7.4.50.0110.00916.25
7.4.40.0100.01016.31
7.4.30.0080.01016.05
7.4.20.0100.00916.20
7.4.10.0070.01216.06
7.4.00.0080.01216.31
7.3.330.0040.00416.02
7.3.320.0020.00213.07
7.3.310.0030.00316.25
7.3.300.0000.00816.18
7.3.290.0120.00616.16
7.3.260.0070.01016.48
7.3.240.0080.01216.19
7.3.230.0090.00816.29
7.3.220.0080.01016.17
7.3.210.0100.01016.19
7.3.200.0090.01016.19
7.3.190.0100.01116.34
7.3.180.0110.00916.16
7.3.170.0120.00916.15
7.3.160.0120.00816.17
7.3.150.0130.00516.09
7.3.140.0130.00516.21
7.3.130.0100.00816.07
7.3.120.0070.01416.16
7.3.110.0100.00816.13
7.3.100.0110.00916.12
7.3.90.0110.00616.16
7.3.80.0130.00616.16
7.3.70.0100.00816.17
7.3.60.0080.00916.18
7.3.50.0070.01116.11
7.3.40.0120.00916.14
7.3.30.0090.00816.12
7.3.20.0150.00616.08
7.3.10.0120.00616.25
7.3.00.0070.01316.09
7.2.340.0100.00816.32
7.2.330.0080.01216.32
7.2.320.0110.00716.36
7.2.310.0040.01816.41
7.2.300.0120.00616.46
7.2.290.0090.01016.27
7.2.280.0110.00716.31
7.2.270.0080.01016.27
7.2.260.0130.00716.24
7.2.250.0070.01116.45
7.2.240.0090.01216.40
7.2.230.0070.01116.10
7.2.220.0110.00716.25
7.2.210.0120.00816.25
7.2.200.0090.00916.27
7.2.190.0090.01216.30
7.2.180.0100.01016.34
7.2.170.0040.01516.35
7.2.160.0070.01116.24
7.2.150.0100.01116.37
7.2.140.0090.01116.27
7.2.130.0080.01216.48
7.2.120.0170.00416.31
7.2.110.0100.01116.40
7.2.100.0210.00816.35
7.2.90.0100.01216.21
7.2.80.0300.00716.36
7.2.70.0170.00716.32
7.2.60.0170.00916.36
7.2.50.0110.01116.27
7.2.40.0130.00616.40
7.2.30.0080.01316.31
7.2.20.0250.01216.42
7.2.10.0150.00616.50
7.2.00.0110.01116.44
7.1.330.0230.01015.47
7.1.320.0150.01515.49
7.1.310.0250.01115.36
7.1.300.0280.00915.32
7.1.290.0200.02015.33
7.1.280.0190.00915.36
7.1.270.0290.00415.38
7.1.260.0190.01315.36
7.1.250.0250.01015.23
7.1.240.0230.00615.29
7.1.230.0160.01315.39
7.1.220.0210.01115.41
7.1.210.0290.01115.44
7.1.200.0240.00815.36
7.1.190.0330.00615.42
7.1.180.0190.01615.49
7.1.170.0300.00415.46
7.1.160.0220.00815.37
7.1.150.0520.00715.39
7.1.140.0170.01415.38
7.1.130.0180.01815.27
7.1.120.0220.01515.50
7.1.110.0210.01815.40
7.1.100.0240.00615.46
7.1.90.0290.00715.34
7.1.80.0280.00615.22
7.1.70.0270.00715.33
7.1.60.0200.01015.32
7.1.50.0170.01015.35
7.1.40.0170.01115.54
7.1.30.0240.00715.34
7.1.20.0230.01015.39
7.1.10.0250.00715.47
7.1.00.0230.01015.26
7.0.330.0280.01614.90
7.0.320.0330.00915.13
7.0.310.0300.00615.00
7.0.300.0260.00414.92
7.0.290.0160.01315.07
7.0.280.0200.00815.23
7.0.270.0210.01215.07
7.0.260.0240.01015.04
7.0.250.0280.00415.17
7.0.240.0270.00015.13
7.0.230.0170.01314.86
7.0.220.0210.01415.24
7.0.210.0210.00915.21
7.0.200.0260.00715.03
7.0.190.0110.01415.05
7.0.180.0160.01215.09
7.0.170.0240.00615.13
7.0.160.0260.00315.14
7.0.150.0220.00815.12
7.0.140.0190.01114.95
7.0.130.0170.01114.96
7.0.120.0180.01515.23
7.0.110.0260.00414.89
7.0.100.0230.00715.15
7.0.90.0220.00614.93
7.0.80.0220.01015.02
7.0.70.0180.01114.97
7.0.60.0280.00715.20
7.0.50.0200.00715.13
7.0.40.0220.01015.13
7.0.30.0100.02015.06
7.0.20.0290.00015.05
7.0.10.0170.01714.97
7.0.00.0210.00714.81
5.6.400.0220.01515.96
5.6.390.0240.01215.82
5.6.380.0090.02615.95
5.6.370.0300.01016.00
5.6.360.0250.01515.74
5.6.350.0300.00715.61
5.6.340.0260.00615.37
5.6.330.0310.00615.72
5.6.320.0180.01515.46
5.6.310.0180.01515.69
5.6.300.0190.01515.51
5.6.290.0140.01715.82
5.6.280.0240.00815.92
5.6.270.0180.01415.84
5.6.260.0290.00416.00
5.6.250.0230.00815.84
5.6.240.0220.00815.83
5.6.230.0170.01315.73
5.6.220.0190.01515.77
5.6.210.0200.01115.84
5.6.200.0310.00815.80
5.6.190.0180.01615.67
5.6.180.0150.01915.82
5.6.170.0170.01415.58
5.6.160.0170.01415.65
5.6.150.0210.01515.69
5.6.140.0250.00715.96
5.6.130.0180.01415.69
5.6.120.0250.01115.66
5.6.110.0160.01615.75
5.6.100.0310.00315.81
5.6.90.0290.00615.77
5.6.80.0230.00915.56
5.6.70.0190.01115.63
5.6.60.0240.00915.74
5.6.50.0190.01315.71
5.6.40.0150.01615.66
5.6.30.0210.00915.77
5.6.20.0230.00815.82
5.6.10.0260.00815.77
5.6.00.0170.01815.66
5.5.380.0240.00715.68
5.5.370.0250.01015.74
5.5.360.0230.01115.64
5.5.350.0180.01815.88
5.5.340.0240.00815.79
5.5.330.0170.01715.77
5.5.320.0170.01315.50
5.5.310.0220.01215.57
5.5.300.0240.01215.78
5.5.290.0190.01415.61
5.5.280.0170.01415.68
5.5.270.0220.01015.52
5.5.260.0270.00415.80
5.5.250.0250.01115.51
5.5.240.0210.01015.57
5.5.230.0180.01215.58
5.5.220.0200.01015.73
5.5.210.0210.01015.52
5.5.200.0260.01215.68
5.5.190.0180.01115.67
5.5.180.0280.00415.54
5.5.170.0240.00615.64
5.5.160.0200.00915.75
5.5.150.0220.00615.58
5.5.140.0290.00015.70
5.5.130.0220.00615.54
5.5.120.0270.00415.61
5.5.110.0190.01315.36
5.5.100.0200.01015.55
5.5.90.0180.01315.79
5.5.80.0250.00415.62
5.5.70.0180.01615.50
5.5.60.0250.01015.70
5.5.50.0200.00915.72
5.5.40.0140.01415.60
5.5.30.0140.01415.72
5.5.20.0180.01815.59
5.5.10.0210.01015.46
5.5.00.0230.00715.56
5.4.450.0200.00312.82
5.4.440.0150.00812.82
5.4.430.0170.00812.82
5.4.420.0210.00312.82
5.4.410.0230.00312.82
5.4.400.0210.00412.82
5.4.390.0130.01012.82
5.4.380.0230.00312.82
5.4.370.0150.00812.82
5.4.360.0200.00512.82
5.4.350.0140.00712.82
5.4.340.0110.01412.82
5.4.330.0160.01012.82
5.4.320.0130.01012.82
5.4.310.0090.01512.82
5.4.300.0150.01112.82
5.4.290.0200.00712.82
5.4.280.0100.01312.82
5.4.270.0200.00512.82
5.4.260.0170.00712.82
5.4.250.0140.00912.82
5.4.240.0130.01012.82
5.4.230.0210.00612.82
5.4.220.0210.00612.82
5.4.210.0150.00812.82
5.4.200.0090.01212.82
5.4.190.0180.00412.82
5.4.180.0200.00312.82
5.4.170.0110.00912.82
5.4.160.0130.01012.82
5.4.150.0110.01112.82
5.4.140.0160.01012.82
5.4.130.0110.01112.82
5.4.120.0190.00312.82
5.4.110.0180.00512.82
5.4.100.0150.01212.82
5.4.90.0120.01212.82
5.4.80.0080.01512.82
5.4.70.0080.01212.82
5.4.60.0180.00312.82
5.4.50.0170.00612.82
5.4.40.0190.00312.82
5.4.30.0220.00012.82
5.4.20.0220.00612.82
5.4.10.0160.00812.82
5.4.00.0100.01112.82
5.3.290.0140.01112.96
5.3.280.0190.00312.82
5.3.270.0140.00912.82
5.3.260.0210.00312.82
5.3.250.0210.00312.82
5.3.240.0130.01012.82
5.3.230.0120.01212.82
5.3.220.0110.01212.82
5.3.210.0220.00712.82
5.3.200.0160.00712.82
5.3.190.0160.00712.82
5.3.180.0140.01412.84
5.3.170.0130.00812.82
5.3.160.0110.01112.82
5.3.150.0130.01013.03
5.3.140.0220.00312.82
5.3.130.0120.00912.82
5.3.120.0190.00812.82
5.3.110.0090.01412.85
5.3.100.0180.00412.85
5.3.90.0140.01112.82
5.3.80.0160.00912.82
5.3.70.0120.01212.82
5.3.60.0110.01112.84
5.3.50.0150.00712.82
5.3.40.0180.00512.82
5.3.30.0150.00612.82
5.3.20.0110.01212.82
5.3.10.0110.01112.82
5.3.00.0130.01012.82
5.2.170.0090.00912.82
5.2.160.0130.00512.82
5.2.150.0110.00812.82
5.2.140.0120.00912.82
5.2.130.0050.01612.82
5.2.120.0140.00612.82
5.2.110.0070.01412.82
5.2.100.0150.00712.82
5.2.90.0090.01412.82
5.2.80.0160.00612.82
5.2.70.0150.00912.82
5.2.60.0080.02012.82
5.2.50.0130.01012.82
5.2.40.0150.00812.82
5.2.30.0210.00312.82
5.2.20.0160.00512.82
5.2.10.0160.00612.82
5.2.00.0170.00712.82
5.1.60.0140.00612.82
5.1.50.0180.00612.82
5.1.40.0120.00912.82
5.1.30.0210.00112.82
5.1.20.0160.00312.82
5.1.10.0140.00512.82
5.1.00.0150.00312.82
5.0.50.0100.00712.82
5.0.40.0090.00712.82
5.0.30.0130.00312.82
5.0.20.0120.00612.82
5.0.10.0110.00612.82
5.0.00.0060.01112.82
4.4.90.0040.00812.82
4.4.80.0100.00012.82
4.4.70.0090.00212.82
4.4.60.0070.00312.82
4.4.50.0110.00012.82
4.4.40.0130.00012.82
4.4.30.0100.00212.82
4.4.20.0100.00012.82
4.4.10.0070.00512.82
4.4.00.0050.00512.82
4.3.110.0000.01112.82
4.3.100.0120.00012.82
4.3.90.0060.00612.82
4.3.80.0070.00312.82
4.3.70.0110.00012.82
4.3.60.0070.00412.82
4.3.50.0090.00312.82
4.3.40.0040.00812.82
4.3.30.0100.00012.82
4.3.20.0070.00412.82
4.3.10.0030.00712.82
4.3.00.0040.00712.82

preferences:
13.33 ms | 406 KiB | 5 Q