3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private $number; function __construct($int) { $this->number = $int; } } $i = 100; $test = array(); $string = ""; while ($i >1) { $string .= $i; $i-1; $test[] = new test($i); } echo count($test); echo "<br><br>".$string;

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.3.60.0410.09964.14
8.3.50.0700.09764.12
8.3.40.0240.05443.00
8.3.30.0310.04843.30
8.3.20.0190.02344.94
8.3.10.0210.02147.87
8.3.00.0030.03142.66
8.2.180.0570.09164.37
8.2.170.0370.04043.59
8.2.160.0210.05245.35
8.2.150.0070.03943.55
8.2.140.0030.02646.71
8.2.130.0130.02942.68
8.2.120.0250.01942.25
8.2.110.0070.03746.80
8.2.100.0200.04342.15
8.2.90.0140.03543.68
8.2.80.0100.04342.07
8.2.70.0160.03542.02
8.2.60.0130.05642.55
8.2.50.0230.03042.12
8.2.40.0060.03944.10
8.2.30.0200.03443.12
8.2.20.0070.04442.33
8.2.10.0130.03842.63
8.2.00.0140.03742.71
8.1.280.0830.07671.77
8.1.270.0280.04646.94
8.1.260.0170.02745.48
8.1.250.0140.05450.09
8.1.240.0300.03647.75
8.1.230.0300.03644.07
8.1.220.0170.03644.36
8.1.210.0190.04543.95
8.1.200.0140.04243.98
8.1.190.0160.03643.76
8.1.180.0070.04744.25
8.1.170.0100.04145.32
8.1.160.0100.05048.63
8.1.150.0230.03345.43
8.1.140.0210.03243.92
8.1.130.0130.03944.18
8.1.120.0200.03044.00
8.1.110.0190.03543.91
8.1.100.0160.03543.95
8.1.90.0170.04844.05
8.1.80.0100.04343.88
8.1.70.0100.04044.05
8.1.60.0160.03844.11
8.1.50.0230.03344.13
8.1.40.0070.04744.19
8.1.30.0240.03144.27
8.1.20.0000.05444.13
8.1.10.0330.07373.21
8.1.00.0400.07073.21
8.0.300.0370.06072.51
8.0.290.0360.06672.14
8.0.280.0260.06973.91
8.0.270.0390.07272.71
8.0.260.0310.07572.61
8.0.250.0270.07172.52
8.0.240.0700.08672.32
8.0.230.0230.07572.44
8.0.220.0360.06672.22
8.0.210.0370.09072.39
8.0.200.0230.07472.39
8.0.190.0360.07572.46
8.0.180.0270.08872.32
8.0.170.0410.06872.33
8.0.160.0270.08172.46
8.0.150.0390.09372.32
8.0.140.0330.07072.41
8.0.130.0570.173121.56
8.0.120.0460.06272.28
8.0.110.0410.06172.34
8.0.100.0310.07272.22
8.0.90.0200.08172.42
8.0.80.0740.17372.32
8.0.70.0410.06472.21
8.0.60.0270.07772.25
8.0.50.0270.07372.52
8.0.30.0750.13772.47
8.0.20.1050.21372.62
8.0.10.0230.08072.37
8.0.00.0800.20172.23
7.4.330.0270.06169.63
7.4.320.0170.07971.95
7.4.300.0130.08672.11
7.4.290.0460.06872.13
7.4.280.0500.09572.03
7.4.270.0300.08471.95
7.4.260.0170.08471.87
7.4.250.0130.10071.99
7.4.240.0280.07771.97
7.4.230.0200.09972.08
7.4.220.0870.14171.98
7.4.210.0560.12572.18
7.4.200.0200.08771.92
7.4.160.0670.14471.91
7.4.150.0930.20471.95
7.4.140.0850.16372.12
7.4.130.1000.18971.99
7.4.120.0900.15772.04
7.4.110.1120.12872.03
7.4.100.0700.17472.00
7.4.90.0700.15471.99
7.4.80.0950.13472.09
7.4.70.0800.13771.84
7.4.60.0860.17671.92
7.4.50.0200.07772.01
7.4.40.0680.14971.88
7.4.30.0820.15572.18
7.4.10.0500.17370.40
7.4.00.0410.13070.34
7.3.330.0980.186121.62
7.3.320.0730.136121.69
7.3.310.0130.09071.80
7.3.300.0340.07171.70
7.3.290.0830.15471.82
7.3.280.0800.17971.90
7.3.270.1050.11972.03
7.3.260.0790.13971.91
7.3.250.1130.18371.87
7.3.240.0760.16272.03
7.3.230.0680.16272.05
7.3.210.0490.18572.09
7.3.200.1040.22471.95
7.3.190.0700.15372.23
7.3.180.0740.17971.83
7.3.170.0620.19772.07
7.3.160.0830.18072.21
7.3.130.0410.14270.24
7.3.120.0440.11870.29
7.3.110.0480.18870.41
7.3.100.0420.11470.20
7.3.90.0400.15470.37
7.3.80.0470.17570.58
7.3.70.0300.12070.29
7.3.60.0330.16070.11
7.3.50.0420.15370.43
7.3.40.0510.10970.34
7.3.30.0250.15770.41
7.3.20.0300.14471.36
7.3.10.0340.12771.19
7.3.00.0230.14271.21
7.2.330.0700.26971.85
7.2.320.0720.17271.89
7.2.310.0840.20671.48
7.2.300.0890.14671.73
7.2.290.0720.17771.75
7.2.260.0560.19170.16
7.2.250.0330.17670.17
7.2.240.0400.16270.30
7.2.230.0410.14170.31
7.2.220.0510.17469.81
7.2.210.0320.14370.26
7.2.200.0420.16670.07
7.2.190.0480.15570.04
7.2.180.0550.14470.09
7.2.170.0330.12570.21
7.2.160.0370.13670.26
7.2.150.0190.12871.13
7.2.140.0340.14671.13
7.2.130.0320.14271.05
7.2.120.0310.13571.18
7.2.110.0410.11671.16
7.2.100.0240.11671.02
7.2.90.0460.13771.12
7.2.80.0650.13371.03
7.2.70.0940.14271.20
7.2.60.0670.12370.96
7.2.50.0150.12571.20
7.2.40.0330.12171.17
7.2.30.0300.15871.25
7.2.20.0300.14771.15
7.2.10.0640.13571.24
7.2.00.0190.12872.01
7.1.330.0200.18070.06
7.1.320.0270.24670.21
7.1.310.0200.19070.08
7.1.300.0100.20169.87
7.1.290.0150.21570.09
7.1.280.0300.23170.02
7.1.270.0320.19670.12
7.1.260.0290.20970.04
7.1.250.0210.20370.04
7.1.240.0180.18970.16
7.1.230.0170.21069.90
7.1.220.0230.21769.89
7.1.210.0260.20969.89
7.1.200.0650.16870.09
7.1.190.0150.19770.01
7.1.180.0140.19269.96
7.1.170.0520.18670.16
7.1.160.0220.17669.87
7.1.150.0180.18970.03
7.1.140.0230.21069.92
7.1.130.0250.17769.80
7.1.120.1750.18069.88
7.1.110.0240.17970.18
7.1.100.5300.16670.95
7.1.90.0220.19270.03
7.1.80.0390.18670.02
7.1.70.0930.15070.33
7.1.60.0240.17970.52
7.1.50.0270.17276.44
7.1.40.0340.18470.15
7.1.30.0380.18470.01
7.1.20.0340.17769.79
7.1.10.0490.17669.96
7.1.00.0300.18672.16
7.0.330.0230.20369.76
7.0.320.0200.23969.79
7.0.310.0180.19569.76
7.0.300.0220.18969.64
7.0.290.0330.19269.79
7.0.280.0560.21569.69
7.0.270.0280.17569.54
7.0.260.0300.18569.62
7.0.250.0200.18469.74
7.0.240.1070.19569.72
7.0.230.0290.18269.67
7.0.220.0290.18469.77
7.0.210.0320.18969.72
7.0.200.6770.17269.90
7.0.190.0310.17469.90
7.0.180.0330.18569.71
7.0.170.0300.19569.72
7.0.160.0190.19169.72
7.0.150.0200.19469.74
7.0.140.0250.18169.74
7.0.130.0270.20469.78
7.0.120.0320.19869.84
7.0.110.0230.18469.81
7.0.100.0180.18969.69
7.0.90.0310.18869.73
7.0.80.0330.19169.82
7.0.70.0160.18969.84
7.0.60.0190.20271.51
7.0.50.0280.19470.80
7.0.40.0180.20537.85
7.0.30.0420.18437.79
7.0.20.0440.17837.95
7.0.10.0170.19237.88
7.0.00.0240.19637.82
5.6.400.0330.19575.45
5.6.390.0280.19175.34
5.6.380.0380.20675.33
5.6.370.0330.20175.27
5.6.360.0360.18075.23
5.6.350.0320.22075.62
5.6.340.0350.19775.46
5.6.330.0510.16275.41
5.6.320.0460.18675.30
5.6.310.0400.18275.18
5.6.300.0360.18575.50
5.6.290.0270.20175.36
5.6.280.0320.17477.70
5.6.270.0300.20075.47
5.6.260.0500.17175.44
5.6.250.0510.18875.40
5.6.240.0390.20975.44
5.6.230.0470.17975.34
5.6.220.0430.17675.43
5.6.210.0420.18677.30
5.6.200.0370.19476.51
5.6.190.0370.18877.24
5.6.180.2250.17377.22
5.6.170.0480.17477.30
5.6.160.0410.19477.43
5.6.150.0440.18776.46
5.6.140.0370.18776.52
5.6.130.0370.16676.70
5.6.120.0420.16877.58
5.6.110.0350.19477.61
5.6.100.0530.16577.58
5.6.90.0430.17377.51
5.6.80.0460.17677.39
5.6.70.1690.16877.24
5.6.60.0360.19475.19
5.6.50.0390.18675.14
5.6.40.0320.18675.36
5.6.30.0410.18875.37
5.6.20.0350.18475.41
5.6.10.0320.19375.49
5.6.00.0380.19275.22
5.5.380.0420.20075.33
5.5.370.0530.19275.24
5.5.360.0390.19375.29
5.5.350.0510.19377.30
5.5.340.0420.15876.50
5.5.330.0390.16377.10
5.5.320.0380.19077.27
5.5.310.0520.18177.30
5.5.300.0320.20376.55
5.5.290.0350.17676.46
5.5.280.0290.17677.32
5.5.270.0490.17677.47
5.5.260.0340.18777.31
5.5.250.0390.19377.36
5.5.240.0450.18877.16
5.5.230.0430.18375.37
5.5.220.0390.17975.12
5.5.210.0320.18775.23
5.5.200.0420.18975.41
5.5.190.0310.19575.33
5.5.180.0310.19475.18
5.5.170.0370.19775.14
5.5.160.0530.17075.34
5.5.150.0450.19375.23
5.5.140.0460.19975.18
5.5.130.0440.19175.27
5.5.120.0280.20475.36
5.5.110.0360.19175.25
5.5.100.0460.18275.13
5.5.90.0460.18675.26
5.5.80.0460.18175.25
5.5.70.0290.18975.19
5.5.60.0310.18775.38
5.5.50.0440.19175.06
5.5.40.0480.19875.21
5.5.30.0300.20275.23
5.5.20.0340.19775.18
5.5.10.0340.23775.19
5.5.00.0390.18775.14
5.4.450.0610.23074.92
5.4.440.0640.20574.66
5.4.430.0850.20674.88
5.4.420.0690.19174.86
5.4.410.0710.19974.70
5.4.400.0750.19974.71
5.4.390.0830.23774.63
5.4.380.0780.23874.70
5.4.370.0830.23074.63
5.4.360.0880.20374.74
5.4.350.0690.22674.70
5.4.340.0880.23074.66
5.4.330.0260.19372.14
5.4.320.0640.22674.60
5.4.310.0730.25974.48
5.4.300.0640.21374.53
5.4.290.0690.21974.72
5.4.280.0750.22274.67
5.4.270.0660.21674.72
5.4.260.0820.22874.58
5.4.250.0700.21274.67
5.4.240.0680.18574.60
5.4.230.0710.21174.63
5.4.220.0710.20974.66
5.4.210.0730.20174.59
5.4.200.0810.22673.89
5.4.190.0780.21374.72
5.4.180.0620.20274.62
5.4.170.0830.21274.42
5.4.160.0700.25074.70
5.4.150.0820.19874.47
5.4.140.0730.22173.72
5.4.130.0680.22973.77
5.4.120.0780.22473.76
5.4.110.0760.20873.65
5.4.100.0800.22573.65
5.4.90.0740.21773.69
5.4.80.0740.22073.69
5.4.70.0790.21673.63
5.4.60.0650.20473.79
5.4.50.0640.21173.77
5.4.40.0730.20173.85
5.4.30.0800.19873.72
5.4.20.0790.19773.64
5.4.10.0840.20073.83
5.4.00.0730.19573.65

preferences:
36.65 ms | 401 KiB | 5 Q