3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Derp { public $d; public function __construct() { $this->d = $d; } public function __toString() { return '1'; } } $d = array(new Derp(1), new Derp(2), new Derp(3)); var_dump(array_unique($d));

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.0140.00716.88
8.3.50.0160.00617.45
8.3.40.0110.00418.84
8.3.30.0070.00718.63
8.3.20.0060.00318.62
8.3.10.0090.00018.46
8.3.00.0040.00419.38
8.2.180.0060.01216.50
8.2.170.0120.00322.96
8.2.160.0150.00021.10
8.2.150.0100.00724.18
8.2.140.0060.00324.66
8.2.130.0040.01126.16
8.2.120.0100.00019.76
8.2.110.0150.00421.05
8.2.100.0110.00017.84
8.2.90.0060.00319.46
8.2.80.0050.00219.39
8.2.70.0000.00817.50
8.2.60.0070.00417.93
8.2.50.0030.00618.07
8.2.40.0040.00418.09
8.2.30.0000.00718.09
8.2.20.0050.00217.61
8.2.10.0050.00217.68
8.2.00.0000.00717.87
8.1.280.0140.00725.92
8.1.270.0070.00024.66
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0060.00322.48
8.1.230.0110.00020.97
8.1.220.0050.00317.79
8.1.210.0000.00818.79
8.1.200.0060.00317.35
8.1.190.0070.00017.52
8.1.180.0000.00818.10
8.1.170.0040.00418.89
8.1.160.0050.00218.86
8.1.150.0000.00718.68
8.1.140.0000.00817.49
8.1.130.0080.00017.83
8.1.120.0000.00817.47
8.1.110.0040.00417.50
8.1.100.0020.00517.44
8.1.90.0030.00517.47
8.1.80.0040.00417.44
8.1.70.0030.00317.35
8.1.60.0030.00617.58
8.1.50.0070.00017.37
8.1.40.0040.00417.53
8.1.30.0060.00317.46
8.1.20.0070.00017.50
8.1.10.0040.00417.62
8.1.00.0000.00717.54
8.0.300.0040.00419.77
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0030.00317.15
8.0.260.0000.00716.80
8.0.250.0000.00717.07
8.0.240.0000.00817.05
8.0.230.0070.00016.96
8.0.220.0000.00716.91
8.0.210.0080.00016.90
8.0.200.0040.00417.05
8.0.190.0060.00316.91
8.0.180.0070.00016.95
8.0.170.0000.00916.99
8.0.160.0030.00516.86
8.0.150.0060.00316.85
8.0.140.0000.00816.81
8.0.130.0030.00313.36
8.0.120.0040.00416.87
8.0.110.0070.00016.96
8.0.100.0020.00516.90
8.0.90.0070.00016.89
8.0.80.0100.00716.94
8.0.70.0040.00416.90
8.0.60.0040.00416.90
8.0.50.0020.00516.73
8.0.30.0100.00917.06
8.0.20.0120.02017.10
8.0.10.0070.00016.93
8.0.00.0080.01416.89
7.4.330.0000.00412.98
7.4.320.0000.00616.52
7.4.300.0060.00016.65
7.4.290.0070.00016.46
7.4.280.0060.00316.49
7.4.270.0070.00016.42
7.4.260.0000.00813.26
7.4.250.0030.00616.49
7.4.240.0020.00516.61
7.4.230.0000.00716.58
7.4.220.0060.01316.44
7.4.210.0080.00816.57
7.4.200.0000.00716.50
7.4.190.0000.00716.65
7.4.160.0100.00716.39
7.4.150.0060.01216.48
7.4.140.0090.00916.43
7.4.130.0090.00916.49
7.4.120.0090.00716.61
7.4.110.0130.00316.58
7.4.100.0140.00816.41
7.4.90.0090.00916.49
7.4.80.0120.00919.39
7.4.70.0200.00716.48
7.4.60.0110.00616.52
7.4.50.0060.00616.37
7.4.40.0000.01516.38
7.4.30.0130.00316.56
7.4.00.0100.00614.76
7.3.330.0000.00613.23
7.3.320.0000.00513.20
7.3.310.0040.00416.39
7.3.300.0000.00716.23
7.3.290.0060.01016.39
7.3.280.0080.00916.36
7.3.270.0100.00716.31
7.3.260.0210.02316.72
7.3.250.0060.01116.31
7.3.240.0160.00616.31
7.3.230.0060.01616.46
7.3.210.0080.00816.67
7.3.200.0030.01316.44
7.3.190.0060.01516.36
7.3.180.0070.01016.61
7.3.170.0100.01016.22
7.3.160.0100.01016.53
7.3.120.0070.00714.91
7.2.330.0140.00416.41
7.2.320.0120.00616.59
7.2.310.0140.00316.33
7.2.300.0100.00616.61
7.2.290.0040.01216.73
7.2.00.0040.00819.14
7.1.100.0030.01018.20
7.1.70.0040.01117.22
7.1.60.0110.01119.40
7.1.50.0200.01334.83
7.1.00.0070.07322.48
7.0.200.0250.00414.89
7.0.140.0030.06722.09
7.0.120.0070.06322.19
7.0.60.0170.06019.93
7.0.50.0070.07317.98
7.0.40.0070.09020.18
7.0.30.0170.04720.25
7.0.20.0100.04720.25
7.0.10.0070.04020.19
7.0.00.0030.08720.23
5.6.280.0100.06720.82
5.6.210.0100.08020.62
5.6.200.0130.04318.19
5.6.190.0030.05020.48
5.6.180.0130.07020.34
5.6.170.0270.07720.54
5.6.160.0270.06320.43
5.6.150.0130.03718.15
5.6.140.0100.07718.21
5.6.130.0100.07718.23
5.6.120.0070.06021.02
5.6.110.0130.03321.02
5.6.100.0070.06321.11
5.6.90.0070.08321.12
5.6.80.0100.06720.41
5.5.350.0030.04320.39
5.5.340.0070.07018.05
5.5.330.0100.06020.42
5.5.320.0200.08020.25
5.5.310.0370.07020.19
5.5.300.0130.07718.04
5.5.290.0070.08317.98
5.5.280.0130.07020.96
5.5.270.0030.04720.77
5.5.260.0070.08320.79
5.5.250.0130.08320.55
5.5.240.0200.03320.03
5.4.450.0200.06719.32
5.4.440.0330.07019.38
5.4.430.0200.04319.54
5.4.420.0200.04019.57
5.4.410.0330.04319.37
5.4.400.0270.04719.16
5.4.390.0230.04019.24
5.4.380.0200.04018.95
5.4.370.0230.03719.00
5.4.360.0230.03719.13
5.4.350.0370.06719.07
5.4.340.0230.03718.98
5.4.320.0270.03319.16
5.4.310.0200.04018.84
5.4.300.0270.03719.30
5.4.290.0300.04019.21
5.4.280.0370.05719.20
5.4.270.0270.03719.19
5.4.260.0230.06019.24
5.4.250.0270.03319.19
5.4.240.0270.03319.07
5.4.230.0330.07019.14
5.4.220.0300.03719.21
5.4.210.0330.06319.13
5.4.200.0200.03719.21
5.4.190.0330.07019.14
5.4.180.0270.06719.07
5.4.170.0230.05719.18
5.4.160.0230.03318.84
5.4.150.0230.04719.22
5.4.140.0300.02716.49
5.4.130.0170.04016.50
5.4.120.0230.06716.64
5.4.110.0230.07316.36
5.4.100.0230.07016.58
5.4.90.0230.05016.45
5.4.80.0200.03716.55
5.4.70.0200.04316.35
5.4.60.0270.03016.53
5.4.50.0230.03316.52
5.4.40.0300.06016.34
5.4.30.0230.04716.53
5.4.20.0200.06016.23
5.4.10.0230.03716.50
5.4.00.0230.04716.10
5.3.290.0200.04014.74
5.3.280.0230.03714.63
5.3.270.0300.04714.66
5.3.260.0230.05314.69
5.3.250.0400.03714.64
5.3.240.0330.04014.70
5.3.230.0270.05714.61
5.3.220.0270.06714.58
5.3.210.0330.06714.55
5.3.200.0230.07314.54
5.3.190.0330.05714.57
5.3.180.0230.03714.57
5.3.170.0230.06014.57
5.3.160.0370.06314.66
5.3.150.0300.04714.80
5.3.140.0270.04014.64
5.3.130.0270.07014.55
5.3.120.0300.07314.57
5.3.110.0330.03714.62
5.3.100.0230.07714.09
5.3.90.0330.04714.01
5.3.80.0300.06713.93
5.3.70.0200.06313.93
5.3.60.0400.06014.08
5.3.50.0330.04713.86
5.3.40.0300.06713.93
5.3.30.0230.04013.97
5.3.20.0300.05313.61
5.3.10.0230.07013.66
5.3.00.0300.06713.87
5.2.170.0130.04011.24
5.2.160.0170.05311.06
5.2.150.0170.03011.13
5.2.140.0270.05711.20
5.2.130.0230.04311.12
5.2.120.0230.05711.03
5.2.110.0230.02711.08
5.2.100.0130.04011.04
5.2.90.0200.03011.04
5.2.80.0130.04011.32
5.2.70.0130.03311.01
5.2.60.0230.05011.17
5.2.50.0170.03011.07
5.2.40.0130.02710.93
5.2.30.0170.06011.20
5.2.20.0130.03311.04
5.2.10.0230.05010.85
5.2.00.0170.04710.68
5.1.60.0170.0279.90
5.1.50.0100.0279.90
5.1.40.0100.0279.89
5.1.30.0170.05310.34
5.1.20.0200.03710.59
5.1.10.0170.05310.00
5.1.00.0230.04710.08
5.0.50.0130.0438.68
5.0.40.0100.0238.40
5.0.30.0100.0478.31
5.0.20.0100.0238.36
5.0.10.0170.0338.22
5.0.00.0100.0338.09
4.4.90.0070.0377.62
4.4.80.0100.0237.62
4.4.70.0070.0207.62
4.4.60.0070.0337.62
4.4.50.0100.0237.62
4.4.40.0100.0507.62
4.4.30.0100.0137.62
4.4.20.0170.0137.62
4.4.10.0030.0207.62
4.4.00.0100.0237.62
4.3.110.0070.0377.62
4.3.100.0070.0277.62
4.3.90.0100.0207.62
4.3.80.0130.0377.62
4.3.70.0100.0377.62
4.3.60.0070.0207.62
4.3.50.0130.0277.62
4.3.40.0100.0507.62
4.3.30.0030.0407.62
4.3.20.0030.0337.62
4.3.10.0030.0307.62
4.3.00.0000.0237.62

preferences:
74.19 ms | 401 KiB | 5 Q