3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __destruct() { } } gc_disable(); $a1 = new A; $a2 = new A; $a1->ref = $a2; $a2->ref = $a1; $a1 = $a2 = NULL; echo('removed cycles: '.gc_collect_cycles());

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.130.0040.00418.55
8.3.120.0050.00320.67
8.3.110.0040.00420.94
8.3.100.0130.00616.78
8.3.90.0040.00426.77
8.3.80.0080.00319.36
8.3.70.0160.00316.75
8.3.60.0060.00918.43
8.3.50.0120.00523.69
8.3.40.0130.00618.76
8.3.30.0110.00418.81
8.3.20.0000.00720.79
8.3.10.0070.00020.09
8.3.00.0050.00321.73
8.2.250.0040.00418.84
8.2.240.0060.00316.64
8.2.230.0080.00022.58
8.2.220.0050.00324.06
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0140.00716.63
8.2.180.0090.01218.51
8.2.170.0150.00322.96
8.2.160.0030.01622.12
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00317.75
8.2.110.0030.00619.30
8.2.100.0060.00617.91
8.2.90.0040.00417.88
8.2.80.0040.00418.78
8.2.70.0040.00417.90
8.2.60.0060.00318.03
8.2.50.0040.00418.10
8.2.40.0000.00819.34
8.2.30.0050.00319.25
8.2.20.0050.00218.04
8.2.10.0000.00719.37
8.2.00.0040.00419.35
8.1.300.0060.00317.93
8.1.290.0080.00030.84
8.1.280.0070.01325.92
8.1.270.0040.00420.70
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0040.00823.60
8.1.230.0040.00720.84
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0070.00317.13
8.1.190.0040.00417.35
8.1.180.0020.00518.91
8.1.170.0030.00618.57
8.1.160.0070.00018.97
8.1.150.0070.00018.88
8.1.140.0040.00422.11
8.1.130.0000.00719.99
8.1.120.0000.01017.36
8.1.110.0000.00717.36
8.1.100.0040.00417.40
8.1.90.0050.00317.38
8.1.80.0080.00017.27
8.1.70.0000.00717.36
8.1.60.0000.00917.58
8.1.50.0000.01117.43
8.1.40.0070.00417.46
8.1.30.0040.00417.56
8.1.20.0050.00317.66
8.1.10.0040.00417.61
8.1.00.0080.00017.39
8.0.300.0090.00019.98
8.0.290.0000.00916.75
8.0.280.0000.00718.44
8.0.270.0070.00016.80
8.0.260.0030.00320.02
8.0.250.0040.00416.96
8.0.240.0000.00816.98
8.0.230.0000.00816.81
8.0.220.0030.00316.89
8.0.210.0070.00016.91
8.0.200.0000.00817.00
8.0.190.0000.00716.84
8.0.180.0000.00816.90
8.0.170.0040.00416.89
8.0.160.0080.00016.89
8.0.150.0000.00816.81
8.0.140.0040.00416.75
8.0.130.0050.00013.30
8.0.120.0080.00016.82
8.0.110.0000.00716.75
8.0.100.0070.00016.78
8.0.90.0030.00616.83
8.0.80.0070.00816.86
8.0.70.0040.00416.70
8.0.60.0040.00416.68
8.0.50.0070.00016.80
8.0.30.0130.00417.28
8.0.20.0090.01817.26
8.0.10.0040.00416.88
8.0.00.0050.01116.76
7.4.330.0050.00015.55
7.4.320.0000.00616.54
7.4.300.0000.00616.62
7.4.290.0050.00316.49
7.4.280.0000.00816.40
7.4.270.0030.00316.61
7.4.260.0050.00013.32
7.4.250.0000.00816.45
7.4.240.0060.00116.44
7.4.230.0050.00216.54
7.4.220.0000.00716.61
7.4.210.0100.01016.60
7.4.200.0000.00716.29
7.4.130.0170.00016.48
7.4.120.0140.00616.51
7.4.110.0100.01316.45
7.4.100.0100.00716.39
7.4.90.0140.00416.68
7.4.80.0100.00719.39
7.4.70.0060.01116.66
7.4.60.0050.01016.44
7.4.50.0060.00916.55
7.4.40.0060.01216.57
7.4.00.0150.00614.70
7.3.330.0000.00716.36
7.3.320.0030.00313.12
7.3.310.0070.00016.15
7.3.300.0070.00016.18
7.3.290.0000.00816.11
7.3.280.0090.00616.31
7.3.260.0060.01716.35
7.3.240.0090.00916.35
7.3.230.0190.00316.37
7.3.210.0030.01316.28
7.3.200.0090.01316.56
7.3.190.0140.00716.33
7.3.180.0040.01216.34
7.3.170.0030.01316.40
7.3.160.0120.00316.33
7.3.120.0110.00714.58
7.3.110.0090.01414.65
7.3.100.0090.00914.58
7.3.90.0060.01114.71
7.3.80.0120.01014.66
7.3.70.0110.00914.65
7.3.60.0160.00314.59
7.3.50.0080.01014.64
7.3.40.0150.00614.42
7.3.30.0110.00914.49
7.3.20.0110.00614.57
7.3.10.0070.00814.66
7.3.00.0150.00314.67
7.2.330.0100.00716.78
7.2.320.0070.01116.69
7.2.310.0040.01816.79
7.2.300.0160.00316.76
7.2.290.0030.01416.59
7.2.250.0080.01115.00
7.2.240.0120.00915.09
7.2.230.0110.01114.66
7.2.220.0090.01214.96
7.2.210.0160.01015.12
7.2.200.0140.00914.68
7.2.190.0130.00714.96
7.2.180.0110.00714.88
7.2.170.0100.00715.06
7.2.160.0170.01315.04
7.2.150.0140.01015.05
7.2.140.0280.00415.11
7.2.130.0170.00914.91
7.2.120.0160.00915.07
7.2.110.0210.00615.04
7.2.100.0170.00815.09
7.2.90.0160.01215.10
7.2.80.0130.01015.19
7.2.70.0180.00515.92
7.2.60.0170.00516.00
7.2.50.0140.00915.97
7.2.40.0140.00716.04
7.2.30.0120.01015.97
7.2.20.0430.01115.90
7.2.10.0260.00115.90
7.2.00.0120.00815.78
7.1.330.0040.01113.60
7.1.320.0150.00513.88
7.1.310.0090.01413.92
7.1.300.0060.01213.82
7.1.290.0070.01313.71
7.1.280.0090.01013.82
7.1.270.0120.00413.69
7.1.260.0150.00113.80
7.1.250.0160.00513.86
7.1.240.0170.00613.84
7.1.230.0190.00913.67
7.1.220.0230.00913.95
7.1.210.0140.01013.82
7.1.200.0150.00914.87
7.1.190.0170.00714.82
7.1.180.0100.01214.89
7.1.170.0120.00814.83
7.1.160.0050.01614.77
7.1.150.0150.00514.68
7.1.140.0160.00614.86
7.1.130.0150.00614.75
7.1.120.0170.00814.86
7.1.110.0090.01214.74
7.1.100.0140.00814.69
7.1.90.0120.00814.86
7.1.80.0110.00814.78
7.1.70.0120.01114.77
7.1.60.0160.00614.66
7.1.50.0190.00414.84
7.1.40.0170.00814.81
7.1.30.0140.00814.62
7.1.20.0100.01214.75
7.1.10.0140.00713.79
7.1.00.0110.01114.75
7.0.330.0150.00713.46
7.0.320.0100.01213.40
7.0.310.0160.00714.35
7.0.300.0140.00914.39
7.0.290.0100.00914.51
7.0.280.0110.00714.36
7.0.270.0110.01014.35
7.0.260.0120.01014.51
7.0.250.0100.00914.48
7.0.240.0130.00614.49
7.0.230.0130.00614.41
7.0.220.0090.01014.44
7.0.210.0120.00714.42
7.0.200.0120.01214.50
7.0.190.0100.01214.33
7.0.180.0140.00714.20
7.0.170.0190.00414.43
7.0.160.0110.00814.49
7.0.150.0200.00914.45
7.0.140.0130.00714.33
7.0.130.0150.00914.17
7.0.120.0100.01014.35
7.0.110.0140.00614.45
7.0.100.0140.00514.28
7.0.90.0130.00614.57
7.0.80.0180.01114.55
7.0.70.0130.00714.47
7.0.60.0160.01113.67
7.0.50.0190.00214.36
7.0.40.0130.00714.37
7.0.30.0090.01114.30
7.0.20.0150.00614.48
7.0.10.0170.00514.43
7.0.00.0140.00814.42
5.6.400.0150.01114.21
5.6.390.0110.02014.55
5.6.380.0110.00814.39
5.6.370.0100.01014.29
5.6.360.0150.00714.34
5.6.350.0130.00814.44
5.6.340.0160.00514.30
5.6.330.0160.00914.17
5.6.320.0090.01114.49
5.6.310.0070.01614.51
5.6.300.0150.00714.38
5.6.290.0080.01214.26
5.6.280.0130.00814.41
5.6.270.0100.01014.18
5.6.260.0170.00214.40
5.6.250.0130.00814.25
5.6.240.0170.00114.22
5.6.230.0160.00714.29
5.6.220.0090.01014.24
5.6.210.0140.00514.46
5.6.200.0110.01214.41
5.6.190.0120.00714.38
5.6.180.0180.00514.28
5.6.170.0150.00614.42
5.6.160.0130.00914.44
5.6.150.0160.00614.40
5.6.140.0130.00714.26
5.6.130.0130.00714.30
5.6.120.0150.00614.37
5.6.110.0110.01114.24
5.6.100.0110.00714.41
5.6.90.0180.00314.35
5.6.80.0180.00414.31
5.6.70.0130.00614.24
5.6.60.0160.00814.36
5.6.50.0150.00814.37
5.6.40.0150.00714.32
5.6.30.0110.01114.40
5.6.20.0130.00514.39
5.6.10.0120.01114.30
5.6.00.0180.00714.29
5.5.380.0160.00514.36
5.5.370.0110.01014.30
5.5.360.0110.01114.27
5.5.350.0090.01114.35
5.5.340.0080.01014.13
5.5.330.0110.01114.13
5.5.320.0150.00614.46
5.5.310.0160.00414.37
5.5.300.0110.00914.02
5.5.290.0170.00314.30
5.5.280.0170.00414.24
5.5.270.0160.00614.19
5.5.260.0110.01014.03
5.5.250.0170.00814.26
5.5.240.0130.00814.33
5.5.230.0140.00914.06
5.5.220.0150.01014.41
5.5.210.0170.00214.23
5.5.200.0170.00314.32
5.5.190.0130.00714.18
5.5.180.0140.00514.23
5.5.170.0020.02214.14
5.5.160.0140.01114.14
5.5.150.0140.00714.47
5.5.140.0080.01514.28
5.5.130.0140.01014.28
5.5.120.0140.00914.28
5.5.110.0130.00914.28
5.5.100.0110.01014.20
5.5.90.0130.00914.00
5.5.80.0140.00714.13
5.5.70.0160.00614.27
5.5.60.0090.01114.17
5.5.50.0120.00814.25
5.5.40.0100.00914.28
5.5.30.0090.01014.11
5.5.20.0090.00913.97
5.5.10.0140.00514.32
5.5.00.0140.00714.15
5.4.450.0060.00912.70
5.4.440.0110.00612.70
5.4.430.0060.00812.70
5.4.420.0160.00212.70
5.4.410.0090.00812.70
5.4.400.0090.00612.70
5.4.390.0070.00812.70
5.4.380.0110.00812.70
5.4.370.0130.00612.70
5.4.360.0100.00612.70
5.4.350.0060.00812.70
5.4.340.0070.00912.70
5.4.330.0130.00312.70
5.4.320.0100.00712.70
5.4.310.0070.00812.70
5.4.300.0090.00912.70
5.4.290.0090.00612.70
5.4.280.0060.01012.70
5.4.270.0120.00312.70
5.4.260.0090.00712.70
5.4.250.0140.00312.70
5.4.240.0070.01012.70
5.4.230.0130.00412.70
5.4.220.0170.00212.70
5.4.210.0090.00712.70
5.4.200.0090.00712.70
5.4.190.0100.00512.70
5.4.180.0100.00612.70
5.4.170.0060.00812.70
5.4.160.0080.00712.70
5.4.150.0080.00712.70
5.4.140.0090.00912.70
5.4.130.0120.00312.70
5.4.120.0110.00512.70
5.4.110.0070.00812.70
5.4.100.0070.00912.70
5.4.90.0100.00412.70
5.4.80.0120.00512.70
5.4.70.0080.00612.70
5.4.60.0030.01112.70
5.4.50.0060.00812.70
5.4.40.0070.00712.70
5.4.30.0080.00612.70
5.4.20.0100.00512.70
5.4.10.0110.00312.70
5.4.00.0100.00812.70
5.3.290.0120.00612.70
5.3.280.0090.00412.70
5.3.270.0170.01112.70
5.3.260.0090.00412.70
5.3.250.0090.00712.70
5.3.240.0100.00512.70
5.3.230.0080.00812.70
5.3.220.0110.00412.70
5.3.210.0100.00312.70
5.3.200.0080.00612.70
5.3.190.0040.01112.70
5.3.180.0100.00612.70
5.3.170.0080.00512.70
5.3.160.0110.00412.70
5.3.150.0090.00712.70
5.3.140.0100.00412.70
5.3.130.0110.00312.70
5.3.120.0090.00612.70
5.3.110.0110.00212.70
5.3.100.0090.00712.70
5.3.90.0090.00712.70
5.3.80.0090.00512.70
5.3.70.0060.00712.70
5.3.60.0130.00012.70
5.3.50.0110.00412.70
5.3.40.0100.00412.70
5.3.30.0130.00112.70
5.3.20.0100.00512.70
5.3.10.0100.00512.70
5.3.00.0100.00512.70
5.2.170.0110.00312.70
5.2.160.0070.00512.70
5.2.150.0080.00312.70
5.2.140.0110.00112.70
5.2.130.0040.00912.70
5.2.120.0090.00412.70
5.2.110.0100.00412.70
5.2.100.0050.00812.70
5.2.90.0090.00412.70
5.2.80.0030.00812.70
5.2.70.0120.00712.70
5.2.60.0110.00212.70
5.2.50.0090.00412.70
5.2.40.0110.00312.70
5.2.30.0130.00712.70
5.2.20.0100.00312.70
5.2.10.0100.00312.70
5.2.00.0080.00312.70
5.1.60.0070.00512.70
5.1.50.0070.00512.70
5.1.40.0090.00312.70
5.1.30.0040.00712.70
5.1.20.0070.00412.70
5.1.10.0030.00812.70
5.1.00.0060.00312.70
5.0.50.0030.00612.70
5.0.40.0050.00412.70
5.0.30.0090.00012.70
5.0.20.0060.00312.70
5.0.10.0040.00512.70
5.0.00.0040.00612.70
4.4.90.0040.00412.70
4.4.80.0050.00312.70
4.4.70.0030.00412.70
4.4.60.0040.00312.70
4.4.50.0030.00312.70
4.4.40.0040.00412.70
4.4.30.0040.00312.70
4.4.20.0060.00312.70
4.4.10.0070.00012.70
4.4.00.0050.00312.70
4.3.110.0040.00312.70
4.3.100.0020.00612.70
4.3.90.0000.00812.70
4.3.80.0020.00512.70
4.3.70.0080.00012.70
4.3.60.0050.00312.70
4.3.50.0020.00612.70
4.3.40.0050.00212.70
4.3.30.0020.00512.70
4.3.20.0020.00412.70
4.3.10.0070.00012.70
4.3.00.0020.00412.70

preferences:
29.21 ms | 403 KiB | 5 Q