3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = array(0,1,2,3,4,5,6,7,8,9); $serial = ''; $max = count($chars)-1; for($i=0;$i<20;$i++){ $serial .= (!($i % 5) && $i ? '-' : '').$chars[rand(0, $max)]; } echo $serial;

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.2.00.0100.00519.26
7.1.70.0000.00816.93
7.1.60.0140.01119.46
7.1.50.0180.01134.88
7.1.00.0070.07322.51
7.0.200.0030.00616.50
7.0.140.0000.07322.09
7.0.60.0070.05319.86
7.0.50.0130.06017.81
7.0.40.0030.08019.98
7.0.30.0170.04720.12
7.0.20.0300.04320.21
7.0.10.0030.04320.13
7.0.00.0100.04020.16
5.6.280.0070.07021.02
5.6.210.0030.04020.50
5.6.200.0000.05718.13
5.6.190.0000.05320.67
5.6.180.0330.07320.59
5.6.170.0330.07320.51
5.6.160.0070.04020.54
5.6.150.0070.06318.18
5.6.140.0130.05718.14
5.6.130.0100.07718.11
5.6.120.0030.05721.20
5.6.110.0100.04321.07
5.6.100.0070.07321.04
5.6.90.0130.07721.12
5.6.80.0070.08320.40
5.5.350.0130.08020.46
5.5.340.0000.05317.93
5.5.330.0230.06020.57
5.5.320.0100.06720.28
5.5.310.0230.08320.29
5.5.300.0100.07718.02
5.5.290.0000.04317.88
5.5.280.0030.08720.89
5.5.270.0030.09020.96
5.5.260.0030.04020.75
5.5.250.0070.08020.61
5.5.240.0100.05720.18
5.4.450.0630.05319.45
5.4.440.0870.04719.27
5.4.430.0530.06019.63
5.4.420.0800.05719.47
5.4.410.0970.05719.14
5.4.400.0930.05019.15
5.4.390.0700.06018.77
5.4.380.0500.06718.67
5.4.370.0500.04718.52
5.4.360.0430.05318.73
5.4.350.0300.05718.56
5.4.340.0330.06718.71
5.4.320.0110.03212.45
5.4.310.0050.04112.45
5.4.300.0040.03712.46
5.4.290.0040.04012.45
5.4.280.0060.03612.35
5.4.270.0080.03812.35
5.4.260.0060.03612.35
5.4.250.0070.03612.35
5.4.240.0070.03512.35
5.4.230.0070.03612.34
5.4.220.0050.03612.34
5.4.210.0060.03312.34
5.4.200.0060.03712.34
5.4.190.0050.03612.34
5.4.180.0090.04512.34
5.4.170.0090.04212.35
5.4.160.0040.03812.34
5.4.150.0080.03912.34
5.4.140.0070.04012.03
5.4.130.0040.03612.01
5.4.120.0070.03411.97
5.4.110.0050.04011.97
5.4.100.0070.04011.96
5.4.90.0050.04211.97
5.4.80.0060.04211.97
5.4.70.0050.03511.96
5.4.60.0040.04011.96
5.4.50.0100.03311.96
5.4.40.0040.04011.95
5.4.30.0060.03711.95
5.4.20.0090.03511.95
5.4.10.0080.03611.95
5.4.00.0030.03811.45
5.3.290.0100.03712.80
5.3.280.0060.03712.71
5.3.270.0080.03712.73
5.3.260.0030.04112.72
5.3.250.0070.03712.72
5.3.240.0050.04012.72
5.3.230.0070.03912.71
5.3.220.0030.04112.68
5.3.210.0060.03712.68
5.3.200.0080.03312.68
5.3.190.0060.03612.68
5.3.180.0070.04012.67
5.3.170.0080.03412.67
5.3.160.0100.03712.67
5.3.150.0070.04012.67
5.3.140.0060.03812.66
5.3.130.0100.03612.65
5.3.120.0070.03812.66
5.3.110.0050.04512.66
5.3.100.0050.04012.12
5.3.90.0080.03512.08
5.3.80.0050.04512.08
5.3.70.0060.04012.08
5.3.60.0080.03712.06
5.3.50.0090.04212.00
5.3.40.0070.03712.00
5.3.30.0050.03411.95
5.3.20.0050.04011.72
5.3.10.0060.03311.69
5.3.00.0070.03411.68
5.2.170.0060.0349.18
5.2.160.0050.0309.18
5.2.150.0040.0329.18
5.2.140.0050.0309.18
5.2.130.0050.0299.14
5.2.120.0080.0339.14
5.2.110.0070.0279.14
5.2.100.0030.0299.14
5.2.90.0050.0319.14
5.2.80.0060.0359.14
5.2.70.0050.0399.14
5.2.60.0050.0319.09
5.2.50.0000.0359.06
5.2.40.0030.0309.04
5.2.30.0090.0299.01
5.2.20.0100.0309.00
5.2.10.0040.0328.94
5.2.00.0050.0288.79
5.1.60.0040.0258.08
5.1.50.0070.0298.07
5.1.40.0050.0298.05
5.1.30.0070.0278.41
5.1.20.0030.0278.43
5.1.10.0040.0258.15
5.1.00.0030.0268.16
5.0.50.0040.0226.63
5.0.40.0050.0226.49
5.0.30.0060.0316.30
5.0.20.0030.0266.27
5.0.10.0050.0196.25
5.0.00.0030.0306.25
4.4.90.0020.0164.78
4.4.80.0020.0154.75
4.4.70.0030.0154.75
4.4.60.0040.0154.75
4.4.50.0020.0164.77
4.4.40.0020.0264.71
4.4.30.0040.0144.76
4.4.20.0010.0184.85
4.4.10.0050.0254.85
4.4.00.0020.0304.75
4.3.110.0040.0224.67
4.3.100.0030.0264.67
4.3.90.0020.0194.63
4.3.80.0030.0264.59
4.3.70.0040.0134.63
4.3.60.0020.0154.62
4.3.50.0030.0154.63
4.3.40.0020.0314.54
4.3.30.0020.0163.29
4.3.20.0030.0283.27
4.3.10.0050.0133.23
4.3.00.0100.0207.86

preferences:
37.18 ms | 401 KiB | 5 Q