3v4l.org

run code in 300+ PHP versions simultaneously
<?php function random_password( $length = 8 ) { $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_-=+;:,.?"; $password = substr( str_shuffle( $chars ), 0, $length ); return $password; } for ($i = 0 ; $i < 20 ; $i++) { echo random_password()."\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)
7.4.00.0040.01514.86
7.3.120.0090.00915.03
7.3.110.0090.00914.82
7.3.100.0000.01514.84
7.3.90.0070.00714.61
7.3.80.0000.01414.79
7.3.70.0040.01114.88
7.3.60.0040.01114.96
7.3.50.0060.00914.81
7.3.40.0060.00615.05
7.3.30.0090.00614.68
7.3.20.0070.01016.86
7.3.10.0030.01416.75
7.3.00.0150.00016.75
7.2.250.0120.00615.10
7.2.240.0060.00615.02
7.2.230.0000.01515.25
7.2.220.0060.01214.82
7.2.210.0040.01214.86
7.2.200.0030.01015.07
7.2.190.0070.01015.05
7.2.180.0030.00714.91
7.2.170.0000.01314.89
7.2.60.0100.00616.97
7.2.00.0130.00919.50
7.1.330.0000.01415.70
7.1.320.0000.01315.71
7.1.310.0070.00715.82
7.1.300.0040.01115.56
7.1.290.0040.00415.79
7.1.280.0000.01115.82
7.1.270.0120.00315.73
7.1.260.0030.00916.01
7.1.100.0040.01118.29
7.1.70.0070.00317.14
7.1.60.0090.01619.24
7.1.50.0060.01916.67
7.1.00.0030.05722.54
7.0.200.0000.00916.92
7.0.140.0000.07722.12
7.0.70.0100.06321.70
7.0.60.0030.08721.81
7.0.50.0070.04721.97
7.0.40.0030.08720.10
7.0.30.0030.08020.04
7.0.20.0070.08720.05
7.0.10.0000.09020.14
7.0.00.0070.08720.08
5.6.280.0030.07021.06
5.6.220.0000.06720.71
5.6.210.0070.07320.57
5.6.200.0070.07721.09
5.6.190.0000.08321.00
5.6.180.0070.07721.03
5.6.170.0070.08021.01
5.6.160.0030.08321.12
5.6.150.0000.07321.17
5.6.140.0030.08321.05
5.6.130.0030.08320.96
5.6.120.0030.06721.02
5.6.110.0100.08021.05
5.6.100.0030.08021.02
5.6.90.0030.09021.15
5.6.80.0000.08720.50
5.6.70.0030.07720.46
5.6.60.0070.07720.31
5.6.50.0070.08020.50
5.6.40.0000.07020.44
5.6.30.0070.08020.42
5.6.20.0070.07320.52
5.6.10.0070.05720.40
5.6.00.0070.06020.24
5.5.360.0030.08020.44
5.5.350.0100.07720.46
5.5.340.0070.08020.89
5.5.330.0070.08320.86
5.5.320.0070.05720.73
5.5.310.0070.09020.87
5.5.300.0000.08720.87
5.5.290.0030.08720.77
5.5.280.0100.07720.89
5.5.270.0030.09020.82
5.5.260.0030.09020.79
5.5.250.0100.07720.70
5.5.240.0000.08020.00
5.5.230.0070.07320.29
5.5.220.0070.05320.14
5.5.210.0070.05320.21
5.5.200.0100.07720.26
5.5.190.0100.07020.09
5.5.180.0100.05720.09
5.5.160.0130.07020.21
5.5.150.0030.04720.27
5.5.140.0000.07720.14
5.5.130.0000.08320.21
5.5.120.0070.07720.18
5.5.110.0100.07020.10
5.5.100.0070.07720.13
5.5.90.0100.07720.16
5.5.80.0100.07020.15
5.5.70.0000.06720.12
5.5.60.0130.07020.04
5.5.50.0070.07719.92
5.5.40.0000.08320.03
5.5.30.0070.07719.96
5.5.20.0030.08320.15
5.5.10.0100.07319.95
5.5.00.0070.08320.01
5.4.450.0030.05019.20
5.4.440.0030.08719.23
5.4.430.0070.07319.36
5.4.420.0100.07719.36
5.4.410.0000.06719.36
5.4.400.0030.06019.14
5.4.390.0030.07718.87
5.4.380.0030.07018.90
5.4.370.0030.08019.05
5.4.360.0000.06719.16
5.4.350.0000.08319.03
5.4.340.0030.05019.20
5.4.320.0100.06019.12
5.4.310.0070.07718.91
5.4.300.0000.08019.02
5.4.290.0030.08318.88
5.4.280.0000.07719.14
5.4.270.0030.08319.12
5.4.260.0130.07019.09
5.4.250.0100.07319.03
5.4.240.0130.06719.12
5.4.230.0030.07019.11
5.4.220.0030.07718.84
5.4.210.0030.07018.84
5.4.200.0030.08019.12
5.4.190.0070.07319.04
5.4.180.0070.07719.04
5.4.170.0100.05018.86
5.4.160.0030.07319.12
5.4.150.0000.05019.12
5.4.140.0030.06316.41
5.4.130.0070.03316.18
5.4.120.0000.03716.40
5.4.110.0000.03716.39
5.4.100.0000.03716.39
5.4.90.0000.03716.53
5.4.80.0070.03016.47
5.4.70.0030.03316.30
5.4.60.0030.06016.27
5.4.50.0000.03716.35
5.4.40.0000.03316.52
5.4.30.0030.03316.44
5.4.20.0000.03016.47
5.4.10.0000.06016.30
5.4.00.0000.06715.87
5.3.290.0070.07314.59
5.3.280.0000.04714.64
5.3.270.0000.08714.52
5.3.260.0030.05714.54
5.3.250.0000.04314.71
5.3.240.0100.03314.70
5.3.230.0000.03714.63
5.3.220.0030.04014.59
5.3.210.0000.03714.68
5.3.200.0000.04714.58
5.3.190.0000.03714.50
5.3.180.0000.04014.64
5.3.170.0000.03714.70
5.3.160.0030.04714.67
5.3.150.0030.02714.58
5.3.140.0000.04014.53
5.3.130.0030.03714.47
5.3.120.0000.04314.49
5.3.110.0000.04014.50
5.3.100.0000.04014.07
5.3.90.0030.04313.97
5.3.80.0000.04314.15
5.3.70.0030.03314.02
5.3.60.0070.07014.12
5.3.50.0000.03714.02
5.3.40.0070.03313.94
5.3.30.0030.03313.86
5.3.20.0000.03313.74
5.3.10.0000.05313.72
5.3.00.0070.02313.57
5.2.170.0030.04311.48
5.2.160.0030.02711.48
5.2.150.0030.02711.48
5.2.140.0000.03011.48
5.2.130.0000.02711.48
5.2.120.0000.05311.48
5.2.110.0070.04011.48
5.2.100.0030.02711.48
5.2.90.0030.02311.48
5.2.80.0000.02311.48
5.2.70.0000.04311.48
5.2.60.0000.03311.48
5.2.50.0000.04311.48
5.2.40.0000.03711.48
5.2.30.0070.02311.48
5.2.20.0000.02311.48
5.2.10.0030.03711.48
5.2.00.0000.02311.48
5.1.60.0070.05011.48
5.1.50.0000.05711.48
5.1.40.0100.03711.48
5.1.30.0000.05011.48
5.1.20.0000.05711.48
5.1.10.0030.05311.48
5.1.00.0030.04011.48
5.0.50.0000.05011.48
5.0.40.0030.04011.48
5.0.30.0000.07011.48
5.0.20.0070.03711.48
5.0.10.0000.03711.48
5.0.00.0030.07011.48
4.4.90.0000.01311.48
4.4.80.0030.02311.48
4.4.70.0030.01011.48
4.4.60.0030.01011.48
4.4.50.0000.01311.48
4.4.40.0000.05311.48
4.4.30.0000.03311.48
4.4.20.0030.03011.48
4.4.10.0000.03711.48
4.4.00.0100.04311.48
4.3.110.0000.03711.48
4.3.100.0070.03011.48
4.3.90.0000.03311.48
4.3.80.0030.05311.48
4.3.70.0000.03011.48
4.3.60.0000.03311.48
4.3.50.0000.03311.48
4.3.40.0000.05311.48
4.3.30.0070.03311.48
4.3.20.0000.03711.48
4.3.10.0000.03011.48
4.3.00.0000.04011.48

preferences:
32.63 ms | 401 KiB | 5 Q