3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o=''; $b=''; for($i=0;$i<=5000;$i++){ $o.=sprintf('%s',$i); $b.="$i"; }

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)
8.4.20.0150.00617.80
8.4.10.0040.01117.99
8.3.150.0170.00020.66
8.3.140.0040.00416.63
8.3.130.0030.00518.27
8.3.120.0040.00418.95
8.3.110.0120.00420.94
8.3.100.0150.00616.78
8.3.90.0080.00016.82
8.3.80.0000.01118.56
8.3.70.0080.00816.50
8.3.60.0040.01518.37
8.3.50.0150.00622.00
8.3.40.0080.00818.85
8.3.30.0000.01519.22
8.3.20.0000.00820.34
8.3.10.0030.00620.38
8.3.00.0040.00419.26
8.2.270.0130.00617.55
8.2.260.0000.00818.39
8.2.250.0090.00618.32
8.2.240.0060.00318.94
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0030.00626.77
8.2.200.0060.00316.63
8.2.190.0090.00616.75
8.2.180.0150.00318.29
8.2.170.0090.00922.96
8.2.160.0000.01422.12
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00422.31
8.2.110.0100.00019.52
8.2.100.0060.00617.85
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0060.00317.75
8.2.60.0030.00618.05
8.2.50.0050.00518.07
8.2.40.0000.00818.28
8.2.30.0000.00819.30
8.2.20.0040.00417.75
8.2.10.0000.00818.14
8.2.00.0040.00417.66
8.1.310.0040.00418.21
8.1.300.0000.01018.50
8.1.290.0090.00018.88
8.1.280.0120.00325.92
8.1.270.0090.00022.28
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00022.18
8.1.230.0080.00319.14
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0100.00017.35
8.1.180.0050.00518.10
8.1.170.0070.00618.71
8.1.160.0040.00421.99
8.1.150.0000.00918.96
8.1.140.0030.00717.51
8.1.130.0000.00718.04
8.1.120.0030.00517.50
8.1.110.0000.00817.55
8.1.100.0000.00917.43
8.1.90.0080.00017.40
8.1.80.0060.00317.51
8.1.70.0040.00417.52
8.1.60.0000.00917.70
8.1.50.0060.00317.68
8.1.40.0000.00817.57
8.1.30.0060.00317.78
8.1.20.0030.00617.64
8.1.10.0080.00017.54
8.1.00.0050.00317.43
8.0.300.0000.00820.35
8.0.290.0030.00616.88
8.0.280.0030.00618.39
8.0.270.0090.00017.42
8.0.260.0000.00717.34
8.0.250.0040.00416.90
8.0.240.0040.00417.02
8.0.230.0000.00717.02
8.0.220.0040.00416.80
8.0.210.0000.00716.99
8.0.200.0000.00816.91
8.0.190.0050.00317.07
8.0.180.0040.00417.04
8.0.170.0040.00416.91
8.0.160.0040.00417.06
8.0.150.0040.00416.74
8.0.140.0080.00416.82
8.0.130.0030.00313.41
8.0.120.0000.00916.93
8.0.110.0000.00816.99
8.0.100.0030.00517.02
8.0.90.0000.00816.84
8.0.80.0090.00616.94
8.0.70.0000.00816.85
8.0.60.0080.00016.96
8.0.50.0080.00016.82
8.0.30.0090.01417.26
8.0.20.0170.00517.40
8.0.10.0000.00816.93
8.0.00.0070.01516.69
7.4.330.0030.00315.15
7.4.320.0000.00716.74
7.4.300.0030.00316.52
7.4.290.0040.00416.76
7.4.280.0030.00716.76
7.4.270.0000.00716.65
7.4.260.0000.00716.55
7.4.250.0030.00516.69
7.4.240.0040.00416.65
7.4.230.0040.00416.57
7.4.220.0000.01916.75
7.4.210.0040.01116.68
7.4.200.0040.00416.76
7.4.160.0080.00816.54
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0080.01016.47
7.4.120.0130.00616.55
7.4.110.0100.00716.69
7.4.100.0040.01516.64
7.4.90.0100.01016.63
7.4.80.0120.01318.80
7.4.70.0150.00316.55
7.4.60.0090.00916.58
7.4.50.0030.00516.71
7.4.40.0030.01416.81
7.4.30.0040.01316.59
7.4.00.0090.00915.22
7.3.330.0000.00613.14
7.3.320.0030.00313.14
7.3.310.0060.00316.25
7.3.300.0040.00416.39
7.3.290.0060.00916.36
7.3.280.0090.00816.38
7.3.270.0120.00817.40
7.3.260.0160.00316.66
7.3.250.0080.01016.44
7.3.240.0030.01416.59
7.3.230.0150.00916.75
7.3.210.0030.01616.40
7.3.200.0100.01019.39
7.3.190.0110.00816.57
7.3.180.0060.01216.70
7.3.170.0150.00416.76
7.3.160.0110.00616.45
7.2.330.0060.01216.86
7.2.320.0110.00716.95
7.2.310.0060.01216.76
7.2.300.0090.00916.54
7.2.290.0120.00616.56
7.2.00.0030.01219.29
7.1.100.0030.01218.09
7.1.70.0060.00316.89
7.1.60.0100.01719.32
7.1.50.0130.01016.99
7.1.00.0030.07722.28
7.0.200.0070.00316.71
7.0.140.0000.07322.08
7.0.60.0000.08019.86
7.0.50.0070.08318.02
7.0.40.0100.04320.27
7.0.30.0270.07320.17
7.0.20.0130.04720.13
7.0.10.0270.05020.02
7.0.00.0030.04320.30
5.6.280.0030.07321.07
5.6.210.0100.07320.80
5.6.200.0070.08318.18
5.6.190.0070.04320.33
5.6.180.0300.07720.45
5.6.170.0230.08720.53
5.6.160.0030.09020.48
5.6.150.0070.08318.34
5.6.140.0000.04318.17
5.6.130.0100.07718.19
5.6.120.0000.05021.05
5.6.110.0070.04021.02
5.6.100.0170.05320.91
5.6.90.0070.06021.03
5.6.80.0030.04320.44
5.6.70.4230.04320.40
5.5.350.0170.07720.58
5.5.340.0130.07718.02
5.5.330.0070.06020.37
5.5.320.0400.04320.13
5.5.310.0130.04720.24
5.5.300.0170.04317.89
5.5.290.0070.04018.02
5.5.280.0030.05720.93
5.5.270.0000.07720.89
5.5.260.0270.07320.93
5.5.250.0130.07020.53
5.5.240.0170.03720.33
5.4.450.0400.05019.41
5.4.440.0970.05719.60
5.4.430.0970.05719.48
5.4.420.0670.00019.25
5.4.410.0700.00019.52
5.4.400.0670.00018.96
5.4.390.0670.00019.05
5.4.380.0470.06718.78
5.4.370.0500.06718.68
5.4.360.0400.08018.61
5.4.350.0570.08018.79
5.4.340.0500.07318.71
5.4.320.0070.03712.51
5.4.310.0060.04012.50
5.4.300.0080.03712.51
5.4.290.0070.03912.50
5.4.280.0060.03712.43
5.4.270.0040.04012.40
5.4.260.0090.03912.40
5.4.250.0080.03712.41
5.4.240.0070.04412.40
5.4.230.0080.04812.40
5.4.220.0070.03812.40
5.4.210.0070.03712.39
5.4.200.0070.03912.39
5.4.190.0050.03912.39
5.4.180.0060.03912.39
5.4.170.0060.03812.40
5.4.160.0090.04012.40
5.4.150.0070.05012.39
5.4.140.0050.05712.08
5.4.130.0040.04912.07
5.4.120.0060.03812.03
5.4.110.0080.03512.02
5.4.100.0070.03612.02
5.4.90.0050.04012.02
5.4.80.0080.03712.02
5.4.70.0090.03412.02
5.4.60.0040.03812.02
5.4.50.0060.03712.02
5.4.40.0030.03912.01
5.4.30.0030.03912.00
5.4.20.0050.03812.00
5.4.10.0060.03612.01
5.4.00.0050.03911.50
5.3.290.0080.04612.80
5.3.280.0080.03712.72
5.3.270.0080.04012.73
5.3.260.0090.03812.73
5.3.250.0060.04012.73
5.3.240.0050.04012.73
5.3.230.0060.04012.72
5.3.220.0080.03712.69
5.3.210.0050.04212.70
5.3.200.0090.03612.69
5.3.190.0040.04112.69
5.3.180.0040.04012.69
5.3.170.0030.04112.69
5.3.160.0080.04112.69
5.3.150.0040.04012.69
5.3.140.0090.03512.68
5.3.130.0040.04212.67
5.3.120.0060.04012.68
5.3.110.0060.04212.67
5.3.100.0030.04212.16
5.3.90.0060.03812.15
5.3.80.0080.03512.14
5.3.70.0040.03912.14
5.3.60.0090.04012.13
5.3.50.0050.04312.07
5.3.40.0060.03912.07
5.3.30.0050.03812.04
5.3.20.0050.04211.81
5.3.10.0040.03811.78
5.3.00.0050.03911.77
5.2.170.0060.0329.26
5.2.160.0070.0309.26
5.2.150.0030.0359.26
5.2.140.0040.0349.25
5.2.130.0090.0309.22
5.2.120.0060.0319.21
5.2.110.0050.0439.23
5.2.100.0050.0419.23
5.2.90.0050.0389.22
5.2.80.0040.0429.22
5.2.70.0060.0329.22
5.2.60.0060.0359.17
5.2.50.0030.0359.14
5.2.40.0060.0309.11
5.2.30.0020.0359.10
5.2.20.0050.0379.09
5.2.10.0080.0288.98
5.2.00.0040.0328.84
5.1.60.0050.0268.14
5.1.50.0040.0288.14
5.1.40.0030.0288.12
5.1.30.0040.0298.46
5.1.20.0060.0288.49
5.1.10.0050.0348.21
5.1.00.0060.0378.21
5.0.50.0050.0386.69
5.0.40.0060.0226.55
5.0.30.0060.0456.36
5.0.20.0040.0246.33
5.0.10.0050.0246.31
5.0.00.0070.0386.30
4.4.90.0010.0224.78
4.4.80.0020.0204.75
4.4.70.0050.0184.76
4.4.60.0020.0214.75
4.4.50.0030.0204.77
4.4.40.0030.0284.71
4.4.30.0030.0194.76
4.4.20.0000.0234.84
4.4.10.0050.0254.84
4.4.00.0050.0394.76
4.3.110.0040.0204.67
4.3.100.0040.0204.67
4.3.90.0020.0214.63
4.3.80.0030.0294.59
4.3.70.0020.0204.63
4.3.60.0020.0204.63
4.3.50.0060.0184.63
4.3.40.0010.0304.55
4.3.30.0030.0193.36
4.3.20.0030.0193.34
4.3.10.0010.0213.29
4.3.00.0170.02016.39

preferences:
29.35 ms | 403 KiB | 5 Q