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; } public function __toString() { return (string)$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.40.0140.00018.73
8.3.30.0070.00719.20
8.3.20.0000.00720.16
8.3.10.0050.00323.51
8.3.00.0070.00317.63
8.2.170.0150.00022.96
8.2.160.0090.00620.31
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00022.06
8.2.110.0100.00022.11
8.2.100.0060.00617.88
8.2.90.0040.00419.39
8.2.80.0030.00617.97
8.2.70.0000.00817.47
8.2.60.0000.00818.05
8.2.50.0030.00618.07
8.2.40.0050.00319.95
8.2.30.0030.00618.21
8.2.20.0000.00817.63
8.2.10.0030.00618.13
8.2.00.0080.00017.87
8.1.270.0080.00022.20
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00723.98
8.1.230.0070.00417.48
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.25
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00918.64
8.1.160.0000.00722.02
8.1.150.0040.00418.90
8.1.140.0000.00717.45
8.1.130.0030.00317.70
8.1.120.0000.00717.40
8.1.110.0000.00917.36
8.1.100.0030.00317.44
8.1.90.0000.00817.44
8.1.80.0040.00417.29
8.1.70.0070.00017.45
8.1.60.0030.00617.65
8.1.50.0030.00517.41
8.1.40.0040.00417.49
8.1.30.0040.00417.55
8.1.20.0000.00717.61
8.1.10.0040.00417.45
8.1.00.0070.00017.49
8.0.300.0050.00318.77
8.0.290.0070.00016.75
8.0.280.0030.00318.47
8.0.270.0070.00017.14
8.0.260.0060.00017.18
8.0.250.0030.00317.03
8.0.240.0070.00016.96
8.0.230.0080.00016.98
8.0.220.0000.00716.85
8.0.210.0030.00316.86
8.0.200.0030.00317.02
8.0.190.0090.00016.97
8.0.180.0040.00416.87
8.0.170.0050.00316.97
8.0.160.0050.00316.85
8.0.150.0080.00016.88
8.0.140.0000.00716.81
8.0.130.0030.00313.38
8.0.120.0060.00316.83
8.0.110.0000.00716.93
8.0.100.0000.00716.97
8.0.90.0020.00516.82
8.0.80.0080.01316.96
8.0.70.0070.00016.81
8.0.60.0030.00417.01
8.0.50.0050.00317.04
8.0.30.0120.00917.27
8.0.20.0140.00717.40
8.0.10.0000.00817.11
8.0.00.0140.00416.76
7.4.330.0000.00415.00
7.4.320.0070.00016.59
7.4.300.0030.00316.51
7.4.290.0000.00716.64
7.4.280.0070.00016.60
7.4.270.0030.00316.43
7.4.260.0040.00416.48
7.4.250.0030.00516.45
7.4.240.0050.00216.46
7.4.230.0040.00416.32
7.4.220.0040.01516.50
7.4.210.0110.00416.54
7.4.200.0000.00716.26
7.4.160.0150.00616.53
7.4.150.0070.01417.40
7.4.140.0100.01017.86
7.4.130.0080.00916.59
7.4.120.0080.00816.37
7.4.110.0070.01016.44
7.4.100.0110.00716.56
7.4.90.0100.00716.54
7.4.80.0070.01419.39
7.4.70.0120.00616.46
7.4.60.0100.00616.45
7.4.50.0040.00416.60
7.4.40.0090.00916.54
7.4.30.0110.00816.36
7.4.10.0100.00615.05
7.4.00.0030.01315.08
7.3.330.0060.00013.29
7.3.320.0060.00013.19
7.3.310.0030.00316.39
7.3.300.0030.00316.36
7.3.290.0070.00716.34
7.3.280.0060.01016.38
7.3.270.0070.01117.40
7.3.260.0140.00316.37
7.3.250.0160.00316.32
7.3.240.0110.00816.54
7.3.230.0070.01016.39
7.3.210.0090.00916.38
7.3.200.0170.00419.39
7.3.190.0070.01016.46
7.3.180.0060.00916.24
7.3.170.0090.00816.61
7.3.160.0000.01516.51
7.3.130.0060.00914.77
7.3.120.0090.00914.91
7.3.110.0060.01314.96
7.3.100.0000.01414.95
7.3.90.0110.00714.79
7.3.80.0030.01014.95
7.3.70.0000.01114.92
7.3.60.0090.00614.87
7.3.50.0030.01314.90
7.3.40.0080.00414.61
7.3.30.0070.00714.96
7.3.20.0030.01016.50
7.3.10.0070.00416.56
7.3.00.0070.00716.59
7.2.330.0070.01816.62
7.2.320.0080.00816.80
7.2.310.0190.00616.51
7.2.300.0040.01716.79
7.2.290.0060.01116.44
7.2.260.0070.01415.03
7.2.250.0040.01215.01
7.2.240.0000.01314.71
7.2.230.0130.00615.31
7.2.220.0100.00715.08
7.2.210.0140.00414.61
7.2.200.0080.00815.11
7.2.190.0070.01015.02
7.2.180.0000.01714.90
7.2.170.0040.00814.83
7.2.160.0070.01014.88
7.2.150.0090.00616.79
7.2.140.0070.00716.97
7.2.130.0070.00716.88
7.2.120.0080.00816.93
7.2.110.0060.01217.02
7.2.100.0030.01516.90
7.2.90.0070.00716.95
7.2.80.0050.00816.77
7.2.70.0090.00917.05
7.2.60.0060.00616.58
7.2.50.0090.00616.63
7.2.40.0000.01816.79
7.2.30.0060.00617.08
7.2.20.0070.00716.87
7.2.10.0100.00716.91
7.2.00.0070.00518.27
7.1.330.0000.01315.50
7.1.320.0070.01015.68
7.1.310.0030.00915.95
7.1.300.0040.00815.68
7.1.290.0040.00715.88
7.1.280.0030.01215.80
7.1.270.0030.01015.98
7.1.260.0110.00415.86
7.1.250.0090.00616.00
7.1.240.0030.01215.52
7.1.230.0090.00615.64
7.1.220.0030.00915.53
7.1.210.0030.00915.43
7.1.200.0020.01115.76
7.1.190.0030.01015.74
7.1.180.0070.00715.86
7.1.170.0120.00015.89
7.1.160.0000.01315.70
7.1.150.0040.00415.73
7.1.140.0080.00815.66
7.1.130.0120.00315.48
7.1.120.0060.00715.63
7.1.110.0090.00315.78
7.1.100.0030.01016.96
7.1.90.0070.01015.50
7.1.80.0100.00615.59
7.1.70.0040.00716.53
7.1.60.0090.00917.60
7.1.50.0070.01216.15
7.1.40.0100.00315.61
7.1.30.0040.00915.54
7.1.20.0060.00315.76
7.1.10.0070.00715.82
7.1.00.0060.04319.19
7.0.330.0130.00315.43
7.0.320.0040.00815.51
7.0.310.0090.00615.64
7.0.300.0060.00915.44
7.0.290.0000.01115.48
7.0.280.0030.00915.42
7.0.270.0060.00615.41
7.0.260.0050.00315.61
7.0.250.0040.01115.45
7.0.240.0130.00315.47
7.0.230.0030.00915.47
7.0.220.0030.01015.37
7.0.210.0030.01015.44
7.0.200.0200.00616.12
7.0.190.0070.00415.29
7.0.180.0000.01315.60
7.0.170.0070.00715.52
7.0.160.0060.00315.38
7.0.150.0030.00515.43
7.0.140.0100.03518.67
7.0.130.0030.00615.61
7.0.120.0030.01215.51
7.0.110.0030.01015.50
7.0.100.0040.01115.27
7.0.90.0070.00715.36
7.0.80.0000.01015.29
7.0.70.0000.01515.30
7.0.60.0070.04217.78
7.0.50.0120.03316.76
7.0.40.0050.02816.86
7.0.30.0090.02516.84
7.0.20.0210.02816.67
7.0.10.0030.02816.80
7.0.00.0070.04516.89
5.6.400.0040.00814.33
5.6.390.0110.00714.31
5.6.380.0100.00314.43
5.6.370.0030.00914.84
5.6.360.0070.00714.21
5.6.350.0070.00414.34
5.6.340.0040.01114.32
5.6.330.0060.00914.31
5.6.320.0140.00314.37
5.6.310.0060.00814.25
5.6.300.0040.01114.41
5.6.290.0130.00314.68
5.6.280.0030.04017.79
5.6.270.0130.00314.62
5.6.260.0150.00314.59
5.6.250.0040.01114.21
5.6.240.0040.00814.72
5.6.230.0140.00014.25
5.6.220.0060.01014.28
5.6.210.0080.04017.64
5.6.200.0030.04016.14
5.6.190.0090.04617.48
5.6.180.0180.04017.64
5.6.170.0200.04217.54
5.6.160.0070.03017.42
5.6.150.0130.03816.38
5.6.140.0070.04016.17
5.6.130.0060.02516.22
5.6.120.0050.02517.73
5.6.110.0110.03917.76
5.6.100.0120.03217.88
5.6.90.0080.03817.62
5.6.80.0070.02917.50
5.6.70.0030.01214.17
5.6.60.0070.00714.63
5.6.50.0130.00314.53
5.6.40.0060.00914.45
5.6.30.0050.00314.19
5.6.20.0110.00414.65
5.6.10.0070.00714.25
5.6.00.0000.01014.57
5.5.380.0090.00614.59
5.5.370.0060.00914.29
5.5.360.0000.01114.42
5.5.350.0130.04017.45
5.5.340.0080.02616.18
5.5.330.0070.03817.38
5.5.320.0180.04117.32
5.5.310.0120.02917.29
5.5.300.0060.04116.13
5.5.290.0120.02516.27
5.5.280.0050.04617.63
5.5.270.0100.03917.54
5.5.260.0050.04717.47
5.5.250.0040.02217.51
5.5.240.0140.04017.20
5.5.230.0050.00514.35
5.5.220.0130.00014.43
5.5.210.0020.01414.10
5.5.200.0000.01714.13
5.5.190.0080.00814.17
5.5.180.0030.01314.46
5.5.170.0040.00714.46
5.5.160.0100.00314.29
5.5.150.0090.00614.02
5.5.140.0000.01514.42
5.5.130.0060.00614.05
5.5.120.0040.00814.48
5.5.110.0050.00514.41
5.5.100.0030.01114.37
5.5.90.0080.00414.29
5.5.80.0060.00914.60
5.5.70.0100.00314.06
5.5.60.0070.00314.14
5.5.50.0040.00714.59
5.5.40.0030.00914.42
5.5.30.0040.00713.98
5.5.20.0040.01114.37
5.5.10.0000.01114.50
5.5.00.0000.00914.26
5.4.450.0510.04615.31
5.4.440.0440.03315.31
5.4.430.0470.03215.35
5.4.420.0350.00315.33
5.4.410.0340.00315.07
5.4.400.0370.00215.12
5.4.390.0330.00214.90
5.4.380.0340.00115.20
5.4.370.0300.00314.95
5.4.360.0300.00315.08
5.4.350.0330.00515.09
5.4.340.0040.02811.58
5.4.330.0070.00710.69
5.4.320.0060.02311.83
5.4.310.0100.02311.86
5.4.300.0020.02511.60
5.4.290.0060.02111.81
5.4.280.0070.02111.86
5.4.270.0060.02311.60
5.4.260.0050.02011.69
5.4.250.0040.02311.68
5.4.240.0040.02411.72
5.4.230.0070.02611.76
5.4.220.0080.01911.71
5.4.210.0090.01911.87
5.4.200.0050.02411.77
5.4.190.0050.02111.74
5.4.180.0060.02311.76
5.4.170.0060.02011.78
5.4.160.0080.01911.82
5.4.150.0040.02111.74
5.4.140.0070.02111.43
5.4.130.0040.02311.41
5.4.120.0040.02611.61
5.4.110.0070.02011.44
5.4.100.0070.02011.62
5.4.90.0030.02311.63
5.4.80.0050.02111.50
5.4.70.0070.02111.38
5.4.60.0030.02511.55
5.4.50.0040.02111.49
5.4.40.0050.02211.49
5.4.30.0050.02311.62
5.4.20.0060.02911.61
5.4.10.0070.02411.54
5.4.00.0040.02411.32
5.3.290.0110.03712.80
5.3.280.0050.03812.71
5.3.270.0070.03712.72
5.3.260.0050.04012.72
5.3.250.0100.03712.72
5.3.240.0070.03712.72
5.3.230.0100.03512.71
5.3.220.0080.03612.68
5.3.210.0020.04612.68
5.3.200.0050.04012.68
5.3.190.0090.04112.68
5.3.180.0060.03612.68
5.3.170.0020.04012.67
5.3.160.0060.03712.68
5.3.150.0050.03812.67
5.3.140.0090.03412.66
5.3.130.0040.04212.65
5.3.120.0070.03912.66
5.3.110.0050.04612.65
5.3.100.0040.04212.13
5.3.90.0080.03912.11
5.3.80.0070.03712.10
5.3.70.0050.04212.09
5.3.60.0140.03212.08
5.3.50.0090.05712.03
5.3.40.0040.04012.03
5.3.30.0060.04311.99
5.3.20.0120.03911.77
5.3.10.0070.03511.73
5.3.00.0070.04111.72
5.2.170.0040.0359.23
5.2.160.0030.0339.23
5.2.150.0080.0419.23
5.2.140.0060.0549.22
5.2.130.0060.0419.18
5.2.120.0070.0349.19
5.2.110.0070.0329.20
5.2.100.0050.0339.19
5.2.90.0100.0269.19
5.2.80.0060.0339.18
5.2.70.0050.0349.18
5.2.60.0070.0299.13
5.2.50.0030.0349.10
5.2.40.0050.0349.07
5.2.30.0100.0349.06
5.2.20.0060.0349.05
5.2.10.0050.0388.95
5.2.00.0050.0298.82
5.1.60.0090.0288.09
5.1.50.0050.0288.09
5.1.40.0050.0258.07
5.1.30.0060.0338.42
5.1.20.0060.0358.44
5.1.10.0060.0308.16
5.1.00.0060.0268.16
5.0.50.0060.0196.65
5.0.40.0040.0216.50
5.0.30.0060.0306.32
5.0.20.0030.0216.29
5.0.10.0020.0226.26
5.0.00.0020.0386.25
4.4.90.0050.0204.78
4.4.80.0040.0174.75
4.4.70.0030.0164.76
4.4.60.0030.0164.75
4.4.50.0020.0164.77
4.4.40.0010.0274.71
4.4.30.0030.0164.76
4.4.20.0040.0194.84
4.4.10.0040.0204.85
4.4.00.0020.0314.76
4.3.110.0020.0164.67
4.3.100.0030.0154.67
4.3.90.0020.0154.63
4.3.80.0010.0264.58
4.3.70.0030.0144.63
4.3.60.0020.0154.62
4.3.50.0030.0174.63
4.3.40.0050.0294.54
4.3.30.0040.0193.30
4.3.20.0030.0203.28
4.3.10.0040.0183.24
4.3.00.0130.0277.16

preferences:
40.27 ms | 400 KiB | 5 Q