3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->id = 2; $b = new stdClass; $b->id = 2; $case1 = array_unique([$a, $b], SORT_REGULAR); $storage = new SplObjectStorage(); $storage->attach($a); $storage->attach($b); $case2 = iterator_to_array($storage); var_dump($case1, $case2);

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.4.10.0100.00617.46
8.3.140.0040.01117.00
8.3.130.0040.00418.48
8.3.120.0100.00619.04
8.3.110.0090.00020.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0110.00018.30
8.3.70.0100.01016.63
8.3.60.0130.00616.63
8.3.50.0120.00721.11
8.3.40.0070.00718.69
8.3.30.0080.00619.04
8.3.20.0040.00420.20
8.3.10.0050.00321.76
8.3.00.0030.00617.63
8.2.250.0000.00817.01
8.2.240.0090.00017.17
8.2.230.0030.00522.58
8.2.220.0060.00337.54
8.2.210.0060.00326.77
8.2.200.0060.00316.75
8.2.190.0070.00716.58
8.2.180.0120.00916.63
8.2.170.0110.00418.96
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.01524.66
8.2.130.0040.00426.16
8.2.120.0080.00021.17
8.2.110.0000.01122.08
8.2.100.0040.00717.78
8.2.90.0050.00319.22
8.2.80.0050.00317.97
8.2.70.0080.00017.93
8.2.60.0040.00718.03
8.2.50.0060.00318.07
8.2.40.0000.00820.07
8.2.30.0000.00818.06
8.2.20.0080.00017.77
8.2.10.0040.00418.14
8.2.00.0040.00417.94
8.1.300.0090.00019.59
8.1.290.0060.00330.84
8.1.280.0140.00025.92
8.1.270.0110.00420.39
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0060.00323.85
8.1.230.0120.00019.12
8.1.220.0090.00017.74
8.1.210.0000.00918.77
8.1.200.0040.00417.35
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0030.00718.65
8.1.160.0000.00921.95
8.1.150.0000.00718.77
8.1.140.0030.00617.43
8.1.130.0000.00717.77
8.1.120.0040.00417.47
8.1.110.0040.00417.51
8.1.100.0060.00317.46
8.1.90.0000.00717.34
8.1.80.0070.00017.35
8.1.70.0000.00717.46
8.1.60.0060.00317.61
8.1.50.0000.00817.52
8.1.40.0030.00517.54
8.1.30.0000.00817.68
8.1.20.0000.00817.69
8.1.10.0080.00017.63
8.1.00.0040.00417.54
8.0.300.0000.00719.70
8.0.290.0040.00416.75
8.0.280.0000.00718.54
8.0.270.0050.00216.84
8.0.260.0040.00417.17
8.0.250.0030.00316.86
8.0.240.0030.00716.96
8.0.230.0030.00316.90
8.0.220.0000.00716.83
8.0.210.0030.00516.75
8.0.200.0030.00316.98
8.0.190.0030.00616.98
8.0.180.0050.00316.89
8.0.170.0000.00816.99
8.0.160.0000.00816.86
8.0.150.0000.00716.94
8.0.140.0070.00016.71
8.0.130.0030.00313.31
8.0.120.0030.00516.85
8.0.110.0000.00716.80
8.0.100.0030.00516.77
8.0.90.0030.00516.77
8.0.80.0060.01616.94
8.0.70.0040.00416.73
8.0.60.0080.00016.94
8.0.50.0040.00416.90
8.0.30.0070.01117.16
8.0.20.0110.00917.40
8.0.10.0040.00417.02
8.0.00.0110.00916.82
7.4.330.0030.00315.13
7.4.320.0030.00316.61
7.4.300.0030.00316.52
7.4.290.0040.00416.53
7.4.280.0040.00416.51
7.4.270.0030.00316.47
7.4.260.0000.00716.57
7.4.250.0050.00316.60
7.4.240.0020.00516.51
7.4.230.0000.00716.51
7.4.220.0110.00716.54
7.4.210.0070.01016.68
7.4.200.0020.00516.68
7.4.160.0170.00016.55
7.4.150.0070.01517.40
7.4.140.0160.00817.86
7.4.130.0030.01616.59
7.4.120.0120.00716.60
7.4.110.0060.01216.62
7.4.100.0150.00416.46
7.4.90.0100.00716.40
7.4.80.0120.00419.39
7.4.70.0100.00716.58
7.4.60.0130.00316.50
7.4.50.0000.00816.35
7.4.40.0150.00316.61
7.4.30.0030.01916.49
7.4.20.0100.00716.50
7.4.10.0070.00716.27
7.4.00.0080.00815.87
7.3.330.0000.00513.20
7.3.320.0000.00613.06
7.3.310.0040.00416.34
7.3.300.0030.00316.02
7.3.290.0090.00916.31
7.3.280.0080.00916.26
7.3.270.0130.00717.40
7.3.260.0130.00316.66
7.3.250.0080.01016.26
7.3.240.0070.01116.36
7.3.230.0120.00716.39
7.3.210.0060.01016.38
7.3.200.0130.00416.19
7.3.190.0120.00416.24
7.3.180.0120.00316.37
7.3.170.0140.00316.30
7.3.160.0090.00916.54
7.3.150.0160.00016.14
7.3.140.0030.01316.35
7.3.130.0000.01516.21
7.3.120.0090.00616.32
7.3.110.0130.00316.30
7.3.100.0060.00916.32
7.3.90.0090.00616.28
7.3.80.0120.00316.27
7.3.70.0120.00416.41
7.3.60.0130.00316.29
7.3.50.0030.01316.27
7.3.40.0090.00616.12
7.3.30.0110.00416.39
7.3.20.0030.01516.36
7.3.10.0100.01016.07
7.3.00.0130.00316.26
7.2.330.0030.01316.37
7.2.320.0060.01216.64
7.2.310.0090.00916.50
7.2.300.0090.00916.72
7.2.290.0070.01416.44
7.2.280.0070.01116.63
7.2.270.0060.00916.64
7.2.260.0150.00316.39
7.2.250.0080.00816.70
7.2.240.0060.00916.66
7.2.230.0100.00716.22
7.2.220.0060.00916.68
7.2.210.0060.01016.52
7.2.200.0130.00316.31
7.2.190.0080.00816.35
7.2.180.0090.00616.54
7.2.170.0090.01316.34
7.2.160.0130.00316.47
7.2.150.0090.00816.39
7.2.140.0090.01216.41
7.2.130.0080.01016.54
7.2.120.0030.01616.52
7.2.110.0140.00916.60
7.2.100.0070.01016.50
7.2.90.0060.01816.46
7.2.80.0120.01216.42
7.2.70.0070.01116.25
7.2.60.0110.00516.77
7.2.50.0140.01016.41
7.2.40.0150.00416.41
7.2.30.0030.01516.70
7.2.20.0090.01616.45
7.2.10.0070.01016.41
7.2.00.0070.01017.91
7.1.330.0080.00815.31
7.1.320.0070.01315.54
7.1.310.0120.00315.45
7.1.300.0040.01115.38
7.1.290.0000.01615.29
7.1.280.0100.00715.50
7.1.270.0060.00915.36
7.1.260.0070.01115.37
7.1.250.0130.00715.41
7.1.240.0070.01315.44
7.1.230.0060.01215.33
7.1.220.0060.00915.45
7.1.210.0160.01315.48
7.1.200.0080.00715.63
7.1.190.0070.01015.54
7.1.180.0090.00815.64
7.1.170.0090.00915.44
7.1.160.0120.00815.52
7.1.150.0040.01215.41
7.1.140.0060.01015.50
7.1.130.0080.00715.40
7.1.120.0150.00615.53
7.1.110.0030.01315.55
7.1.100.0080.01016.80
7.1.90.0120.00615.50
7.1.80.0130.00315.54
7.1.70.0050.00816.15
7.1.60.0120.00917.51
7.1.50.0150.00825.12
7.1.40.0090.00615.50
7.1.30.0030.01615.51
7.1.20.0100.01015.56
7.1.10.0100.00515.51
7.1.00.0080.04318.93
7.0.330.0150.01014.79
7.0.320.0130.00714.95
7.0.310.0230.00715.16
7.0.300.0220.00615.13
7.0.290.0130.00914.91
7.0.280.0150.01314.99
7.0.270.0290.00614.90
7.0.260.0240.01015.29
7.0.250.0350.00015.40
7.0.240.0270.00615.31
7.0.230.0150.01214.96
7.0.220.0190.01115.29
7.0.210.0260.00615.09
7.0.200.0090.01016.04
7.0.190.0220.00615.00
7.0.180.0210.00915.11
7.0.170.0240.00815.16
7.0.160.0280.00715.42
7.0.150.0180.01315.18
7.0.140.0250.00815.20
7.0.130.0230.01115.39
7.0.120.0140.01815.26
7.0.110.0360.00315.29
7.0.100.0340.00315.21
7.0.90.0250.00915.25
7.0.80.0250.01115.25
7.0.70.0150.01115.21
7.0.60.0250.01717.58
7.0.50.0180.04516.56
7.0.40.0150.02617.67
7.0.30.0180.03417.74
7.0.20.0200.02717.57
7.0.10.0180.05217.72
7.0.00.0180.02317.78
5.6.400.0180.00415.64
5.6.390.0110.01515.91
5.6.380.0120.01215.41
5.6.370.0170.01115.91
5.6.360.0180.00715.83
5.6.350.0150.01115.66
5.6.340.0190.00815.38
5.6.330.0160.01315.73
5.6.320.0220.01116.13
5.6.310.0190.01015.98
5.6.300.0270.00916.00
5.6.290.0310.00716.01
5.6.280.0160.04118.57
5.6.270.0290.00916.07
5.6.260.0310.01116.00
5.6.250.0220.01115.92
5.6.240.0180.01715.90
5.6.230.0240.01315.90
5.6.220.0220.02316.05
5.6.210.0210.04018.20
5.6.200.0160.03717.11
5.6.190.0160.02418.24
5.6.180.0330.04018.14
5.6.170.0300.03318.21
5.6.160.0100.03418.02
5.6.150.0100.04417.11
5.6.140.0090.03917.06
5.6.130.0160.04516.96
5.6.120.0110.04818.37
5.6.110.0180.04118.36
5.6.100.0160.04518.41
5.6.90.0100.04918.34
5.6.80.0060.02817.88
5.6.70.0170.01115.72
5.6.60.0120.01215.73
5.6.50.0140.01015.73
5.6.40.0160.00715.64
5.6.30.0110.01115.72
5.6.20.0160.00615.52
5.6.10.0070.01715.54
5.6.00.0080.01315.57
5.5.380.0230.01115.95
5.5.370.0190.01615.85
5.5.360.0240.01015.89
5.5.350.0130.04817.95
5.5.340.0070.04616.81
5.5.330.0110.04818.08
5.5.320.0090.05117.96
5.5.310.0190.02317.94
5.5.300.0110.04116.77
5.5.290.0100.04516.80
5.5.280.0160.04418.20
5.5.270.0130.02518.42
5.5.260.0130.04818.22
5.5.250.0060.04418.13
5.5.240.0100.04217.91
5.5.230.0150.01215.49
5.5.220.0210.00915.49
5.5.210.0150.00615.77
5.5.200.0140.01015.74
5.5.190.0130.01315.46
5.5.180.0240.00415.41
5.5.170.0060.02015.62
5.5.160.0190.00715.54
5.5.150.0190.00515.92
5.5.140.0280.00815.68
5.5.130.0240.00815.71
5.5.120.0220.00715.84
5.5.110.0250.01116.04
5.5.100.0210.00815.78
5.5.90.0190.01715.69
5.5.80.0150.01515.71
5.5.70.0210.01015.69
5.5.60.0180.01215.86
5.5.50.0300.00815.73
5.5.40.0150.01515.73
5.5.30.0050.02015.48
5.5.20.0150.01115.71
5.5.10.0110.01115.69
5.5.00.0190.00615.51
5.4.450.0180.04215.95
5.4.440.0370.03415.76
5.4.430.0190.02616.03
5.4.420.0100.03416.04
5.4.410.0100.03715.78
5.4.400.0080.04015.81
5.4.390.0220.02215.66
5.4.380.0080.04515.56
5.4.370.0130.02915.67
5.4.360.0120.03415.82
5.4.350.0060.03515.74
5.4.340.0140.02815.78
5.4.330.0070.01012.17
5.4.320.0180.03015.52
5.4.310.0150.03115.49
5.4.300.0160.03015.61
5.4.290.0120.03315.84
5.4.280.0140.03215.68
5.4.270.0110.03015.81
5.4.260.0110.03015.73
5.4.250.0100.03515.79
5.4.240.0090.03115.59
5.4.230.0160.03315.78
5.4.220.0130.03215.92
5.4.210.0150.02915.72
5.4.200.0110.03414.71
5.4.190.0150.03115.89
5.4.180.0150.03115.84
5.4.170.0150.02515.70
5.4.160.0060.03415.62
5.4.150.0100.03115.74
5.4.140.0170.02514.66
5.4.130.0080.03214.45
5.4.120.0130.02514.52
5.4.110.0070.03414.34
5.4.100.0090.03114.44
5.4.90.0110.03014.19
5.4.80.0120.02714.43
5.4.70.0180.03314.30
5.4.60.0110.02814.34
5.4.50.0080.03614.55
5.4.40.0170.02814.35
5.4.30.0080.03114.36
5.4.20.0150.02914.42
5.4.10.0150.02814.34
5.4.00.0120.02813.95
5.3.290.0030.06014.54
5.3.280.0130.05014.44
5.3.270.0230.05714.47
5.3.260.0230.05014.39
5.3.250.0030.06014.50
5.3.240.0130.06714.59
5.3.230.0130.05014.58
5.3.220.0130.04714.47
5.3.210.0170.04314.59
5.3.200.0170.05714.58
5.3.190.0130.05014.36
5.3.180.0200.04014.46
5.3.170.0070.05314.39
5.3.160.0200.04014.57
5.3.150.0170.04314.44
5.3.140.0070.05014.48
5.3.130.0130.05714.48
5.3.120.0200.06314.39
5.3.110.0030.06014.44
5.3.100.0070.05013.88
5.3.90.0100.04713.97
5.3.80.0100.05013.87
5.3.70.0130.04314.02
5.3.60.0030.05713.88
5.3.50.0130.04713.88
5.3.40.0070.05013.98
5.3.30.0070.05013.77
5.3.20.0070.05013.54
5.3.10.0070.05013.60
5.3.00.0130.04313.57
5.2.170.0170.03710.98
5.2.160.0070.04011.09
5.2.150.0170.03011.14
5.2.140.0070.04311.15
5.2.130.0070.04011.07
5.2.120.0030.06011.00
5.2.110.0100.03710.99
5.2.100.0100.05011.02
5.2.90.0100.04311.21
5.2.80.0100.03710.92
5.2.70.0100.05011.04
5.2.60.0100.05311.05
5.2.50.0070.04311.01
5.2.40.0170.03310.89
5.2.30.0170.04710.91
5.2.20.0000.06010.79
5.2.10.0100.04710.91
5.2.00.0100.05010.61
5.1.60.0100.0309.91
5.1.50.0100.03010.04
5.1.40.0030.03710.06
5.1.30.0100.04310.32
5.1.20.0030.04010.28
5.1.10.0070.04010.13
5.1.00.0070.0439.96
5.0.50.0000.0308.62
5.0.40.0030.0308.32
5.0.30.0000.0478.20
5.0.20.0000.0308.04
5.0.10.0070.0278.18
5.0.00.0030.0478.07
4.4.90.0000.0277.02
4.4.80.0170.0237.02
4.4.70.0100.0237.02
4.4.60.0070.0177.02
4.4.50.0030.0207.02
4.4.40.0030.0377.02
4.4.30.0030.0237.02
4.4.20.0070.0177.02
4.4.10.0070.0277.02
4.4.00.0000.0477.02
4.3.110.0070.0207.02
4.3.100.0000.0307.02
4.3.90.0030.0207.02
4.3.80.0070.0307.02
4.3.70.0030.0207.02
4.3.60.0030.0207.02
4.3.50.0000.0277.02
4.3.40.0030.0337.02
4.3.30.0000.0237.02
4.3.20.0030.0207.02
4.3.10.0000.0237.02
4.3.00.0000.0237.33

preferences:
28.5 ms | 403 KiB | 5 Q