3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new SplPriorityQueue(); $a->insert(new stdClass, 3); $a->insert(array(), 2); var_dump((array) $a); var_dump(count($a)); var_dump(iterator_to_array(clone $a)); var_dump(count($a));

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.0110.01118.43
8.3.50.0060.00922.11
8.3.40.0110.00418.59
8.3.30.0110.00419.15
8.3.20.0040.00420.25
8.3.10.0040.00422.05
8.3.00.0080.00022.37
8.2.180.0140.00716.63
8.2.170.0100.00722.96
8.2.160.0070.00720.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0120.00626.16
8.2.120.0080.00019.24
8.2.110.0030.00622.20
8.2.100.0130.00317.53
8.2.90.0000.00719.08
8.2.80.0000.00917.97
8.2.70.0030.00617.38
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0100.00017.79
8.2.30.0000.00718.05
8.2.20.0080.00017.66
8.2.10.0070.00019.42
8.2.00.0000.00817.56
8.1.280.0100.00725.92
8.1.270.0080.00022.05
8.1.260.0090.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00423.84
8.1.230.0040.00719.17
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00717.23
8.1.190.0030.00517.54
8.1.180.0000.00818.10
8.1.170.0050.00318.48
8.1.160.0070.00022.01
8.1.150.0030.00518.52
8.1.140.0040.00417.37
8.1.130.0040.00417.79
8.1.120.0000.00817.36
8.1.110.0070.00017.47
8.1.100.0040.00417.43
8.1.90.0000.00717.33
8.1.80.0000.00717.50
8.1.70.0000.00717.36
8.1.60.0030.00517.63
8.1.50.0000.00717.52
8.1.40.0070.00017.55
8.1.30.0040.00417.59
8.1.20.0030.00617.50
8.1.10.0040.00417.41
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0050.00318.39
8.0.270.0070.00017.07
8.0.260.0000.00816.68
8.0.250.0050.00216.92
8.0.240.0050.00316.93
8.0.230.0000.00716.91
8.0.220.0000.00716.74
8.0.210.0070.00016.77
8.0.200.0000.00616.96
8.0.190.0060.00316.75
8.0.180.0030.00316.89
8.0.170.0070.00016.77
8.0.160.0000.00716.86
8.0.150.0000.00716.86
8.0.140.0040.00416.75
8.0.130.0060.00313.34
8.0.120.0050.00216.86
8.0.110.0030.00516.87
8.0.100.0070.00016.72
8.0.90.0070.00016.92
8.0.80.0200.00016.91
8.0.70.0000.00716.84
8.0.60.0040.00416.68
8.0.50.0040.00416.76
8.0.30.0120.01017.19
8.0.20.0070.01217.40
8.0.10.0000.00716.88
8.0.00.0120.00616.82
7.4.330.0050.00015.13
7.4.320.0000.00616.49
7.4.300.0030.00316.65
7.4.290.0040.00416.61
7.4.280.0070.00016.39
7.4.270.0030.00316.52
7.4.260.0070.00016.49
7.4.250.0050.00316.60
7.4.240.0030.00316.42
7.4.230.0000.00616.68
7.4.220.0070.01016.54
7.4.210.0060.01016.66
7.4.200.0000.00816.67
7.4.190.0030.00316.42
7.4.160.0130.00416.66
7.4.150.0150.01017.40
7.4.140.0100.01017.86
7.4.130.0130.00616.42
7.4.120.0110.00816.47
7.4.110.0080.00816.32
7.4.100.0130.00616.70
7.4.90.0070.01016.46
7.4.80.0060.01319.39
7.4.70.0090.00616.38
7.4.60.0100.00516.38
7.4.50.0030.00616.46
7.4.40.0070.01022.77
7.4.30.0040.01216.43
7.4.00.0110.00414.93
7.3.330.0020.00313.05
7.3.320.0030.00312.96
7.3.310.0040.00416.07
7.3.300.0030.00316.17
7.3.290.0120.00316.21
7.3.280.0090.00816.20
7.3.270.0040.01317.40
7.3.260.0070.01116.50
7.3.250.0100.00716.48
7.3.240.0090.00916.14
7.3.230.0100.00616.39
7.3.210.0040.01616.47
7.3.200.0180.03419.39
7.3.190.0110.00716.33
7.3.180.0040.01416.46
7.3.170.0050.01116.47
7.3.160.0080.00816.31
7.3.120.0030.01014.74
7.2.330.0190.00016.31
7.2.320.0130.01016.52
7.2.310.0140.00416.75
7.2.300.0030.01416.55
7.2.290.0030.01716.36
7.2.00.0070.01119.27
7.1.100.0040.00817.74
7.1.70.0040.00417.29
7.1.60.0110.01519.82
7.1.50.0140.01017.03
7.1.00.0100.07022.52
7.0.200.0060.00616.41
7.0.140.0100.06722.01
7.0.60.0030.08719.78
7.0.50.0030.05017.86
7.0.40.0070.08720.00
7.0.30.0230.09020.09
7.0.20.0170.05320.22
7.0.10.0130.06020.01
7.0.00.0100.08320.17
5.6.280.0070.07721.07
5.6.210.0130.08020.53
5.6.200.0070.04318.20
5.6.190.0030.06720.56
5.6.180.3830.04320.67
5.6.170.0270.07720.54
5.6.160.0170.03320.41
5.6.150.0000.05318.16
5.6.140.0100.08018.22
5.6.130.0000.05018.07
5.6.120.0170.07320.98
5.6.110.0230.07321.11
5.6.100.0100.07721.11
5.6.90.0170.07021.00
5.6.80.0100.07020.40
5.6.70.4530.03320.27
5.5.350.0230.07720.33
5.5.340.0070.06317.92
5.5.330.0130.07020.13
5.5.320.0330.08020.30
5.5.310.0300.04720.32
5.5.300.0100.07317.98
5.5.290.0070.08017.95
5.5.280.0130.05320.76
5.5.270.0070.04320.86
5.5.260.0030.07720.86
5.5.250.0030.08020.70
5.5.240.0230.07320.34
5.4.450.0570.05719.32
5.4.440.0500.06019.38
5.4.430.0100.05719.51
5.4.420.0130.07719.16
5.4.410.0070.05719.15
5.4.400.1730.00018.83
5.4.390.1600.00018.46
5.4.380.0300.05318.49
5.4.370.0230.04718.56
5.4.360.0200.05018.63
5.4.350.0370.03718.69
5.4.340.0130.05718.77
5.4.320.0110.03412.46
5.4.310.0060.05312.45
5.4.300.0060.03612.46
5.4.290.0060.03812.45
5.4.280.0120.03912.35
5.4.270.0130.05018.73
5.4.260.0170.07018.85
5.4.250.0130.06319.00
5.4.240.0170.04718.89
5.4.230.0100.05018.80
5.4.220.0230.05018.88
5.4.210.0070.06018.77
5.4.200.0200.06019.00
5.4.190.0200.05018.63
5.4.180.0070.06318.87
5.4.170.0170.06318.75
5.4.160.0100.05718.83
5.4.150.0130.05718.62
5.4.140.0070.06016.53
5.4.130.0030.05316.38
5.4.120.0070.07716.28
5.4.110.0070.05716.53
5.4.100.0000.06016.32
5.4.90.0130.06716.52
5.4.80.0230.06016.45
5.4.70.0030.05716.45
5.4.60.0130.06716.29
5.4.50.0100.05716.38
5.4.40.0030.07016.37
5.4.30.0170.05716.32
5.4.20.0070.07016.18
5.4.10.0170.06016.36
5.4.00.0000.05715.69
5.3.290.0090.04312.80
5.3.280.0100.07314.59
5.3.270.0030.07314.65
5.3.260.0100.07714.51
5.3.250.0030.06314.62
5.3.240.0130.06714.60
5.3.230.0100.05014.46
5.3.220.0130.05314.72
5.3.210.0070.06014.57
5.3.200.0000.06014.34
5.3.190.0230.04314.26
5.3.180.0100.05714.61
5.3.170.0070.06714.58
5.3.160.0200.04714.61
5.3.150.0070.07314.45
5.3.140.0070.05014.56
5.3.130.0000.05714.55
5.3.120.0170.07314.56
5.3.110.0130.07314.32
5.3.100.0070.07014.06
5.3.90.0100.06714.02
5.3.80.0070.06314.02
5.3.70.0130.06014.17
5.3.60.0100.05713.77
5.3.50.0100.05013.80
5.3.40.0070.05313.95
5.3.30.0200.03713.95
5.3.20.0030.05313.68
5.3.10.0000.05313.66
5.3.00.0170.05313.79
5.2.170.0070.06011.14
5.2.160.0070.05311.02
5.2.150.0070.05311.06
5.2.140.0170.03311.23
5.2.130.0100.03711.01
5.2.120.0030.04710.86
5.2.110.0070.04011.11
5.2.100.0130.04311.03
5.2.90.0000.05711.11
5.2.80.0070.03711.09
5.2.70.0100.05311.10
5.2.60.0130.04011.07
5.2.50.0030.04711.11
5.2.40.0100.03311.09
5.2.30.0100.03710.89
5.2.20.0100.03310.96
5.2.10.0070.05011.02
5.2.00.0100.05010.55
5.1.60.0130.03710.05
5.1.50.0070.0339.95
5.1.40.0100.0339.86
5.1.30.0100.03710.41
5.1.20.0070.04710.50
5.1.10.0030.0339.95
5.1.00.0070.03710.21
5.0.50.0070.0338.47
5.0.40.0030.0308.44
5.0.30.0070.0438.41
5.0.20.0000.0308.30
5.0.10.0100.0308.11
5.0.00.0000.0438.13
4.4.90.0030.0306.66
4.4.80.0030.0206.66
4.4.70.0030.0276.66
4.4.60.0030.0276.66
4.4.50.0070.0176.66
4.4.40.0030.0336.66
4.4.30.0000.0236.66
4.4.20.0030.0306.66
4.4.10.0000.0336.66
4.4.00.0070.0376.66
4.3.110.0070.0236.66
4.3.100.0030.0206.66
4.3.90.0000.0336.66
4.3.80.0070.0406.66
4.3.70.0070.0176.66
4.3.60.0130.0206.66
4.3.50.0130.0136.66
4.3.40.0030.0336.66
4.3.30.0000.0236.66
4.3.20.0000.0276.66
4.3.10.0030.0236.66
4.3.00.0130.0236.43

preferences:
41.82 ms | 401 KiB | 5 Q