3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = "023456789ABCDEFGHJKLM023456789NPQRSTUVWXYZ023456789"; srand( (double) microtime() * 1000000 ); $i = 0; $temppassword = ''; while ( $i <= 4096 ) { $num = rand() % strlen( $chars ); $tmp = substr( $chars, $num, 1 ); $temppassword = $temppassword . $tmp; $i++; } echo $temppassword;

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.0060.01315.22
7.3.120.0080.01214.98
7.3.110.0000.01515.05
7.3.100.0070.01115.04
7.3.90.0100.00714.95
7.3.80.0070.01315.06
7.3.70.0080.01114.92
7.3.60.0030.01314.80
7.3.50.0000.01014.62
7.3.40.0120.00615.01
7.3.30.0120.00615.04
7.3.20.0070.00716.79
7.3.10.0080.00516.49
7.3.00.0100.00616.56
7.2.250.0120.00615.00
7.2.240.0040.01815.26
7.2.230.0030.01214.91
7.2.220.0030.00715.32
7.2.210.0120.00315.39
7.2.200.0040.01515.07
7.2.190.0060.01015.10
7.2.180.0040.01215.24
7.2.170.0070.01015.17
7.2.00.0110.00419.23
7.1.330.0040.01215.72
7.1.320.0080.00815.55
7.1.310.0070.00715.92
7.1.300.0030.00915.82
7.1.290.0060.00915.66
7.1.280.0070.00415.59
7.1.270.0000.01315.89
7.1.260.0060.00915.73
7.1.70.0040.00817.26
7.1.60.0070.01019.32
7.1.50.0000.01416.86
7.1.00.0130.07022.51
7.0.200.0000.01116.61
7.0.140.0000.07322.10
7.0.60.0070.05719.94
7.0.50.0030.04017.93
7.0.40.0130.08020.12
7.0.30.0430.05320.09
7.0.20.0200.05320.13
7.0.10.0300.08320.02
7.0.00.0000.04720.09
5.6.210.0130.07020.65
5.6.200.0030.09018.14
5.6.190.0070.05720.44
5.6.180.0200.03720.59
5.6.170.0330.08020.58
5.6.160.0030.09020.47
5.6.150.0000.08318.08
5.6.140.0100.07318.19
5.6.130.0030.07318.08
5.6.120.0100.06721.01
5.6.110.0030.06721.00
5.6.100.0070.07321.04
5.6.90.0170.04020.98
5.6.80.0170.07720.40
5.6.70.0400.06720.43
5.5.350.0100.09020.41
5.5.340.0000.04318.03
5.5.330.0030.06020.21
5.5.320.0030.08720.22
5.5.310.0470.05020.34
5.5.300.0030.08317.98
5.5.290.0070.04717.87
5.5.280.0130.07720.91
5.5.270.0100.08720.98
5.5.260.0070.04021.00
5.5.250.0100.08020.73
5.5.240.0100.08020.32
5.4.450.0470.07319.42
5.4.440.0000.08719.43
5.4.430.0170.08019.57
5.4.420.0330.07019.49
5.4.410.0270.07319.29
5.4.400.4030.04319.19
5.4.390.4330.03719.25
5.4.380.0200.04018.93
5.4.370.0470.05719.25
5.4.360.0370.06318.92
5.4.350.0470.04319.26
5.4.340.0060.04112.02
5.4.320.0090.05112.50
5.4.310.0050.04312.50
5.4.300.0070.03912.50
5.4.290.0060.04612.49
5.4.280.0040.04512.39
5.4.270.0100.05212.39
5.4.260.0090.05512.39
5.4.250.0060.04212.39
5.4.240.0040.04212.39
5.4.230.0040.04312.38
5.4.220.0040.04012.38
5.4.210.0080.03512.39
5.4.200.0090.03812.38
5.4.190.0090.03612.38
5.4.180.0060.04112.38
5.4.170.0050.04212.39
5.4.160.0090.03812.39
5.4.150.0060.04612.38
5.4.140.0040.04012.07
5.4.130.0090.04112.06
5.4.120.0090.03712.02
5.4.110.0070.03912.01
5.4.100.0090.03512.01
5.4.90.0060.03812.01
5.4.80.0030.04112.01
5.4.70.0060.03612.01
5.4.60.0050.03612.01
5.4.50.0050.03812.00
5.4.40.0090.03211.99
5.4.30.0070.04512.00
5.4.20.0020.04011.99
5.4.10.0050.03712.00
5.4.00.0060.04311.49

preferences:
35 ms | 401 KiB | 5 Q