3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generate_GUID() { $uuid = md5(uniqid(rand(), true)); $guid = $prefix.substr($uuid,0,8)."-". substr($uuid,8,4)."-". substr($uuid,12,4)."-". substr($uuid,16,4)."-". substr($uuid,20,12); return $guid; } echo generate_GUID($prefix='pfx');

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.3.10.0540.00616.48
7.3.00.0360.00316.61
7.2.130.0390.01016.82
7.2.120.0090.00616.79
7.2.110.0330.00416.93
7.2.100.0150.00316.65
7.2.90.0070.01116.74
7.2.80.0240.00716.54
7.2.70.0090.00616.71
7.2.60.0060.00916.28
7.2.50.0120.00316.20
7.2.40.0140.00416.86
7.2.30.0000.01316.54
7.2.20.0090.00316.76
7.2.10.0180.00316.98
7.2.00.0080.00818.08
7.1.250.0100.01015.74
7.1.70.0030.00616.95
7.1.60.0090.00919.82
7.1.50.0100.01316.92
7.1.00.0070.07322.54
7.0.200.0070.00716.82
7.0.140.0030.07322.15
7.0.60.0100.06721.76
7.0.50.0030.07717.90
7.0.40.0100.08720.21
7.0.30.0270.05020.33
7.0.20.0300.07720.10
7.0.10.0100.04320.13
7.0.00.0070.08020.07
5.6.280.0100.06721.11
5.6.210.0100.06320.47
5.6.200.0130.07718.12
5.6.190.0070.04320.60
5.6.180.0000.04320.48
5.6.170.0330.07320.45
5.6.160.0070.05020.59
5.6.150.0070.08318.18
5.6.140.0030.07318.17
5.6.130.0100.07718.27
5.6.120.0000.04321.02
5.6.110.0030.04320.96
5.6.100.0000.04321.05
5.6.90.0070.07321.11
5.6.80.0070.08320.38
5.5.350.0200.06020.39
5.5.340.0070.08018.00
5.5.330.0030.04320.44
5.5.320.0230.04020.34
5.5.310.0300.04320.42
5.5.300.0100.04317.98
5.5.290.0030.08717.98
5.5.280.0100.04320.80
5.5.270.0070.07320.77
5.5.260.0070.04320.87
5.5.250.0000.04320.48
5.5.240.0030.06720.16
5.4.450.0300.04319.46
5.4.440.0200.04019.54
5.4.430.0730.00019.51
5.4.420.0700.00019.66
5.4.410.0030.06319.02
5.4.400.0170.04718.84
5.4.390.0000.06018.74
5.4.380.0170.06018.70
5.4.370.0330.04718.52
5.4.360.0230.05018.71
5.4.350.0170.06018.63
5.4.340.0300.04018.70
5.4.320.0050.03812.51
5.4.310.0080.03812.51
5.4.300.0070.03612.51
5.4.290.0100.03912.51
5.4.280.0050.03612.38
5.4.270.0050.03812.38
5.4.260.0060.03812.38
5.4.250.0050.03812.38
5.4.240.0070.03412.38
5.4.230.0060.03612.37
5.4.220.0060.03612.37
5.4.210.0090.04912.38
5.4.200.0100.04612.37
5.4.190.0090.04812.37
5.4.180.0050.04812.37
5.4.170.0040.03812.38
5.4.160.0080.03812.37
5.4.150.0070.04012.36
5.4.140.0070.04212.05
5.4.130.0080.03512.04
5.4.120.0060.03612.00
5.4.110.0130.04112.00
5.4.100.0040.04511.99
5.4.90.0060.03711.99
5.4.80.0020.04112.00
5.4.70.0080.03311.99
5.4.60.0090.03211.99
5.4.50.0060.03411.99
5.4.40.0050.03611.98
5.4.30.0070.03511.98
5.4.20.0050.03711.98
5.4.10.0060.03411.97
5.4.00.0080.03611.47
5.3.290.0050.04112.80
5.3.280.0040.04112.71
5.3.270.0060.04212.73
5.3.260.0070.03812.72
5.3.250.0070.03612.72
5.3.240.0060.03812.72
5.3.230.0060.03812.71
5.3.220.0060.03712.68
5.3.210.0080.04712.68
5.3.200.0040.04712.68
5.3.190.0050.03812.68
5.3.180.0060.03712.67
5.3.170.0050.03812.67
5.3.160.0070.03612.67
5.3.150.0080.03512.67
5.3.140.0070.03612.66
5.3.130.0050.04112.66
5.3.120.0070.03812.66
5.3.110.0040.05012.65
5.3.100.0070.04212.12
5.3.90.0060.03712.09
5.3.80.0060.04112.08
5.3.70.0070.04112.07
5.3.60.0060.03612.06
5.3.50.0050.03812.00
5.3.40.0080.03512.02
5.3.30.0100.03111.96
5.3.20.0060.03511.75
5.3.10.0060.03511.71
5.3.00.0060.03611.70
5.2.170.0050.0319.19
5.2.160.0040.0319.19
5.2.150.0050.0309.20
5.2.140.0060.0329.19
5.2.130.0060.0289.15
5.2.120.0050.0289.15
5.2.110.0040.0299.16
5.2.100.0060.0269.16
5.2.90.0030.0309.15
5.2.80.0050.0309.15
5.2.70.0040.0309.15
5.2.60.0040.0309.11
5.2.50.0030.0329.08
5.2.40.0060.0279.05
5.2.30.0010.0339.03
5.2.20.0070.0269.02
5.2.10.0070.0258.93
5.2.00.0050.0298.80
5.1.60.0080.0208.07
5.1.50.0050.0238.08
5.1.40.0060.0238.06
5.1.30.0030.0278.41
5.1.20.0040.0278.43
5.1.10.0020.0288.15
5.1.00.0040.0288.16
5.0.50.0030.0216.63
5.0.40.0060.0176.50
5.0.30.0030.0316.30
5.0.20.0040.0186.27
5.0.10.0020.0216.25
5.0.00.0060.0316.24
4.4.90.0040.0174.78
4.4.80.0040.0144.76
4.4.70.0030.0154.75
4.4.60.0040.0144.76
4.4.50.0010.0184.77
4.4.40.0040.0244.71
4.4.30.0050.0134.76
4.4.20.0020.0164.84
4.4.10.0040.0154.84
4.4.00.0030.0254.75
4.3.110.0040.0234.67
4.3.100.0020.0184.67
4.3.90.0060.0114.63
4.3.80.0030.0254.58
4.3.70.0020.0164.63
4.3.60.0040.0154.63
4.3.50.0040.0194.62
4.3.40.0030.0244.54
4.3.30.0020.0163.31
4.3.20.0030.0163.29
4.3.10.0030.0203.26
4.3.00.0000.01715.60

preferences:
38.35 ms | 401 KiB | 5 Q