3v4l.org

run code in 300+ PHP versions simultaneously
<?php $guidstr = ""; for ($i=1;$i <= 16;$i++) { $b = (int)rand(0,0xff); if ($i == 7) { $b &= 0x0f; $b |= 0x40; } // version 4 (random) if ($i == 9) { $b &= 0x3f; $b |= 0x80; } // variant $guidstr .= sprintf("%02s", base_convert($b,10,16)); if ($i == 4 || $i == 6 || $i == 8 || $i == 10) { $guidstr .= '-'; } } echo $guidstr;

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.10.0090.01014.92
7.4.00.0090.00815.04
7.3.130.0060.01114.97
7.3.120.0080.00914.80
7.3.110.0100.00914.68
7.3.100.0060.00614.65
7.3.90.0060.00714.92
7.3.80.0050.00914.70
7.3.70.0040.00914.71
7.3.60.0080.00614.85
7.3.50.0060.00614.66
7.3.40.0040.00914.68
7.3.30.0050.00514.76
7.3.20.0060.01016.60
7.3.10.0070.00916.61
7.3.00.0050.00616.56
7.2.260.0080.01014.98
7.2.250.0090.00814.80
7.2.240.0050.01114.90
7.2.230.0050.01015.19
7.2.220.0080.00814.95
7.2.210.0050.01014.99
7.2.200.0050.00914.97
7.2.190.0100.00514.98
7.2.180.0050.01014.90
7.2.170.0050.01015.05
7.2.160.0080.00614.94
7.2.150.0040.00916.80
7.2.140.0050.01016.95
7.2.130.0050.00616.87
7.2.120.0030.01116.96
7.2.110.0030.00716.85
7.2.100.0060.00716.95
7.2.90.0050.00917.04
7.2.80.0040.01116.92
7.2.70.0040.00816.92
7.2.60.0100.00616.84
7.2.50.0050.00916.90
7.2.40.0010.01116.92
7.2.30.0080.00816.93
7.2.20.0100.00516.88
7.2.10.0040.01316.96
7.2.00.0040.01017.33
7.1.330.0060.00915.56
7.1.320.0050.01015.70
7.1.310.0050.00816.01
7.1.300.0050.00915.74
7.1.290.0060.00815.82
7.1.280.0070.00615.71
7.1.270.0060.00815.78
7.1.260.0060.00815.88
7.1.250.0050.01015.82
7.1.240.0040.00715.79
7.1.230.0060.00615.74
7.1.220.0020.01115.77
7.1.210.0050.00915.76
7.1.200.0080.00415.89
7.1.190.0060.00615.76
7.1.180.0090.00415.69
7.1.170.0020.01015.77
7.1.160.0050.00815.80
7.1.150.0050.00715.78
7.1.140.0070.00515.88
7.1.130.0010.01415.80
7.1.120.0050.00815.77
7.1.110.0040.00915.76
7.1.100.0020.01216.36
7.1.90.0030.01015.66
7.1.80.0040.01115.75
7.1.70.0030.01016.07
7.1.60.0110.00920.54
7.1.50.0120.00820.52
7.1.40.0090.01220.49
7.1.30.0130.01020.45
7.1.20.0130.00920.47
7.1.10.0070.00815.89
7.1.00.0030.01115.96
7.0.330.0040.01115.51
7.0.320.0060.00415.35
7.0.310.0040.00615.37
7.0.300.0060.00815.31
7.0.290.0050.00715.34
7.0.280.0050.00715.48
7.0.270.0070.00815.54
7.0.260.0030.00715.54
7.0.250.0070.00715.50
7.0.240.0040.00615.38
7.0.230.0030.00915.50
7.0.220.0040.00915.43
7.0.210.0040.00915.53
7.0.200.0050.00915.76
7.0.190.0080.00815.80
7.0.180.0080.00815.71
7.0.170.0090.00615.61
7.0.160.0120.00415.64
7.0.150.0050.00915.54
7.0.140.0040.01015.62
7.0.130.0080.00715.64
7.0.120.0050.01015.74
7.0.110.0070.00615.61
7.0.100.0080.00815.64
7.0.90.0120.00815.67
7.0.80.0050.01015.80
7.0.70.0080.00715.56
7.0.60.0060.00915.73
7.0.50.0060.00915.80
7.0.40.0040.01014.22
7.0.30.0070.00714.27
7.0.20.0040.01114.22
7.0.10.0070.00614.23
7.0.00.0050.00914.14
5.6.400.0040.00914.33
5.6.390.0040.01014.36
5.6.380.0030.00914.20
5.6.370.0070.00514.38
5.6.360.0070.00514.49
5.6.350.0060.00714.25
5.6.340.0040.00914.28
5.6.330.0080.00714.54
5.6.320.0060.00914.44
5.6.310.0050.00814.27
5.6.300.0070.00614.28
5.6.290.0030.01114.41
5.6.280.0080.00814.25
5.6.270.0020.01114.42
5.6.260.0040.00714.39
5.6.250.0070.00714.32
5.6.240.0040.01014.40
5.6.230.0060.00714.42
5.6.220.0040.00914.37
5.6.210.0040.00914.31
5.6.200.0080.00814.46
5.6.190.0010.01114.46
5.6.180.0060.00714.31
5.6.170.0080.00814.54
5.6.160.0040.00914.34
5.6.150.0050.00814.35
5.6.140.0070.00614.40
5.6.130.0050.00714.37
5.6.120.0070.00514.41
5.6.110.0050.00614.34
5.6.100.0090.00614.51
5.6.90.0060.00414.34
5.6.80.0090.00514.23
5.6.70.0060.00814.21
5.6.60.0050.00914.25
5.6.50.0070.00814.16
5.6.40.0100.00514.42
5.6.30.0060.00714.09
5.6.20.0040.01114.30
5.6.10.0040.00814.21
5.6.00.0060.00814.23

preferences:
29.87 ms | 401 KiB | 5 Q