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 spl_object_hash($this); } } $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.0110.00418.31
8.3.50.0140.00522.01
8.3.40.0070.00718.97
8.3.30.0070.00719.07
8.3.20.0070.00020.38
8.3.10.0050.00323.61
8.3.00.0000.00819.26
8.2.180.0160.00018.31
8.2.170.0040.01122.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00422.23
8.2.110.0070.00320.52
8.2.100.0110.00018.04
8.2.90.0040.00718.01
8.2.80.0040.00417.97
8.2.70.0090.00017.75
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0080.00020.07
8.2.30.0000.00818.11
8.2.20.0000.00717.80
8.2.10.0030.00518.10
8.2.00.0000.00717.73
8.1.280.0150.00625.92
8.1.270.0060.01222.05
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00022.18
8.1.230.0070.00420.92
8.1.220.0000.00817.76
8.1.210.0000.00818.94
8.1.200.0050.00517.38
8.1.190.0030.00617.23
8.1.180.0000.00718.10
8.1.170.0050.00518.71
8.1.160.0000.00722.06
8.1.150.0040.00418.91
8.1.140.0070.00017.45
8.1.130.0050.00317.88
8.1.120.0000.00717.34
8.1.110.0000.00917.38
8.1.100.0020.00517.45
8.1.90.0070.00017.34
8.1.80.0030.00317.49
8.1.70.0030.00317.36
8.1.60.0030.00617.63
8.1.50.0040.00417.51
8.1.40.0050.00217.42
8.1.30.0000.00817.58
8.1.20.0000.00817.64
8.1.10.0000.00717.50
8.1.00.0050.00317.45
8.0.300.0000.00720.00
8.0.290.0040.00416.63
8.0.280.0000.00818.51
8.0.270.0030.00317.16
8.0.260.0000.00717.27
8.0.250.0030.00316.86
8.0.240.0030.00616.95
8.0.230.0000.00716.86
8.0.220.0000.01016.92
8.0.210.0000.00716.88
8.0.200.0040.00416.97
8.0.190.0030.00616.83
8.0.180.0040.00416.88
8.0.170.0060.00316.98
8.0.160.0030.00516.86
8.0.150.0000.00716.72
8.0.140.0050.00216.84
8.0.130.0030.00313.28
8.0.120.0020.00516.75
8.0.110.0060.00316.96
8.0.100.0030.00516.74
8.0.90.0040.00416.80
8.0.80.0030.01416.87
8.0.70.0070.00016.84
8.0.60.0000.00716.79
8.0.50.0040.00416.86
8.0.30.0090.01117.13
8.0.20.0180.00417.40
8.0.10.0000.00716.89
8.0.00.0110.00716.80
7.4.330.0000.00515.03
7.4.320.0000.00616.58
7.4.300.0000.00616.52
7.4.290.0000.00616.41
7.4.280.0030.00516.55
7.4.270.0000.00716.49
7.4.260.0040.00716.48
7.4.250.0000.00716.48
7.4.240.0030.00516.52
7.4.230.0000.00716.68
7.4.220.0120.00816.62
7.4.210.0070.00716.54
7.4.200.0030.00316.70
7.4.160.0220.01216.54
7.4.150.0040.01317.40
7.4.140.0110.01017.86
7.4.130.0060.01116.34
7.4.120.0090.01016.40
7.4.110.0100.00616.41
7.4.100.0090.01516.50
7.4.90.0070.01016.55
7.4.80.0090.00919.39
7.4.70.0040.01416.36
7.4.60.0120.00616.45
7.4.50.0080.00016.46
7.4.40.0070.01016.34
7.4.30.0080.00816.66
7.4.00.0030.01315.15
7.3.330.0020.00213.17
7.3.320.0030.00313.30
7.3.310.0000.00716.27
7.3.300.0050.00316.29
7.3.290.0060.01016.25
7.3.280.0100.00816.22
7.3.270.0110.00617.40
7.3.260.0060.01216.41
7.3.250.0130.00816.34
7.3.240.0110.01216.24
7.3.230.0070.01016.49
7.3.210.0170.00316.22
7.3.200.0000.01719.39
7.3.190.0070.01016.60
7.3.180.0060.00916.27
7.3.170.0070.01316.49
7.3.160.0130.00916.20
7.3.10.0040.01116.71
7.3.00.0120.00316.58
7.2.330.0110.00716.78
7.2.320.0080.00816.69
7.2.310.0060.01316.67
7.2.300.0100.00716.44
7.2.290.0090.00916.75
7.2.130.0000.01416.97
7.2.120.0070.00716.95
7.2.110.0100.00616.69
7.2.100.0030.01316.39
7.2.90.0090.00616.98
7.2.80.0060.00617.00
7.2.70.0070.00316.88
7.2.60.0040.00916.56
7.2.50.0070.00416.82
7.2.40.0080.00416.98
7.2.30.0090.00316.95
7.2.20.0070.00716.91
7.2.10.0040.01116.93
7.2.00.0060.00916.70
7.1.250.0030.01015.79
7.1.200.0060.00915.50
7.1.70.0000.00717.17
7.1.60.0160.00719.11
7.1.50.0030.01716.77
7.1.00.0070.07322.36
7.0.200.0000.01016.82
7.0.140.0070.06722.07
7.0.60.0200.07720.01
7.0.50.0130.08017.88
7.0.40.0130.07320.25
7.0.30.0230.08020.20
7.0.20.0300.06720.10
7.0.10.0070.04020.21
7.0.00.0100.08020.10
5.6.280.0030.07321.16
5.6.210.0070.07720.73
5.6.200.0130.06718.18
5.6.190.0030.05020.77
5.6.180.0270.04720.61
5.6.170.0470.03720.48
5.6.160.0030.05320.54
5.6.150.0070.07718.17
5.6.140.0130.04018.33
5.6.130.0070.03718.20
5.6.120.0100.03321.10
5.6.110.0100.08021.04
5.6.100.0130.08020.94
5.6.90.0000.08320.93
5.6.80.0030.04020.31
5.5.350.0030.07320.33
5.5.340.0030.03718.07
5.5.330.0170.06020.32
5.5.320.0370.06720.31
5.5.310.0270.07720.24
5.5.300.0130.07317.95
5.5.290.0030.05718.06
5.5.280.0030.07320.80
5.5.270.0200.07020.86
5.5.260.0030.07320.73
5.5.250.0030.05320.66
5.5.240.0270.03020.27
5.4.450.0530.05319.64
5.4.440.0670.04719.41
5.4.430.0430.07019.63
5.4.420.0430.06019.46
5.4.410.0500.07019.38
5.4.400.0400.03719.23
5.4.390.0400.04019.24
5.4.380.0530.05718.87
5.4.370.0400.03719.00
5.4.360.0370.04019.08
5.4.350.0330.04718.87
5.4.340.0370.04719.08
5.4.320.0370.05019.15
5.4.310.0300.04018.88
5.4.300.0370.04019.15
5.4.290.0370.06019.00
5.4.280.0530.04319.05
5.4.270.0430.04318.87
5.4.260.0370.04018.98
5.4.250.0330.04318.97
5.4.240.0430.04019.09
5.4.230.0370.03719.21
5.4.220.0330.04719.05
5.4.210.0400.03319.14
5.4.200.0500.05719.21
5.4.190.0400.05319.21
5.4.180.0370.04019.05
5.4.170.0370.04018.97
5.4.160.0400.05319.13
5.4.150.0470.03318.92
5.4.140.0470.04016.29
5.4.130.0570.05316.49
5.4.120.0370.03716.32
5.4.110.0570.06316.45
5.4.100.0370.04016.35
5.4.90.0400.04016.26
5.4.80.0570.05316.39
5.4.70.0470.06716.27
5.4.60.0400.04016.52
5.4.50.0430.06716.38
5.4.40.0470.06316.49
5.4.30.0500.06016.52
5.4.20.0430.05016.52
5.4.10.0430.05716.42
5.4.00.0430.06715.83
5.3.290.0370.06714.76
5.3.280.0270.04014.61
5.3.270.0470.03714.73
5.3.260.0470.06314.54
5.3.250.0600.04714.69
5.3.240.0570.04714.60
5.3.230.0430.04014.82
5.3.220.0530.06314.58
5.3.210.0500.06014.55
5.3.200.0400.06014.62
5.3.190.0430.07014.64
5.3.180.0400.04714.73
5.3.170.0500.06014.48
5.3.160.0530.06314.48
5.3.150.0500.04014.65
5.3.140.0630.07314.65
5.3.130.0570.06014.66
5.3.120.0570.04314.63
5.3.110.0500.06714.54
5.3.100.0370.05314.16
5.3.90.0500.06313.88
5.3.80.0470.03714.16
5.3.70.0570.05713.93
5.3.60.0570.04313.93
5.3.50.0300.04713.88
5.3.40.0600.05313.88
5.3.30.0500.06313.83
5.3.20.0370.04013.79
5.3.10.0370.04313.55
5.3.00.0430.07013.68
5.2.170.0430.05011.93
5.2.160.0470.05311.93
5.2.150.0330.03711.93
5.2.140.0400.05711.93
5.2.130.0400.03711.93
5.2.120.0230.04311.93
5.2.110.0370.04311.93
5.2.100.0430.04011.93
5.2.90.0270.03311.93
5.2.80.0270.04011.93
5.2.70.0370.03311.93
5.2.60.0400.02711.93
5.2.50.0300.03311.93
5.2.40.0230.03011.93
5.2.30.0230.03011.93
5.2.20.0270.03711.93
5.2.10.0300.02711.93
5.2.00.0330.05311.93
5.1.60.0230.04011.93
5.1.50.0430.03311.93
5.1.40.0300.02311.93
5.1.30.0300.02711.93
5.1.20.0230.03011.93
5.1.10.0370.03711.93
5.1.00.0400.03311.93
5.0.50.0230.02711.93
5.0.40.0230.02711.93
5.0.30.0200.05711.93
5.0.20.0200.04311.93
5.0.10.0170.04011.93
5.0.00.0170.05711.93
4.4.90.0170.01311.93
4.4.80.0130.01711.93
4.4.70.0130.01711.93
4.4.60.0130.01711.93
4.4.50.0130.02011.93
4.4.40.0170.05311.93
4.4.30.0170.02011.93
4.4.20.0200.03311.93
4.4.10.0170.03711.93
4.4.00.0130.04711.93
4.3.110.0170.02311.93
4.3.100.0130.03011.93
4.3.90.0200.03011.93
4.3.80.0200.04711.93
4.3.70.0170.01711.93
4.3.60.0170.01711.93
4.3.50.0130.03011.93
4.3.40.0130.02711.93
4.3.30.0100.02011.93
4.3.20.0100.03711.93
4.3.10.0070.04011.93
4.3.00.0100.03311.93

preferences:
45.15 ms | 401 KiB | 5 Q