3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct($x, $y) { $this->x = $x; $this->y = $y; } } $one = new Foo("foo", $a = [&$b]); $two = new Foo("foo", $b = [&$a]); var_dump($one == $two);

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.5.00.0120.00919.96
8.4.150.0020.00014.05
8.4.140.0100.01217.81
8.4.130.0110.00918.60
8.4.120.0050.00320.48
8.4.110.0120.00918.97
8.4.100.0150.00618.18
8.4.90.0120.00820.80
8.4.80.0090.00818.98
8.4.70.0120.00722.13
8.4.60.0120.00918.54
8.4.50.0120.00817.92
8.4.40.0160.00317.94
8.4.30.0080.00317.94
8.4.20.0100.01317.71
8.4.10.0190.00317.87
8.3.280.0150.00518.41
8.3.270.0130.00716.70
8.3.260.0050.00416.82
8.3.250.0100.00618.97
8.3.240.0130.00716.82
8.3.230.0120.00718.27
8.3.220.0130.00619.14
8.3.210.0090.00616.66
8.3.200.0040.00416.73
8.3.190.0080.00817.26
8.3.180.0060.00216.56
8.3.170.0050.00318.99
8.3.160.0120.00616.74
8.3.150.0090.00918.82
8.3.140.0000.01416.87
8.3.130.0090.00016.91
8.3.120.0160.00320.88
8.3.110.0100.00618.63
8.3.100.0040.00418.56
8.3.90.0050.00226.77
8.3.80.0030.00619.36
8.3.70.0180.00416.73
8.3.60.0150.00316.99
8.3.50.0150.00721.32
8.3.40.0090.00918.98
8.3.30.0140.00018.63
8.3.20.0040.00420.34
8.3.10.0040.00423.48
8.3.00.0080.00023.71
8.2.290.0120.00616.74
8.2.280.0130.00618.60
8.2.270.0000.00817.17
8.2.260.0140.00318.81
8.2.250.0130.00616.58
8.2.240.0110.00718.71
8.2.230.0080.00020.94
8.2.220.0030.00624.06
8.2.210.0050.00226.77
8.2.200.0060.00318.88
8.2.190.0100.00716.75
8.2.180.0090.01316.63
8.2.170.0110.00419.04
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00320.80
8.2.120.0080.00026.35
8.2.110.0070.00419.21
8.2.100.0060.00618.05
8.2.90.0080.00019.34
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00418.04
8.2.50.0050.00718.09
8.2.40.0040.00422.27
8.2.30.0000.00719.43
8.2.20.0050.00517.61
8.2.10.0000.00818.13
8.2.00.0070.00018.11
8.1.330.0100.01016.42
8.1.320.0110.00818.02
8.1.310.0150.00316.80
8.1.300.0090.00918.64
8.1.290.0070.00330.84
8.1.280.0170.00025.92
8.1.270.0100.00323.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.34
8.1.230.0080.00317.70
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00718.64
8.1.160.0020.00520.80
8.1.150.0060.00318.80
8.1.140.0040.00419.51
8.1.130.0070.00017.63
8.1.120.0030.00317.38
8.1.110.0000.00717.48
8.1.100.0040.00417.55
8.1.90.0040.00417.30
8.1.80.0040.00417.41
8.1.70.0030.00317.33
8.1.60.0020.00517.58
8.1.50.0030.00617.52
8.1.40.0040.00417.41
8.1.30.0050.00317.63
8.1.20.0000.00817.45
8.1.10.0030.00517.51
8.1.00.0040.00417.55
8.0.300.0040.00418.77
8.0.290.0050.00316.88
8.0.280.0030.00318.34
8.0.270.0000.00717.21
8.0.260.0030.00317.25
8.0.250.0000.00717.02
8.0.240.0030.00317.03
8.0.230.0070.00016.88
8.0.220.0080.00016.87
8.0.210.0040.00417.00
8.0.200.0000.00716.92
8.0.190.0050.00217.00
8.0.180.0040.00416.88
8.0.170.0140.00517.04
8.0.160.0070.00016.85
8.0.150.0070.00016.82
8.0.140.0040.00616.82
8.0.130.0060.00013.34
8.0.120.0040.00416.88
8.0.110.0070.00016.82
8.0.100.0040.00416.91
8.0.90.0040.00416.89
8.0.80.0120.00316.91
8.0.70.0070.00017.02
8.0.60.0050.00216.85
8.0.50.0040.00416.76
8.0.30.0110.00817.15
8.0.20.0120.01117.40
8.0.10.0050.00216.92
8.0.00.0110.00716.79
7.4.330.0060.00016.76
7.4.320.0030.00316.62
7.4.300.0050.00316.49
7.4.290.0000.00716.52
7.4.280.0000.00716.51
7.4.270.0030.00316.50
7.4.260.0040.00416.58
7.4.250.0050.00216.49
7.4.240.0030.00316.43
7.4.230.0030.00316.63
7.4.220.0070.01316.68
7.4.210.0060.00916.54
7.4.200.0070.00016.40
7.4.160.0150.00016.44
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0080.01616.49
7.4.120.0100.00716.65
7.4.110.0030.01316.58
7.4.100.0200.00316.57
7.4.90.0030.01316.72
7.4.80.0060.01519.39
7.4.70.0080.00816.52
7.4.60.0070.01116.73
7.4.50.0060.00616.66
7.4.40.0110.00516.46
7.4.30.0040.01916.69
7.4.00.0070.01014.94
7.3.330.0020.00213.27
7.3.320.0000.00513.30
7.3.310.0070.00016.30
7.3.300.0060.00016.35
7.3.290.0000.00716.18
7.3.280.0100.00616.32
7.3.270.0060.01117.40
7.3.260.0120.00916.37
7.3.250.0110.00816.29
7.3.240.0110.01116.40
7.3.230.0140.00916.39
7.3.210.0100.00716.47
7.3.200.0080.00819.39
7.3.190.0090.00916.52
7.3.180.0100.00716.39
7.3.170.0100.01016.29
7.3.160.0060.01216.43
7.2.330.0030.01316.73
7.2.320.0080.01416.70
7.2.310.0100.00716.52
7.2.300.0060.01016.63
7.2.290.0130.00316.68
7.2.110.0140.01016.55
7.2.60.0040.01117.09
7.2.00.0000.01019.23
7.1.200.0080.00415.68
7.1.100.0030.00717.84
7.1.70.0040.00416.82
7.1.60.0140.01119.40
7.1.50.0000.02116.83
7.1.00.0100.07022.48
7.0.200.0510.00014.54
7.0.60.0230.08021.59
7.0.50.0130.06717.86
7.0.40.0070.09020.13
7.0.30.0400.05020.16
7.0.20.0330.05020.13
7.0.10.0030.08020.20
7.0.00.0100.03720.24
5.6.280.0000.08720.79
5.6.210.0100.07720.61
5.6.200.0070.05718.12
5.6.190.0030.07320.64
5.6.180.0330.04720.68
5.6.170.0300.07320.47
5.6.160.0030.04720.55
5.6.150.0030.04718.15
5.6.140.0030.04018.28
5.6.130.0030.04018.14
5.6.120.0170.07721.03
5.6.110.0130.07721.14
5.6.100.0300.06721.11
5.6.90.0030.09321.09
5.6.80.0100.08020.38
5.5.350.0170.06720.38
5.5.340.0130.04317.99
5.5.330.0070.05720.43
5.5.320.0200.04720.51
5.5.310.0300.07320.31
5.5.300.0100.06317.91
5.5.290.0170.06717.98
5.5.280.0070.08020.65
5.5.270.0100.07720.64
5.5.260.0070.04020.85
5.5.250.0100.08020.55
5.5.240.4270.03320.26

preferences:
43 ms | 403 KiB | 5 Q