3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* A uniqid, like: 4b3403665fea6 */ printf("uniqid(): %s\r\n", uniqid()); /* We can also prefix the uniqid, this the same as * doing: * * $uniqid = $prefix . uniqid(); * $uniqid = uniqid($prefix); */ printf("uniqid('php_'): %s\r\n", uniqid('php_')); /* We can also activate the more_entropy parameter, which is * required on some systems, like Cygwin. This makes uniqid() * produce a value like: 4b340550242239.64159797 */ printf("uniqid('', true): %s\r\n", uniqid('', true));

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.0.100.0040.00416.69
8.0.90.0040.00416.76
8.0.80.0070.00016.64
8.0.70.0000.00716.55
8.0.60.0040.00416.74
8.0.50.0070.00016.68
8.0.30.0040.00416.69
8.0.20.0020.00516.63
8.0.10.0040.00416.89
8.0.00.0000.00716.75
7.4.300.0020.00516.48
7.4.230.0040.00416.36
7.4.220.0030.00316.23
7.4.210.0000.00716.40
7.4.200.0030.00316.16
7.4.190.0030.00316.46
7.4.180.0000.00716.52
7.4.160.0000.00716.22
7.4.150.0030.00316.42
7.4.140.0080.00016.31
7.4.130.0000.00716.37
7.4.120.0030.00316.29
7.4.110.0070.00016.34
7.4.100.0070.00016.39
7.4.90.0030.00316.40
7.4.80.0030.00316.17
7.4.70.0020.00516.45
7.4.60.0040.00416.34
7.4.50.0000.00715.94
7.4.40.0030.00315.98
7.4.30.0040.00416.43
7.4.20.0040.00416.33
7.4.10.0070.00016.29
7.4.00.0030.00316.34
7.3.300.0000.00616.12
7.3.290.0070.00016.02
7.3.280.0030.00316.12
7.3.270.0040.00416.10
7.3.260.0060.00016.11
7.3.250.0030.00316.08
7.3.240.0040.00416.11
7.3.230.0070.00016.16
7.3.220.0050.00215.92
7.3.210.0000.00816.07
7.3.200.0000.00716.06
7.3.190.0030.00316.11
7.3.180.0000.00716.10
7.3.170.0070.00016.05
7.3.160.0000.00716.02
7.3.150.0000.00716.08
7.3.140.0030.00316.10
7.3.130.0030.00315.92
7.3.120.0050.00715.32
7.3.110.0020.00915.18
7.3.100.0080.00415.31
7.3.90.0020.01115.57
7.3.80.0070.00515.23
7.3.70.0000.00915.25
7.3.60.0060.00515.30
7.3.50.0110.00015.48
7.3.40.0060.00415.46
7.3.30.0060.00715.29
7.3.20.0280.00415.32
7.3.10.0110.00515.37
7.3.00.0040.01115.45
7.2.340.0000.00816.14
7.2.330.0000.00716.17
7.2.320.0000.00716.13
7.2.310.0030.00316.14
7.2.300.0000.00716.17
7.2.290.0000.00716.19
7.2.280.0030.00316.13
7.2.270.0020.00516.13
7.2.260.0030.00516.05
7.2.250.0030.00316.16
7.2.240.0060.00515.57
7.2.230.0060.00815.57
7.2.220.0060.00515.51
7.2.210.0040.01115.23
7.2.200.0020.00915.53
7.2.190.0060.00815.30
7.2.180.0080.00415.54
7.2.170.0030.00815.57
7.2.160.0070.00415.31
7.2.150.0050.00515.53
7.2.140.0050.00715.71
7.2.130.0080.00715.59
7.2.120.0090.00615.56
7.2.110.0070.00515.71
7.2.100.0050.00915.59
7.2.90.0030.01115.62
7.2.80.0050.00615.52
7.2.70.0070.00715.72
7.2.60.0090.00515.70
7.2.50.0070.00515.56
7.2.40.0080.00615.67
7.2.30.0070.00715.61
7.2.20.0090.00315.62
7.2.10.0070.00515.58
7.2.00.0140.00716.77
7.1.330.0010.01114.56
7.1.320.0080.00314.75
7.1.310.0100.00214.64
7.1.300.0110.00314.54
7.1.290.0050.00514.61
7.1.280.0060.00414.64
7.1.270.0080.00314.62
7.1.260.0060.00614.55
7.1.250.0040.00814.49
7.1.240.0080.00514.38
7.1.230.0090.00614.51
7.1.220.0030.01114.62
7.1.210.0100.00314.35
7.1.200.0050.00814.35
7.1.190.0070.00414.42
7.1.180.0070.00514.28
7.1.170.0040.00714.40
7.1.160.0110.00014.35
7.1.150.0070.00514.38
7.1.140.0020.01114.39
7.1.130.0090.00314.44
7.1.120.0120.00314.33
7.1.110.0090.00614.29
7.1.100.0090.00514.88
7.1.90.0090.00414.40
7.1.80.0060.00714.33
7.1.70.0080.00515.34
7.1.60.0080.00415.48
7.1.50.0070.00515.47
7.1.40.0060.00715.36
7.1.30.0050.00715.43
7.1.20.0080.00415.41
7.1.10.0030.00715.37
7.1.00.0060.00515.37
7.0.330.0070.00514.01
7.0.320.0090.00514.07
7.0.310.0040.01014.12
7.0.300.0040.00814.22
7.0.290.0050.00914.29
7.0.280.0060.00814.32
7.0.270.0070.00614.13
7.0.260.0020.01114.16
7.0.250.0050.00914.24
7.0.240.0130.00314.25
7.0.230.0240.00814.28
7.0.220.0100.00414.25
7.0.210.0100.00314.25
7.0.200.0050.00815.24
7.0.190.0060.00815.29
7.0.180.0100.00315.22
7.0.170.0050.00715.12
7.0.160.0040.00715.24
7.0.150.0020.00915.29
7.0.140.0070.00615.28
7.0.130.0090.00215.26
7.0.120.0050.00915.33
7.0.110.0080.00815.27
7.0.100.0040.00915.27
7.0.90.0070.00615.23
7.0.80.0060.01115.23
7.0.70.0100.00315.24
7.0.60.0050.00715.27
7.0.50.0060.00615.21
7.0.40.0130.00815.21
7.0.30.0080.00515.29
7.0.20.0070.00715.15
7.0.10.0090.00315.21
7.0.00.0090.00415.30
5.6.400.0040.00614.72
5.6.390.0100.00414.77
5.6.380.0080.00414.69
5.6.370.0070.00714.97
5.6.360.0090.00414.84
5.6.350.0070.00714.79
5.6.340.0080.00614.76
5.6.330.0120.00214.75
5.6.320.0050.01014.96
5.6.310.0080.00514.93
5.6.300.0060.02016.86
5.6.290.0060.02216.79
5.6.280.0100.01916.85
5.6.270.0080.01716.78
5.6.260.0060.02216.91
5.6.250.0040.02316.95
5.6.240.0070.02016.79
5.6.230.0090.01916.92
5.6.220.0050.01816.97
5.6.210.0070.02216.90
5.6.200.0060.01717.00
5.6.190.0070.02716.81
5.6.180.0050.02116.92
5.6.170.0070.01716.90
5.6.160.0070.01716.81
5.6.150.0090.01716.89
5.6.140.0090.01616.82
5.6.130.0100.01516.88
5.6.120.0070.01916.78
5.6.110.0090.01416.95
5.6.100.0050.01916.95
5.6.90.0070.02516.84
5.6.80.0050.01916.66
5.6.70.0040.01916.64
5.6.60.0050.01916.55
5.6.50.0080.01816.66
5.6.40.0060.01916.55
5.6.30.0080.01516.57
5.6.20.0080.01916.71
5.6.10.0100.01516.58
5.6.00.0050.02316.56
5.5.380.0080.01615.73
5.5.370.0070.01615.62
5.5.360.0050.01715.59
5.5.350.0100.02815.72
5.5.340.0040.02015.70
5.5.330.0070.03215.71
5.5.320.0040.02015.80
5.5.310.0040.02215.91
5.5.300.0060.01915.69
5.5.290.0040.02015.56
5.5.280.0130.01415.82
5.5.270.0080.01715.74
5.5.260.0070.02015.65
5.5.250.0080.03115.75
5.5.240.0190.01815.52
5.5.230.0060.01815.62
5.5.220.0040.01915.54
5.5.210.0080.01615.69
5.5.200.0060.03115.54
5.5.190.0040.01815.47
5.5.180.0060.01815.47
5.5.170.0070.00414.50
5.5.160.0080.02815.52
5.5.150.0060.02215.57
5.5.140.0080.01715.45
5.5.130.0090.01615.38
5.5.120.0050.01715.43
5.5.110.0010.02015.53
5.5.100.0080.01315.55
5.5.90.0060.01615.45
5.5.80.0060.01615.52
5.5.70.0050.03115.57
5.5.60.0080.01715.48
5.5.50.0020.02115.49
5.5.40.0030.01915.57
5.5.30.0060.01715.62
5.5.20.0050.01715.47
5.5.10.0070.01915.59
5.5.00.0060.01515.46
5.4.450.0050.01814.14
5.4.440.0080.01614.22
5.4.430.0040.01714.09
5.4.420.0080.01514.25
5.4.410.0070.02314.15
5.4.400.0080.01413.95
5.4.390.0050.01613.99
5.4.380.0070.01514.02
5.4.370.0060.01614.03
5.4.360.0080.01214.08
5.4.350.0070.01513.99
5.4.340.0060.01614.03
5.4.330.0070.00411.52
5.4.320.0080.01514.03
5.4.310.0060.01614.07
5.4.300.0050.02514.02
5.4.290.0060.01514.08
5.4.280.0070.01514.07
5.4.270.0030.01514.04
5.4.260.0060.01314.07
5.4.250.0040.01714.00
5.4.240.0040.01513.95
5.4.230.0080.01213.90
5.4.220.0070.01614.03
5.4.210.0060.01614.01
5.4.200.0060.01513.93
5.4.190.0010.01813.86
5.4.180.0060.01513.90
5.4.170.0070.01313.93
5.4.160.0030.02613.95
5.4.150.0060.01414.01
5.4.140.0100.01013.43
5.4.130.0020.01713.41
5.4.120.0010.01813.44
5.4.110.0110.01313.50
5.4.100.0070.01313.41
5.4.90.0060.01413.45
5.4.80.0070.01313.48
5.4.70.0070.01513.42
5.4.60.0040.01713.53
5.4.50.0060.01613.45
5.4.40.0050.01513.51
5.4.30.0050.01513.41
5.4.20.0040.01613.49
5.4.10.0050.01813.43
5.4.00.0050.01613.51
5.3.290.0060.01613.66
5.3.280.0040.01813.60
5.3.270.0040.01813.63
5.3.260.0100.01413.61
5.3.250.0070.01513.63
5.3.240.0060.01413.56
5.3.230.0070.01513.59
5.3.220.0060.01513.55
5.3.210.0070.01413.53
5.3.200.0060.01613.61
5.3.190.0040.01713.55
5.3.180.0040.01713.61
5.3.170.0070.01713.62
5.3.160.0070.01813.59
5.3.150.0040.01813.65
5.3.140.0020.01913.57
5.3.130.0060.01513.63
5.3.120.0010.02113.65
5.3.110.0050.01613.57
5.3.100.0110.01413.63
5.3.90.0070.01413.57
5.3.80.0070.01413.58
5.3.70.0060.02413.57
5.3.60.0060.01613.58
5.3.50.0050.01413.56
5.3.40.0050.01513.58
5.3.30.0060.01413.62
5.3.20.0030.01613.55
5.3.10.0050.01513.47
5.3.00.0040.01613.47

preferences:
45.63 ms | 401 KiB | 5 Q