3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new SplPriorityQueue(); $a->insert(new stdClass, 3); $a->insert(array(), 2); var_dump($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.0120.00918.55
8.3.50.0090.00522.11
8.3.40.0150.00018.31
8.3.30.0070.00718.95
8.3.20.0040.00420.09
8.3.10.0040.00421.95
8.3.00.0080.00022.47
8.2.180.0110.00716.73
8.2.170.0110.00422.96
8.2.160.0000.01420.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.01026.16
8.2.120.0050.00319.48
8.2.110.0090.00022.17
8.2.100.0090.00319.45
8.2.90.0000.00719.11
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0040.00817.80
8.2.50.0080.00018.07
8.2.40.0050.00318.22
8.2.30.0050.00317.94
8.2.20.0040.00417.66
8.2.10.0080.00019.45
8.2.00.0080.00017.62
8.1.280.0110.00425.92
8.1.270.0120.00322.01
8.1.260.0090.00026.35
8.1.250.0090.00028.09
8.1.240.0060.00323.91
8.1.230.0030.00918.89
8.1.220.0030.00517.79
8.1.210.0060.00318.77
8.1.200.0060.00317.36
8.1.190.0050.00317.51
8.1.180.0050.00318.10
8.1.170.0030.00718.46
8.1.160.0030.00521.92
8.1.150.0040.00418.53
8.1.140.0040.00417.48
8.1.130.0000.00817.70
8.1.120.0000.00817.38
8.1.110.0030.00617.35
8.1.100.0000.00717.36
8.1.90.0070.00017.39
8.1.80.0040.00417.41
8.1.70.0000.00717.42
8.1.60.0090.00017.60
8.1.50.0040.00417.45
8.1.40.0080.00017.54
8.1.30.0040.00417.65
8.1.20.0030.00617.58
8.1.10.0070.00017.50
8.1.00.0040.00417.31
8.0.300.0030.00518.77
8.0.290.0030.00317.18
8.0.280.0030.00318.38
8.0.270.0030.00317.20
8.0.260.0060.00016.75
8.0.250.0000.00716.85
8.0.240.0000.00816.77
8.0.230.0030.00516.86
8.0.220.0000.00716.78
8.0.210.0030.00316.84
8.0.200.0000.00616.86
8.0.190.0040.00316.77
8.0.180.0040.00416.73
8.0.170.0050.00216.93
8.0.160.0000.00816.86
8.0.150.0000.00816.73
8.0.140.0000.00716.71
8.0.130.0070.00013.36
8.0.120.0030.00516.75
8.0.110.0050.00316.83
8.0.100.0040.00416.88
8.0.90.0000.00716.78
8.0.80.0070.01016.92
8.0.70.0040.00416.93
8.0.60.0000.00716.83
8.0.50.0040.00416.93
8.0.30.0160.00817.11
8.0.20.0070.01317.40
8.0.10.0040.00417.02
8.0.00.0080.01316.75
7.4.330.0050.00015.10
7.4.320.0000.00716.58
7.4.300.0030.00316.61
7.4.290.0070.00016.37
7.4.280.0020.00516.56
7.4.270.0000.00716.53
7.4.260.0040.00416.63
7.4.250.0040.00416.51
7.4.240.0000.00716.63
7.4.230.0050.00316.61
7.4.220.0090.00916.47
7.4.210.0110.00616.51
7.4.200.0080.00016.70
7.4.190.0000.00716.48
7.4.160.0040.01216.39
7.4.150.0040.01917.40
7.4.140.0180.01017.86
7.4.130.0120.00916.46
7.4.120.0020.01616.48
7.4.110.0080.01116.53
7.4.100.0190.00016.29
7.4.90.0070.01116.36
7.4.80.0110.00719.39
7.4.70.0180.00516.46
7.4.60.0080.00816.29
7.4.50.0030.00616.58
7.4.40.0060.01122.77
7.4.30.0170.00016.27
7.4.00.0090.00614.98
7.3.330.0050.00012.95
7.3.320.0000.00513.06
7.3.310.0030.00316.09
7.3.300.0030.00416.10
7.3.290.0030.01716.26
7.3.280.0110.00816.22
7.3.270.0140.00317.40
7.3.260.0090.01516.49
7.3.250.0110.00716.38
7.3.240.0030.01316.32
7.3.230.0090.00916.46
7.3.210.0060.01516.20
7.3.200.0080.01419.39
7.3.190.0100.01016.57
7.3.180.0070.00716.47
7.3.170.0100.00716.27
7.3.160.0130.00316.34
7.3.120.0030.01014.97
7.3.10.0030.00916.55
7.3.00.0080.00416.42
7.2.330.0090.01016.59
7.2.320.0030.02216.34
7.2.310.0100.00716.77
7.2.300.0040.01416.74
7.2.290.0110.00716.83
7.2.130.0030.00916.67
7.2.120.0040.00816.68
7.2.110.0030.01116.61
7.2.100.0040.00716.29
7.2.90.0070.00716.75
7.2.80.0070.00716.37
7.2.70.0030.01016.93
7.2.60.0050.00816.87
7.2.50.0070.00716.88
7.2.40.0070.00716.74
7.2.30.0070.00716.72
7.2.20.0100.00616.72
7.2.10.0000.01316.66
7.2.00.0020.01117.85
7.1.250.0060.00615.61
7.1.200.0040.01115.64
7.1.100.0860.00716.30
7.1.70.0030.00516.77
7.1.60.0110.01419.82
7.1.50.0100.01016.91
7.1.00.0070.08322.33
7.0.200.0150.00816.56
7.0.140.0030.06321.95
7.0.60.0100.07719.95
7.0.50.0070.06717.82
7.0.40.0170.06020.20
7.0.30.0270.04320.11
7.0.20.0370.06320.16
7.0.10.0370.07320.30
7.0.00.0070.08720.29
5.6.280.0030.07321.11
5.6.210.0070.07320.52
5.6.200.0130.08018.16
5.6.190.0100.09020.45
5.6.180.3600.03720.60
5.6.170.0270.06320.49
5.6.160.0070.08720.44
5.6.150.0300.03318.11
5.6.140.0130.06018.17
5.6.130.0030.06718.11
5.6.120.0030.04321.05
5.6.110.0030.07720.98
5.6.100.0070.09020.98
5.6.90.0070.09020.96
5.6.80.0100.07320.25
5.6.70.0300.07020.27
5.5.350.0070.09020.29
5.5.340.0030.05717.96
5.5.330.0100.04020.06
5.5.320.0200.03320.18
5.5.310.0100.07720.27
5.5.300.0070.04017.87
5.5.290.0030.05017.98
5.5.280.0070.08020.96
5.5.270.0100.08020.67
5.5.260.0200.08720.84
5.5.250.0070.05320.70
5.5.240.0070.03720.35
5.4.450.0230.03019.41
5.4.440.0170.03719.50
5.4.430.0100.04319.11
5.4.420.0130.04319.58
5.4.410.0130.04019.36
5.4.400.0170.04319.13
5.4.390.0170.03719.08
5.4.380.0170.04319.28
5.4.370.0200.07019.24
5.4.360.0170.04719.10
5.4.350.0270.06719.09
5.4.340.0200.04319.10
5.4.320.0130.04019.13
5.4.310.0200.07018.80
5.4.300.0100.05019.11
5.4.290.0230.06018.77
5.4.280.0200.07719.13
5.4.270.0200.04019.06
5.4.260.0200.04018.77
5.4.250.0170.06319.24
5.4.240.0200.06019.24
5.4.230.0370.06318.80
5.4.220.0170.05318.91
5.4.210.0270.04019.04
5.4.200.0230.03319.07
5.4.190.0230.03318.80
5.4.180.0270.07019.12
5.4.170.0300.07319.07
5.4.160.0200.05019.04
5.4.150.0270.07719.07
5.4.140.0300.06316.26
5.4.130.0200.07316.34
5.4.120.0200.05316.15
5.4.110.0330.05316.34
5.4.100.0270.06716.34
5.4.90.0230.03316.34
5.4.80.0170.04016.20
5.4.70.0170.06716.41
5.4.60.0270.03716.19
5.4.50.0300.06716.31
5.4.40.0330.05316.43
5.4.30.0300.06716.32
5.4.20.0270.05316.43
5.4.10.0230.04316.40
5.4.00.0230.03315.72
5.3.290.0270.03714.54
5.3.280.0130.04314.53
5.3.270.0230.05314.46
5.3.260.0170.05014.62
5.3.250.0270.02714.45
5.3.240.0000.04014.70
5.3.230.0070.04014.52
5.3.220.0200.03314.55
5.3.210.0170.04714.61
5.3.200.0100.04314.66
5.3.190.0130.04314.43
5.3.180.0170.03714.45
5.3.170.0200.03314.65
5.3.160.0230.03014.66
5.3.150.0170.04714.51
5.3.140.0200.04314.50
5.3.130.0100.04314.59
5.3.120.0130.04014.64
5.3.110.0170.04014.50
5.3.100.0130.04014.08
5.3.90.0170.04013.96
5.3.80.0170.04313.88
5.3.70.0170.04013.97
5.3.60.0170.03713.95
5.3.50.0270.02713.88
5.3.40.0200.03313.78
5.3.30.0200.03313.76
5.3.20.0230.03013.52
5.3.10.0170.03313.61
5.3.00.0130.04013.58
5.2.170.0100.03311.19
5.2.160.0130.03011.09
5.2.150.0170.03011.23
5.2.140.0100.03311.00
5.2.130.0130.03310.96
5.2.120.0230.02010.94
5.2.110.0130.03010.96
5.2.100.0130.03011.04
5.2.90.0170.02711.04
5.2.80.0170.02711.00
5.2.70.0030.03711.14
5.2.60.0000.03011.09
5.2.50.0030.03311.03
5.2.40.0230.03310.90
5.2.30.0830.03010.98
5.2.20.0830.03710.79
5.2.10.0970.02710.72
5.2.00.1070.03010.68
5.1.60.1000.02010.39
5.1.50.1000.02710.39
5.1.40.1100.02710.39
5.1.30.1000.02010.39
5.1.20.1230.03010.39
5.1.10.1000.02710.39
5.1.00.0930.02710.39
5.0.50.0530.02010.39
5.0.40.0500.02010.39
5.0.30.0500.03010.39
5.0.20.0600.02710.39
5.0.10.0530.02010.39
5.0.00.0370.03010.39
4.4.90.0030.01310.39
4.4.80.0000.01710.39
4.4.70.0030.01310.39
4.4.60.0000.01710.39
4.4.50.0070.01310.39
4.4.40.0070.02010.39
4.4.30.0000.01710.39
4.4.20.0100.01310.39
4.4.10.0470.01310.39
4.4.00.0430.02710.39
4.3.110.0470.01310.39
4.3.100.0470.01310.39
4.3.90.0570.01310.39
4.3.80.0470.02310.39
4.3.70.0670.02010.39
4.3.60.0430.01710.39
4.3.50.0600.02710.39
4.3.40.0500.02010.39
4.3.30.0270.02010.39
4.3.20.0230.01310.39
4.3.10.0300.02010.39
4.3.00.0200.01710.39

preferences:
43.29 ms | 401 KiB | 5 Q