3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array("A","B","C","D"); $childList = $list; foreach ( $childList as $key => &$var ) { cleanChild($childList, $list, $var, $key); $childList = $list; } echo "\n"; function cleanChild(&$childList, &$list, $var, $key) { if ($key == 'B') { unset($list[$key]); } } ?>

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.0071.99516.38
8.3.50.0171.98417.29
8.3.40.0032.00118.54
8.3.30.0071.99618.63
8.3.20.0071.99618.60
8.3.10.0031.99818.64
8.3.00.0071.99719.14
8.2.180.0101.99216.49
8.2.170.0171.98622.96
8.2.160.0101.99219.50
8.2.150.0031.99924.18
8.2.140.0071.99524.66
8.2.130.0031.99926.16
8.2.120.0032.00020.68
8.2.110.0031.99921.02
8.2.100.0032.00117.78
8.2.90.0201.99621.20
8.2.80.0101.98719.16
8.2.70.0031.99517.49
8.2.60.0002.00118.04
8.2.50.0031.99818.07
8.2.40.0031.99918.03
8.2.30.0071.99518.16
8.2.20.0002.00417.79
8.2.10.0002.00217.82
8.2.00.0101.98717.73
8.1.280.0032.00225.92
8.1.270.0072.00024.66
8.1.260.0002.00326.35
8.1.250.0101.99128.09
8.1.240.0101.99322.01
8.1.230.0331.97217.42
8.1.220.0002.00217.79
8.1.210.0031.99718.88
8.1.200.0031.99817.36
8.1.190.0002.00217.63
8.1.180.0031.99918.10
8.1.170.0071.99618.90
8.1.160.0002.00619.04
8.1.150.0002.00218.75
8.1.140.0071.99617.56
8.1.130.0002.00317.80
8.1.120.0032.00017.48
8.1.110.0071.99517.53
8.1.100.0002.00617.55
8.1.90.0002.00417.50
8.1.80.0071.99517.53
8.1.70.0002.00317.38
8.1.60.0071.99517.56
8.1.50.0032.00017.39
8.1.40.0071.99517.48
8.1.30.0031.99817.66
8.1.20.0131.98817.62
8.1.10.0002.00317.57
8.1.00.0032.00017.42
8.0.300.0032.00019.77
8.0.290.0031.99916.58
8.0.280.0002.00218.46
8.0.270.0002.00717.11
8.0.260.0002.00316.64
8.0.250.0032.00016.83
8.0.240.0071.99416.87
8.0.230.0071.99516.91
8.0.220.0031.99916.80
8.0.210.0002.00416.72
8.0.200.0101.99516.82
8.0.190.0002.00316.88
8.0.180.0032.00016.82
8.0.170.0071.99716.72
8.0.160.0031.99816.73
8.0.150.0031.99816.86
8.0.140.0071.99416.67
8.0.130.0002.00213.39
8.0.120.0032.00116.68
8.0.110.0071.99516.77
8.0.100.0002.00216.74
8.0.90.0002.00316.64
8.0.80.0131.98916.72
8.0.70.0171.99316.72
8.0.60.0101.99116.63
8.0.50.0071.99416.79
8.0.30.0131.97417.13
8.0.20.0161.98716.93
8.0.10.0071.99416.88
8.0.00.0081.99516.71
7.4.330.0031.99712.89
7.4.320.0031.99816.39
7.4.300.0071.99516.48
7.4.290.0032.00016.27
7.4.280.0002.00416.52
7.4.270.0031.99516.41
7.4.260.0031.99813.18
7.4.250.0002.00216.27
7.4.240.0032.00016.42
7.4.230.0002.00416.22
7.4.220.0071.99416.43
7.4.210.0071.99416.42
7.4.200.0101.99416.38
7.4.190.0002.00316.62
7.4.160.0132.00316.51
7.4.150.0131.99516.43
7.4.140.0071.99616.52
7.4.130.0101.98616.42
7.4.120.0192.00016.24
7.4.110.0302.41716.40
7.4.100.0162.32816.55
7.4.90.0232.39716.49
7.4.80.0132.40219.39
7.4.70.0222.39316.44
7.4.60.0132.46716.32
7.4.50.0032.49416.52
7.4.40.0132.48516.56
7.4.30.0102.45216.56
7.3.330.0002.00213.33
7.3.320.0032.00013.38
7.3.310.0031.99916.30
7.3.300.0031.99916.25
7.3.290.0261.97416.30
7.3.280.0121.99016.26
7.3.270.0101.99916.36
7.3.260.0191.99116.46
7.3.250.0301.95216.37
7.3.240.0091.94716.41
7.3.230.0172.43016.39
7.3.210.0002.44116.30
7.3.200.0132.45116.58
7.3.190.0202.42416.41
7.3.180.0102.43816.51
7.3.170.0252.16116.09
7.3.160.0132.46716.12
7.2.330.0162.45716.14
7.2.320.0132.45316.47
7.2.310.0262.40216.63
7.2.300.0102.44116.63
7.2.290.0162.46716.62
5.4.190.0101.62318.83
5.4.180.0171.87318.97
5.4.170.0031.71718.88
5.4.160.0131.52719.17
5.4.150.0401.95718.83
5.4.140.0331.53016.34
5.4.130.0171.63716.53
5.4.120.0271.92016.45
5.4.110.0431.69316.25
5.4.100.0271.88016.55
5.4.90.0231.69316.27
5.4.80.0471.73016.51
5.4.70.0231.64716.48
5.4.60.0201.95016.27
5.4.50.0071.91716.46
5.4.40.0331.63716.46
5.4.30.0231.56716.44
5.4.20.0301.64016.47
5.4.10.0571.59016.52
5.4.00.0131.43015.89
5.3.270.0331.61314.47
5.3.260.0132.16314.45
5.3.250.0201.63314.45
5.3.240.0431.69014.48
5.3.230.0201.80714.44
5.3.220.0171.62014.54
5.3.210.0201.83714.41
5.3.200.0271.64014.45
5.3.190.0071.85714.39
5.3.180.0201.59314.41
5.3.170.0431.72014.39
5.3.160.0371.71714.37
5.3.150.0201.45714.34
5.3.140.0301.59314.44
5.3.130.0301.76014.32
5.3.120.0201.90314.38
5.3.110.0101.66714.39
5.3.100.0331.65713.85
5.3.90.0201.61713.86
5.3.80.0131.53313.66
5.3.70.0571.74313.66
5.3.60.0401.61013.75
5.3.50.0071.74313.78
5.3.40.0301.58013.72
5.3.30.0171.77013.71
5.3.20.0231.48713.49
5.3.10.0131.81013.45
5.3.00.0331.92713.45

preferences:
27.92 ms | 401 KiB | 5 Q