3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeClass { protected $someProperty; public function __construct($prop) { $this->someProperty = $prop; } public function getSomeProperty() { return $this->someProperty; } } $arr = array(); $someObject = new SomeClass(3); $arr[] = $someObject; $arr[] = $someObject; $someOtherObject = new SomeClass(4); $arr[] = $someOtherObject; $arr[] = $someOtherObject; $arrFiltered = array_unique($arr);

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.0070.01018.68
8.3.50.0110.00622.04
8.3.40.0110.00418.71
8.3.30.0070.00719.21
8.3.20.0040.00420.34
8.3.10.0040.00421.90
8.3.00.0060.00319.38
8.2.180.0170.00316.50
8.2.170.0120.00322.96
8.2.160.0030.01020.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00222.24
8.2.110.0070.00320.86
8.2.100.0080.00417.91
8.2.90.0030.00617.97
8.2.80.0030.00717.97
8.2.70.0000.00817.75
8.2.60.0040.00418.03
8.2.50.0090.00018.07
8.2.40.0090.00018.22
8.2.30.0040.00418.06
8.2.20.0050.00217.75
8.2.10.0040.00418.09
8.2.00.0060.00317.67
8.1.280.0110.00625.92
8.1.270.0070.00024.02
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00320.82
8.1.230.0060.00620.92
8.1.220.0080.00017.79
8.1.210.0080.00018.89
8.1.200.0030.00617.34
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.84
8.1.160.0000.00818.91
8.1.150.0040.00418.70
8.1.140.0050.00217.39
8.1.130.0040.00417.70
8.1.120.0000.00717.46
8.1.110.0000.00717.30
8.1.100.0000.00717.29
8.1.90.0050.00217.36
8.1.80.0080.00017.34
8.1.70.0000.00817.36
8.1.60.0000.00917.63
8.1.50.0050.00317.54
8.1.40.0080.00017.40
8.1.30.0040.00417.66
8.1.20.0000.00817.58
8.1.10.0040.00417.47
8.1.00.0000.00817.56
8.0.300.0040.00419.89
8.0.290.0030.00716.63
8.0.280.0030.00318.26
8.0.270.0030.00317.20
8.0.260.0030.00317.22
8.0.250.0070.00016.89
8.0.240.0030.00316.94
8.0.230.0000.00716.96
8.0.220.0000.00716.82
8.0.210.0050.00216.79
8.0.200.0030.00316.95
8.0.190.0070.00016.82
8.0.180.0070.00016.98
8.0.170.0080.00016.95
8.0.160.0070.00016.84
8.0.150.0000.00716.80
8.0.140.0040.00416.76
8.0.130.0030.00313.33
8.0.120.0040.00416.76
8.0.110.0050.00216.90
8.0.100.0040.00416.78
8.0.90.0000.00817.01
8.0.80.0060.00916.81
8.0.70.0000.00716.96
8.0.60.0040.00416.89
8.0.50.0070.00016.83
8.0.30.0080.01416.97
8.0.20.0080.01117.40
8.0.10.0000.00716.96
8.0.00.0100.01116.61
7.4.330.0000.00415.00
7.4.320.0070.00016.37
7.4.300.0060.00016.36
7.4.290.0030.00316.51
7.4.280.0070.00016.62
7.4.270.0030.00316.53
7.4.260.0030.00316.59
7.4.250.0070.00016.57
7.4.240.0030.00416.43
7.4.230.0030.00316.63
7.4.220.0150.00316.45
7.4.210.0000.01416.71
7.4.200.0030.00316.67
7.4.160.0160.00016.53
7.4.150.0080.01217.40
7.4.140.0070.01017.86
7.4.130.0050.01416.42
7.4.120.0130.00316.48
7.4.110.0160.00716.57
7.4.100.0100.00716.38
7.4.90.0040.01316.48
7.4.80.0100.01119.39
7.4.70.0070.01016.67
7.4.60.0120.00616.36
7.4.50.0000.00816.38
7.4.40.0040.01816.41
7.4.30.0100.00716.60
7.4.10.0110.00714.86
7.4.00.0090.00815.01
7.3.330.0030.00513.28
7.3.320.0000.00513.17
7.3.310.0000.00716.22
7.3.300.0060.00016.17
7.3.290.0110.00416.37
7.3.280.0110.00616.31
7.3.270.0110.00817.40
7.3.260.0070.01016.54
7.3.240.0140.00316.31
7.3.230.0110.00816.39
7.3.210.0070.01016.27
7.3.200.0090.01319.39
7.3.190.0070.01516.36
7.3.180.0080.00816.61
7.3.170.0130.00316.30
7.3.160.0040.01116.40
7.3.130.0100.01014.46
7.3.120.0040.01514.84
7.3.110.0030.01714.68
7.3.100.0060.00914.78
7.3.90.0070.01014.71
7.3.80.0090.00314.63
7.3.70.0030.00914.76
7.3.60.0070.00714.90
7.3.50.0060.00314.63
7.3.40.0100.00314.66
7.3.30.0070.01014.73
7.3.20.0070.00716.63
7.3.10.0190.00715.62
7.3.00.0310.00315.64
7.2.330.0140.00316.63
7.2.320.0160.00316.85
7.2.310.0090.01316.71
7.2.300.0110.00516.78
7.2.290.0090.00916.41
7.2.260.0070.01315.09
7.2.250.0060.00915.23
7.2.240.0140.00314.84
7.2.230.0060.01014.96
7.2.220.0030.01214.86
7.2.210.0070.00714.81
7.2.200.0030.01315.02
7.2.190.0030.01314.91
7.2.180.0050.00515.00
7.2.170.0110.00415.10
7.2.160.0030.01314.85
7.2.150.0080.00416.83
7.2.140.0120.00316.80
7.2.130.0210.00815.79
7.2.120.0420.00516.01
7.2.110.0230.00816.01
7.2.100.0230.00815.95
7.2.90.0260.00815.98
7.2.80.0350.00515.88
7.2.70.0220.00816.08
7.2.60.0210.00616.03
7.2.50.0250.00415.90
7.2.40.0190.00615.77
7.2.30.0240.00816.07
7.2.20.0280.00916.01
7.2.10.0260.00715.84
7.2.00.0210.00817.17
7.1.330.0030.01015.58
7.1.320.0030.00915.90
7.1.310.0070.00315.83
7.1.300.0060.00915.63
7.1.290.0000.01315.66
7.1.280.0070.01015.61
7.1.270.0040.00715.70
7.1.260.0030.01015.96
7.1.250.0170.01014.99
7.1.240.0260.00714.70
7.1.230.0290.00514.79
7.1.220.0310.00914.77
7.1.210.0220.00914.71
7.1.200.0180.00915.18
7.1.190.0280.00614.81
7.1.180.0260.00914.54
7.1.170.0250.00614.49
7.1.160.0250.00814.82
7.1.150.0270.00714.71
7.1.140.0210.00914.78
7.1.130.0340.00814.68
7.1.120.0290.00614.71
7.1.110.0280.00914.91
7.1.100.0210.00816.02
7.1.90.0480.00714.91
7.1.80.0220.01414.89
7.1.70.0210.01015.68
7.1.60.0230.00916.31
7.1.50.0140.00915.55
7.1.40.0270.00614.81
7.1.30.0310.00514.73
7.1.20.0380.00914.79
7.1.10.0300.01214.73
7.1.00.0240.03117.36
7.0.330.0590.01313.49
7.0.320.0620.00613.64
7.0.310.0490.01113.60
7.0.300.0700.01013.77
7.0.290.0610.01313.75
7.0.280.0600.00013.59
7.0.270.0510.00913.61
7.0.260.0390.00713.71
7.0.250.0590.01013.58
7.0.240.0400.01113.51
7.0.230.0420.02413.69
7.0.220.0430.01113.08
7.0.210.0460.01313.66
7.0.200.0210.00814.93
7.0.190.0500.00813.21
7.0.180.0560.00313.29
7.0.170.0410.00713.75
7.0.160.0520.01213.49
7.0.150.0520.00613.10
7.0.140.0210.04117.80
7.0.130.0400.00613.51
7.0.120.0490.00013.55
7.0.110.0490.00713.64
7.0.100.0270.03516.67
7.0.90.0410.03516.63
7.0.80.0350.04316.71
7.0.70.0330.03816.62
7.0.60.0400.04816.55
7.0.50.0510.03716.74
7.0.40.0300.04416.86
7.0.30.0230.04516.65
7.0.20.0310.04016.73
7.0.10.0290.02816.80
7.0.00.0350.04416.81
5.6.380.0090.00914.35
5.6.370.0160.01614.24
5.6.360.0160.01614.30
5.6.350.0280.00714.27
5.6.340.0280.00814.35
5.6.330.0170.01414.23
5.6.320.0120.01214.62
5.6.310.0180.01814.54
5.6.300.0080.00414.23
5.6.290.0130.01014.36
5.6.280.0110.03917.78
5.6.270.0090.01914.33
5.6.260.0150.01514.38
5.6.250.0100.04817.37
5.6.240.0130.04717.50
5.6.230.0130.02917.43
5.6.220.0150.04217.39
5.6.210.0050.04917.44
5.6.200.0140.03517.51
5.6.190.0120.04817.59
5.6.180.0040.04617.45
5.6.170.0210.03817.70
5.6.160.0100.04717.72
5.6.150.0100.04617.69
5.6.140.0150.03817.71
5.6.130.0040.05217.63
5.6.120.0170.04417.79
5.6.110.0160.04117.65
5.6.100.0070.04617.76
5.6.90.0070.04417.56
5.6.80.0110.04317.36
5.6.70.0150.04617.39
5.6.60.0130.03017.28
5.6.50.0090.04217.27
5.6.40.0120.04517.36
5.6.30.0180.04117.37
5.6.20.0080.04517.30
5.6.10.0100.04417.36
5.6.00.0070.04417.37
5.5.380.0140.03315.71
5.5.370.0070.04415.62
5.5.360.0110.03615.61
5.5.350.0040.04415.79
5.5.340.0070.04415.89
5.5.330.0040.04415.95
5.5.320.0070.04515.80
5.5.310.0120.04515.94
5.5.300.0090.04516.09
5.5.290.0110.03816.12
5.5.280.0090.04415.96
5.5.270.0150.03116.05
5.5.260.0090.04515.93
5.5.250.0070.02715.71
5.5.240.0120.03315.80
5.5.230.0100.03815.54
5.5.220.0090.04015.58
5.5.210.0120.04215.71
5.5.200.0080.04315.56
5.5.190.0100.03815.65
5.5.180.0110.04415.59
5.5.170.0080.00511.05
5.5.160.0120.03715.54
5.5.150.0100.03015.69
5.5.140.0100.03715.46
5.5.130.0060.03915.65
5.5.120.0100.04015.63
5.5.110.0070.04715.69
5.5.100.0080.04515.53
5.5.90.0100.02915.64
5.5.80.0030.04415.55
5.5.70.0050.04115.71
5.5.60.0050.04015.61
5.5.50.0060.04015.72
5.5.40.0060.04215.57
5.5.30.0060.04515.50
5.5.20.0060.03815.45
5.5.10.0130.03615.55
5.5.00.0040.04115.47
5.4.450.0130.03415.38
5.4.440.0120.04015.28
5.4.430.0120.03715.37
5.4.420.0050.04014.83
5.4.410.0090.03915.29
5.4.400.0110.04114.95
5.4.390.0090.04115.18
5.4.380.0060.04214.92
5.4.370.0100.04215.15
5.4.360.0130.04014.95
5.4.350.0090.04314.89
5.4.340.0110.03615.20
5.4.330.0030.01010.68
5.4.320.0140.03514.91
5.4.310.0070.03214.97
5.4.300.0060.03114.96
5.4.290.0040.04315.01
5.4.280.0090.03715.14
5.4.270.0080.03814.91
5.4.260.0050.04115.13
5.4.250.0080.03915.00
5.4.240.0100.03215.07
5.4.230.0040.04015.12
5.4.220.0050.04215.18
5.4.210.0110.04115.15
5.4.200.0020.04315.07
5.4.190.0080.03514.83
5.4.180.0050.04114.98
5.4.170.0140.03515.11
5.4.160.0060.03614.82
5.4.150.0110.03914.75
5.4.140.0090.02813.63
5.4.130.0090.03713.62
5.4.120.0070.03513.61
5.4.110.0090.02813.72
5.4.100.0130.03813.76
5.4.90.0050.04013.80
5.4.80.0030.02813.74
5.4.70.0050.02913.61
5.4.60.0100.03813.82
5.4.50.0030.04513.63
5.4.40.0050.03913.86
5.4.30.0110.03513.76
5.4.20.0090.04413.76
5.4.10.0060.03813.80
5.4.00.0020.02613.54

preferences:
42.74 ms | 401 KiB | 5 Q