3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = floor(microtime(true) * 1000); $uid = 1 << 45 + 9 + 9 | random_int(0, 0b111111111) << 45 + 9 | $time << 9 | random_int(0, 0b111111111); $uid = dechex($uid); $uid = hex2bin($uid); $uid = base64_encode($uid); $uid = str_replace(['=', '+', '/'], ['', '-', '_'], $uid); var_dump($uid);

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.2.30.0130.00417.62
8.2.20.0170.00017.62
8.2.10.0110.00717.62
8.2.00.0160.00017.62
8.1.160.0120.00617.62
8.1.150.0140.00317.62
8.1.140.0100.00717.62
8.1.130.0100.00717.62
8.1.120.0110.00517.62
8.1.110.0120.00317.62
8.1.100.0100.00717.62
8.1.90.0140.00217.62
8.1.80.0150.00517.62
8.1.70.0160.00617.62
8.1.60.0140.00517.62
8.1.50.0110.00517.62
8.1.40.0060.01217.62
8.1.30.0100.00717.62
8.1.20.0110.00717.62
8.1.10.0070.00517.49
8.1.00.0170.00017.62
8.0.280.0040.00418.62
8.0.270.0100.00617.62
8.0.260.0080.00817.62
8.0.250.0080.00817.62
8.0.240.0120.00317.62
8.0.230.0110.00417.62
8.0.220.0220.00017.62
8.0.210.0110.00617.62
8.0.200.0000.01617.62
8.0.190.0060.01317.62
8.0.180.0110.00517.62
8.0.170.0120.00417.62
8.0.160.0150.00417.62
8.0.150.0120.00517.62
8.0.140.0060.01117.62
8.0.130.0140.00317.62
8.0.120.0100.00417.62
8.0.110.0160.00017.62
8.0.100.0100.00717.62
8.0.90.0090.00617.62
8.0.80.0110.00517.62
8.0.70.0150.00017.62
8.0.60.0050.01017.62
8.0.50.0110.00417.62
8.0.30.0140.01017.13
8.0.20.0150.01017.18
8.0.10.0190.00817.19
8.0.00.0170.00917.21
7.4.330.0030.00415.84
7.4.320.0040.01217.62
7.4.300.0100.00717.62
7.4.290.0170.00017.62
7.4.280.0060.01117.62
7.4.270.0060.00917.62
7.4.260.0100.00717.62
7.4.250.0140.00217.62
7.4.240.0070.01117.62
7.4.230.0170.00317.62
7.4.220.0220.00017.62
7.4.210.0100.00817.62
7.4.200.0120.00417.62
7.4.190.0100.00517.62
7.4.180.0120.00317.62
7.4.160.0180.00616.92
7.4.150.0120.01216.92
7.4.140.0200.01016.90
7.4.130.0190.00516.81
7.4.120.0220.00116.81
7.4.110.0160.00716.79
7.4.100.0170.00516.85
7.4.90.0170.00716.69
7.4.80.0160.00616.79
7.4.70.0170.00516.69
7.4.60.0130.01016.76
7.4.50.0120.00916.73
7.4.40.0160.00516.70
7.4.30.0130.00916.78
7.4.20.0160.00816.70
7.4.10.0130.00816.27
7.4.00.0130.00916.12
7.3.330.0090.00517.62
7.3.320.0080.00617.62
7.3.310.0100.00317.62
7.3.300.0110.00417.62
7.3.290.0050.01017.62
7.3.280.0190.00316.69
7.3.270.0180.00716.75
7.3.260.0180.00516.77
7.3.250.0180.00616.75
7.3.240.0140.00916.77
7.3.230.0160.00916.74
7.3.220.0210.00516.72
7.3.210.0120.01116.63
7.3.200.0160.00616.68
7.3.190.0130.01016.71
7.3.180.0200.00516.64
7.3.170.0140.00916.69
7.3.160.0140.00916.62
7.3.150.0170.00516.65
7.3.140.0150.00816.73
7.3.130.0110.01016.27
7.3.120.0120.00816.03
7.3.110.0110.00916.02
7.3.100.0120.00716.10
7.3.90.0140.00516.12
7.3.80.0130.00516.01
7.3.70.0120.00716.02
7.3.60.0140.00516.05
7.3.50.0100.00916.04
7.3.40.0100.00916.10
7.3.30.0100.00816.04
7.3.20.0110.00916.76
7.3.10.0120.00616.69
7.3.00.0130.00816.70
7.2.340.0140.01016.74
7.2.330.0190.00616.72
7.2.320.0160.00816.70
7.2.310.0140.01016.71
7.2.300.0170.00616.63
7.2.290.0130.00816.63
7.2.280.0140.00816.74
7.2.270.0160.00916.70
7.2.260.0170.00516.36
7.2.250.0140.00916.12
7.2.240.0120.00916.09
7.2.230.0120.00916.10
7.2.220.0090.01016.21
7.2.210.0140.00816.10
7.2.200.0120.00816.18
7.2.190.0110.00816.14
7.2.180.0120.00716.17
7.2.170.0110.00916.12
7.2.160.0120.01016.40
7.2.150.0120.00916.89
7.2.140.0140.00616.95
7.2.130.0130.01016.92
7.2.120.0140.00616.81
7.2.110.0130.00816.95
7.2.100.0130.00816.84
7.2.90.0420.00616.50
7.2.80.0130.00816.65
7.2.70.0390.00616.62
7.2.60.0120.00816.54
7.2.50.0120.01016.54
7.2.40.0150.00616.65
7.2.30.0320.00716.57
7.2.20.0110.01117.27
7.2.10.0130.00916.95
7.2.00.0140.00817.01
7.1.330.0120.00715.91
7.1.320.0130.00615.93
7.1.310.0120.00615.92
7.1.300.0140.00415.87
7.1.290.0120.00815.88
7.1.280.0130.00615.84
7.1.270.0140.00615.97
7.1.260.0120.00615.89
7.1.250.0120.00715.75
7.1.240.0100.01015.90
7.1.230.0130.00815.90
7.1.220.0120.00915.86
7.1.210.0440.00715.49
7.1.200.0120.00715.54
7.1.190.0320.00915.58
7.1.180.0400.00615.56
7.1.170.0220.00715.53
7.1.160.0270.00615.59
7.1.150.0140.00515.64
7.1.140.0150.00816.04
7.1.130.0230.00715.92
7.1.120.0210.01016.01
7.1.110.0170.00715.96
7.1.100.0150.00615.90
7.1.90.0100.01015.95
7.1.80.0220.00915.90
7.1.70.0120.00815.75
7.1.60.0480.01020.95
7.1.50.0190.01120.89
7.1.40.0180.01020.84
7.1.30.0440.00820.93
7.1.20.0470.00920.93
7.1.10.0370.00915.77
7.1.00.0360.00815.71
7.0.330.0230.00915.73
7.0.320.0170.00615.73
7.0.310.0130.00715.71
7.0.300.0150.00715.75
7.0.290.0210.00515.77
7.0.280.0130.00715.66
7.0.270.0140.00815.66
7.0.260.0140.00715.76
7.0.250.0160.00615.85
7.0.240.0140.00615.85
7.0.230.0150.00615.81
7.0.220.0150.00515.80
7.0.210.0150.00715.84
7.0.200.0120.00915.66
7.0.190.0140.00815.82
7.0.180.0130.00815.78
7.0.170.0130.00715.79
7.0.160.0140.00615.79
7.0.150.0100.00915.72
7.0.140.0150.00615.77
7.0.130.0110.00915.71
7.0.120.0140.00615.75
7.0.110.0130.00915.77
7.0.100.0140.00715.74
7.0.90.0140.00615.73
7.0.80.0160.00415.67
7.0.70.0140.00515.74
7.0.60.0150.00615.71
7.0.50.0140.00716.10
7.0.40.0180.00515.73
7.0.30.0210.00215.76
7.0.20.0170.00515.65
7.0.10.0150.00815.76
7.0.00.0150.00615.67
5.6.400.0140.00615.89
5.6.390.0170.00515.93
5.6.380.0130.00815.95
5.6.370.0110.01015.80
5.6.360.0150.00815.90
5.6.350.0150.00715.89
5.6.340.0130.01015.87
5.6.330.0130.00915.88
5.6.320.0130.00715.85
5.6.310.0120.01115.84
5.6.300.0150.00615.84
5.6.290.0150.00615.83
5.6.280.0130.00715.81
5.6.270.0140.00915.84
5.6.260.0150.00815.82
5.6.250.0130.00815.80
5.6.240.0100.01115.85
5.6.230.0140.00715.87
5.6.220.0160.00615.90
5.6.210.0150.00615.82
5.6.200.0130.00915.84
5.6.190.0140.00715.97
5.6.180.0150.00715.87
5.6.170.0150.00815.86
5.6.160.0150.00816.00
5.6.150.0160.00615.96
5.6.140.0130.00815.89
5.6.130.0130.00815.96
5.6.120.0110.01115.81
5.6.110.0120.01015.81
5.6.100.0120.01015.88
5.6.90.0140.01015.88
5.6.80.0110.01115.82
5.6.70.0110.01115.83
5.6.60.0150.00615.82
5.6.50.0150.00815.75
5.6.40.0160.00615.75
5.6.30.0140.00815.85
5.6.20.0140.00815.75
5.6.10.0110.00915.81
5.6.00.0120.00715.76

preferences:
51.51 ms | 403 KiB | 5 Q