3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list1 = new \SplDoublyLinkedList(); $list1->push(1); $list1->push(2); $list2 = clone $list1; $list2->push(3); $list2->push(4); var_export(iterator_to_array($list1)); print "\n"; var_export(iterator_to_array($list2)); print "\n";

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.0150.00016.73
8.3.120.0080.00819.02
8.3.110.0090.00020.94
8.3.100.0030.00624.06
8.3.90.0060.00326.77
8.3.80.0040.00418.18
8.3.70.0090.00616.61
8.3.60.0090.00918.30
8.3.50.0200.01021.21
8.3.40.0130.00718.70
8.3.30.0030.01018.62
8.3.20.0070.00320.25
8.3.10.0030.00521.88
8.3.00.0030.00619.13
8.2.250.0080.00016.66
8.2.240.0030.00617.39
8.2.230.0110.00422.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0040.00418.41
8.2.190.0060.00916.58
8.2.180.0150.00618.40
8.2.170.0070.00722.96
8.2.160.0100.00319.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00720.52
8.2.120.0000.00826.35
8.2.110.0030.00619.27
8.2.100.0080.00417.91
8.2.90.0030.00617.84
8.2.80.0030.00619.15
8.2.70.0000.01217.38
8.2.60.0030.00518.09
8.2.50.0080.00018.10
8.2.40.0030.00620.64
8.2.30.0090.00019.20
8.2.20.0080.00017.96
8.2.10.0000.00818.06
8.2.00.0070.00018.09
8.1.300.0040.00416.76
8.1.290.0000.00918.88
8.1.280.0040.01125.92
8.1.270.0000.00822.06
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00420.94
8.1.230.0030.01023.86
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00717.22
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0080.00018.58
8.1.160.0050.00218.88
8.1.150.0000.00720.09
8.1.140.0040.00419.52
8.1.130.0000.00718.93
8.1.120.0040.00417.30
8.1.110.0040.00417.29
8.1.100.0040.00317.22
8.1.90.0040.00417.43
8.1.80.0000.00717.29
8.1.70.0000.00717.29
8.1.60.0000.00717.48
8.1.50.0000.00817.40
8.1.40.0000.00917.50
8.1.30.0000.00817.70
8.1.20.0030.00517.50
8.1.10.0000.00817.54
8.1.00.0000.00817.54
8.0.300.0000.00720.02
8.0.290.0000.00716.63
8.0.280.0000.00818.37
8.0.270.0070.00017.23
8.0.260.0030.00318.86
8.0.250.0000.00816.79
8.0.240.0070.00016.85
8.0.230.0030.00316.86
8.0.220.0030.00316.85
8.0.210.0040.00416.83
8.0.200.0060.00016.85
8.0.190.0090.00216.88
8.0.180.0070.00016.81
8.0.170.0040.00416.86
8.0.160.0070.00016.90
8.0.150.0000.00716.74
8.0.140.0000.00716.80
8.0.130.0030.00313.21
8.0.120.0040.00416.70
8.0.110.0040.00416.70
8.0.100.0000.00716.82
8.0.90.0070.00016.73
8.0.80.0070.01016.84
8.0.70.0000.00816.83
8.0.60.0040.00416.79
8.0.50.0040.00416.68
8.0.30.0060.01217.02
8.0.20.0110.00817.40
8.0.10.0040.00416.95
8.0.00.0110.01016.77
7.4.330.0000.00615.55
7.4.320.0000.00716.50
7.4.300.0000.00616.33
7.4.290.0000.00616.33
7.4.280.0080.00016.45
7.4.270.0000.00816.55
7.4.260.0000.00716.36
7.4.250.0000.00716.50
7.4.240.0030.00316.48
7.4.230.0040.00416.43
7.4.220.0070.01116.63
7.4.210.0090.01216.63
7.4.200.0000.00716.65
7.4.160.0080.00816.40
7.4.150.0030.01317.40
7.4.140.0070.01617.86
7.4.130.0090.01316.24
7.4.120.0100.01116.53
7.4.110.0110.00616.50
7.4.100.0070.01116.41
7.4.90.0110.00616.52
7.4.80.0140.00719.39
7.4.70.0130.00316.41
7.4.60.0060.01116.52
7.4.50.0090.00916.44
7.4.40.0030.01316.23
7.4.30.0120.00316.49
7.4.00.0090.00614.93
7.3.330.0000.00513.04
7.3.320.0030.00313.10
7.3.310.0040.00416.25
7.3.300.0030.00316.20
7.3.290.0070.01016.24
7.3.280.0100.00716.20
7.3.270.0120.00617.40
7.3.260.0120.00816.34
7.3.240.0130.00616.44
7.3.230.0030.01316.52
7.3.210.0060.00916.41
7.3.200.0140.00316.49
7.3.190.0040.01516.32
7.3.180.0040.01216.36
7.3.170.0040.01216.40
7.3.160.0040.01216.51
7.2.330.0130.01016.82
7.2.320.0130.00616.73
7.2.310.0060.01016.33
7.2.300.0050.01116.68
7.2.290.0060.01216.48
7.2.60.0070.00717.00
7.2.00.0030.01019.42
7.1.200.0030.01315.65
7.1.70.0040.01017.27
7.1.60.0100.00617.22
7.1.50.0110.00416.86
7.1.40.0090.00616.62
7.1.30.0130.00516.61
7.1.20.0240.00016.73
7.1.10.0070.00316.49
7.1.00.0070.00716.48
7.0.200.0100.00316.81
7.0.190.0070.00316.57
7.0.180.0070.00716.18
7.0.170.0120.00616.16
7.0.160.0070.00716.20
7.0.150.0030.01016.19
7.0.140.0040.00816.40
7.0.130.0130.01016.61
7.0.120.0080.00316.55
7.0.110.0090.01616.41
7.0.100.0050.00516.28
7.0.90.0070.00416.26
7.0.80.0080.00316.40
7.0.70.0120.00016.65
7.0.60.0030.01716.14
7.0.50.0080.00416.59
7.0.40.0050.00214.80
7.0.30.0060.00314.80
7.0.20.0050.00214.80
7.0.10.0060.00814.80
7.0.00.0090.00914.80

preferences:
26.36 ms | 403 KiB | 5 Q