3v4l.org

run code in 300+ PHP versions simultaneously
<?php $abc = array("A", "B", "C", "D", "E", "F", "G", "H", "I"); $num = array("1", "2", "3", "4", "5", "6", "7"); $newpass = $abc[rand(0, 9)] . $abc[rand(0, 9)] . $abc[rand(0, 9)] . $num[rand(1, 6)] . $num[rand(1, 6)] . $abc[rand(0, 9)] . $abc[rand(0, 9)] . $abc[rand(0, 9)];

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.0090.00914.63
7.3.120.0100.01014.80
7.3.110.0070.01014.73
7.3.100.0000.01714.69
7.3.90.0070.00715.02
7.3.80.0080.00814.82
7.3.70.0090.00614.79
7.3.60.0110.00714.82
7.3.50.0060.01014.40
7.3.40.0120.00014.91
7.3.30.0060.00614.62
7.3.20.0140.00316.39
7.3.10.0060.00916.46
7.3.00.0090.00416.50
7.2.250.0040.01515.19
7.2.240.0100.01015.13
7.2.230.0070.00714.88
7.2.220.0060.00615.05
7.2.210.0150.00415.21
7.2.200.0060.00315.02
7.2.190.0100.00314.79
7.2.180.0040.01114.64
7.2.170.0040.01214.88
7.2.130.0130.01316.72
7.2.120.0100.00316.73
7.2.110.0170.00316.58
7.2.100.0140.01016.77
7.2.90.0070.01416.71
7.2.80.0150.00316.41
7.2.70.0130.00316.57
7.2.60.0030.01316.79
7.2.50.0150.00316.27
7.2.40.0060.00916.80
7.2.30.0030.00916.74
7.2.20.0050.01416.70
7.2.10.0120.00316.66
7.2.00.0220.00016.88
7.1.330.0090.00315.86
7.1.320.0030.01415.85
7.1.310.0040.00815.76
7.1.300.0000.01815.63
7.1.290.0030.01315.75
7.1.280.0090.00315.70
7.1.270.0070.00715.65
7.1.260.0060.00315.62
7.1.250.0150.00015.68
7.1.240.0060.01315.67
7.1.230.0080.01315.61
7.1.220.0120.00815.40
7.1.210.0100.01515.71
7.1.200.0070.00715.66
7.1.190.0060.01215.25
7.1.180.0070.00715.55
7.1.170.0090.00615.47
7.1.160.0070.00715.90
7.1.150.0070.00715.48
7.1.140.0110.00415.70
7.1.130.0070.00715.63
7.1.120.0090.00315.77
7.1.110.0170.00015.70
7.1.100.0120.00315.71
7.1.90.0130.00015.48
7.1.80.0090.00615.45
7.1.70.0070.00516.54
7.1.60.0070.01217.49
7.1.50.0070.01216.23
7.1.40.0160.00015.80
7.1.30.0070.00715.73
7.1.20.0080.00415.70
7.1.10.0110.00415.69
7.1.00.0070.03819.13
7.0.330.0040.00815.52
7.0.320.0060.01015.33
7.0.310.0110.00415.25
7.0.300.0070.00715.44
7.0.290.0000.01215.41
7.0.280.0110.00415.03
7.0.270.0080.00615.27
7.0.260.0070.01015.08
7.0.250.0040.01115.24
7.0.240.0080.00415.30
7.0.230.0070.00715.16
7.0.220.0070.01015.38
7.0.210.0040.00815.48
7.0.200.0510.00715.00
7.0.190.0080.00415.29
7.0.180.0100.00615.43
7.0.170.0060.00615.54
7.0.160.0060.00915.34
7.0.150.0090.00615.45
7.0.140.0100.03318.61
7.0.130.0100.00315.40
7.0.120.0070.00715.35
7.0.110.0070.00715.25
7.0.100.0110.00415.41
7.0.90.0130.00715.19
7.0.80.0040.00815.26
7.0.70.0060.00615.41
7.0.60.0130.03817.56
7.0.50.0120.02516.64
7.0.40.0120.02816.68
7.0.30.0150.02816.77
7.0.20.0160.03816.58
7.0.10.0050.02916.79
7.0.00.0040.02516.75
5.6.380.0070.01113.92
5.6.370.0050.00914.24
5.6.360.0070.00313.90
5.6.350.0070.00714.25
5.6.340.0030.00614.47
5.6.330.0100.00314.36
5.6.320.0030.00914.60
5.6.310.0060.00614.49
5.6.300.0070.00314.16
5.6.290.0000.00914.20
5.6.280.0120.03517.60
5.6.270.0060.00614.18
5.6.260.0060.00614.09
5.6.250.0090.00314.42
5.6.240.0100.00314.26
5.6.230.0060.00614.20
5.6.220.0040.00714.33
5.6.210.0020.04917.57
5.6.200.0000.02616.17
5.6.190.0030.04517.24
5.6.180.0160.03117.27
5.6.170.0130.04317.24
5.6.160.0080.04217.42
5.6.150.0060.02416.25
5.6.140.0080.02116.09
5.6.130.0020.02616.18
5.6.120.0070.04417.73
5.6.110.0050.02917.66
5.6.100.0080.03117.50
5.6.90.0080.04817.61
5.6.80.0090.03017.28
5.6.70.2250.02117.00
5.6.60.0060.00614.19
5.6.50.0030.00814.20
5.6.40.0040.00414.14
5.6.30.0040.00814.18
5.6.20.0070.00714.14
5.6.10.0080.00414.35
5.6.00.0040.01214.23
5.5.380.0080.00310.90
5.5.370.0050.00310.98
5.5.360.0080.00010.96
5.5.350.0050.04515.74
5.5.340.0000.02714.41
5.5.330.0060.03815.61
5.5.320.0080.03815.83
5.5.310.0150.02315.72
5.5.300.0020.04214.50
5.5.290.0020.02914.41
5.5.280.0040.02816.17
5.5.270.0010.03115.93
5.5.260.0120.03615.97
5.5.250.0030.03715.70
5.5.240.0130.04015.63
5.5.230.0070.00310.90
5.5.220.0030.00711.22
5.5.210.0080.00311.08
5.5.200.0030.00711.04
5.5.190.0030.00611.05
5.5.180.0040.00410.95
5.5.170.0100.00011.14
5.5.160.0090.00010.90
5.5.150.0050.00310.90
5.5.140.0000.00810.90
5.5.130.0060.00310.90
5.5.120.0040.00410.90
5.5.110.0040.00410.97
5.5.100.0050.00510.90
5.5.90.0070.00310.96
5.5.80.0070.00310.95
5.5.70.0080.00011.18
5.5.60.0030.00310.90
5.5.50.0040.00411.03
5.5.40.0090.00010.90
5.5.30.0000.00810.90
5.5.20.0090.00011.27
5.5.10.0000.01010.90
5.5.00.0070.00311.09
5.4.450.0470.02915.19
5.4.440.0430.03515.30
5.4.430.0480.02615.30
5.4.420.0350.00215.11
5.4.410.0140.03414.89
5.4.400.0160.04314.84
5.4.390.0120.02914.82
5.4.380.0120.02814.82
5.4.370.0170.03214.84
5.4.360.0150.03014.80
5.4.350.0080.01711.44
5.4.340.0090.02111.44
5.4.330.0040.00410.90
5.4.320.0080.01911.68
5.4.310.0070.02211.68
5.4.300.0070.02011.68
5.4.290.0080.02011.67
5.4.280.0090.02411.62
5.4.270.0050.02411.62
5.4.260.0060.02711.62
5.4.250.0130.03811.62
5.4.240.0040.02311.62
5.4.230.0070.02011.61
5.4.220.0050.02111.61
5.4.210.0050.02111.61
5.4.200.0060.02811.61
5.4.190.0070.02011.61
5.4.180.0080.02611.61
5.4.170.0060.02111.62
5.4.160.0050.02111.62
5.4.150.0050.02111.61
5.4.140.0070.02011.45
5.4.130.0090.01811.45
5.4.120.0060.02611.43
5.4.110.0070.02411.43
5.4.100.0050.02111.42
5.4.90.0020.02411.47
5.4.80.0080.02111.43
5.4.70.0070.01911.42
5.4.60.0070.01911.42
5.4.50.0060.02211.43
5.4.40.0120.02911.42
5.4.30.0080.02811.42
5.4.20.0070.02511.41
5.4.10.0120.02511.42
5.4.00.0090.02811.16
5.3.290.0040.02611.85
5.3.280.0070.03811.80
5.3.270.0080.03211.81
5.3.260.0090.02511.81
5.3.250.0040.02511.81
5.3.240.0070.02211.81
5.3.230.0080.01911.80
5.3.220.0080.02011.79
5.3.210.0100.01911.79
5.3.200.0040.02311.79
5.3.190.0050.02711.79
5.3.180.0090.03011.79
5.3.170.0060.03111.79
5.3.160.0070.02111.79
5.3.150.0050.02711.79
5.3.140.0090.03111.78
5.3.130.0090.01811.78
5.3.120.0060.02411.78
5.3.110.0050.02411.78
5.3.100.0060.02211.51
5.3.90.0040.02211.49
5.3.80.0050.02011.49
5.3.70.0080.02011.49
5.3.60.0040.02111.48
5.3.50.0050.02111.45
5.3.40.0040.02411.45
5.3.30.0050.02111.43
5.3.20.0030.02111.31
5.3.10.0050.02011.30
5.3.00.0110.02311.29
5.2.170.0040.01910.04
5.2.160.0050.01910.04
5.2.150.0060.01610.04
5.2.140.0030.01910.04
5.2.130.0020.02610.02
5.2.120.0020.02510.02
5.2.110.0040.02510.02
5.2.100.0040.02610.02
5.2.90.0040.01710.02
5.2.80.0050.01710.02
5.2.70.0040.01710.02
5.2.60.0050.0169.99
5.2.50.0060.0169.98
5.2.40.0050.0169.97
5.2.30.0040.0219.96
5.2.20.0030.0189.95
5.2.10.0060.0219.91
5.2.00.0090.0199.84
5.1.60.0040.0189.48
5.1.50.0040.0239.48
5.1.40.0080.0269.47
5.1.30.0050.0169.65
5.1.20.0020.0179.66
5.1.10.0070.0149.52
5.1.00.0040.0159.52
5.0.50.0040.0108.76
5.0.40.0040.0128.69
5.0.30.0090.0318.60
5.0.20.0060.0148.58
5.0.10.0020.0188.57
5.0.00.0020.0228.57
4.4.90.0020.0147.84
4.4.80.0020.0127.82
4.4.70.0040.0117.83
4.4.60.0040.0107.83
4.4.50.0040.0077.83
4.4.40.0040.0147.80
4.4.30.0050.0077.83
4.4.20.0020.0127.87
4.4.10.0020.0137.88
4.4.00.0020.0157.83
4.3.110.0030.0107.78
4.3.100.0010.0107.78
4.3.90.0020.0097.77
4.3.80.0020.0147.74
4.3.70.0020.0127.76
4.3.60.0020.0117.76
4.3.50.0020.0147.76
4.3.40.0040.0177.72
4.3.30.0030.0107.10
4.3.20.0040.0117.09
4.3.10.0050.0097.06
4.3.00.0020.0159.52

preferences:
35.29 ms | 401 KiB | 5 Q