3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { protected $profile; public function setProfile(Profile $profile) { $this->profile = $profile; } } class Profile { protected $user; public function __construct(User $user) { $this->user = $user; $user->setProfile($this); } } $user1 = new User(); $profile1 = new Profile($user1); $user2 = new User(); $profile2 = new Profile($user2); var_dump($profile1 == $profile2);

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.70.0080.00818.31
8.3.60.0040.01416.63
8.3.50.0070.01322.03
8.3.40.0070.00718.94
8.3.30.0080.00619.27
8.3.20.0040.00420.37
8.3.10.0030.00523.65
8.3.00.0020.00520.77
8.2.180.0200.00316.50
8.2.170.0110.00322.96
8.2.160.0070.00720.44
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00320.90
8.2.110.0060.00320.35
8.2.100.0060.00617.91
8.2.90.0000.00819.23
8.2.80.0060.00317.97
8.2.70.0030.00617.38
8.2.60.0030.00518.05
8.2.50.0070.00318.07
8.2.40.0030.00621.13
8.2.30.0000.00718.31
8.2.20.0000.00817.61
8.2.10.0000.00818.00
8.2.00.0040.00417.72
8.1.280.0120.00925.92
8.1.270.0080.00023.88
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00023.93
8.1.230.0000.01117.42
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0050.00318.61
8.1.160.0000.00721.96
8.1.150.0050.00318.70
8.1.140.0040.00417.36
8.1.130.0000.00817.86
8.1.120.0050.00317.50
8.1.110.0040.00417.49
8.1.100.0030.00317.48
8.1.90.0030.00317.45
8.1.80.0040.00417.52
8.1.70.0000.00717.44
8.1.60.0000.01217.48
8.1.50.0040.00417.35
8.1.40.0040.00417.57
8.1.30.0040.00417.62
8.1.20.0040.00417.70
8.1.10.0000.00817.40
8.1.00.0030.00717.45
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0070.00017.27
8.0.260.0040.00417.27
8.0.250.0000.00716.98
8.0.240.0040.00416.92
8.0.230.0000.00716.98
8.0.220.0040.00416.96
8.0.210.0040.00416.99
8.0.200.0060.00016.91
8.0.190.0030.00617.05
8.0.180.0000.00816.82
8.0.170.0000.00816.86
8.0.160.0040.00416.78
8.0.150.0000.00816.88
8.0.140.0060.00316.91
8.0.130.0000.00513.35
8.0.120.0000.00816.88
8.0.110.0000.00716.95
8.0.100.0070.00016.79
8.0.90.0030.00516.98
8.0.80.0150.00816.99
8.0.70.0040.00416.85
8.0.60.0040.00416.80
8.0.50.0070.00016.94
8.0.30.0060.01317.10
8.0.20.0090.01017.40
8.0.10.0000.00716.96
8.0.00.0100.00816.82
7.4.330.0000.00515.00
7.4.320.0030.00316.60
7.4.300.0060.00016.59
7.4.290.0000.00716.63
7.4.280.0060.00316.61
7.4.270.0030.00316.44
7.4.260.0040.00416.57
7.4.250.0040.00416.43
7.4.240.0050.00216.49
7.4.230.0050.00316.68
7.4.220.0070.01816.58
7.4.210.0070.00716.41
7.4.200.0070.00016.41
7.4.160.0030.01316.51
7.4.150.0120.00917.40
7.4.140.0150.00917.86
7.4.130.0130.00416.61
7.4.120.0050.01216.63
7.4.110.0060.01016.72
7.4.100.0130.01016.73
7.4.90.0160.00016.46
7.4.80.0030.01319.39
7.4.70.0170.00316.54
7.4.60.0080.00916.50
7.4.50.0030.00616.56
7.4.40.0070.01116.58
7.4.30.0040.01516.57
7.4.00.0040.01014.74
7.3.330.0020.00213.29
7.3.320.0000.00813.28
7.3.310.0000.00716.16
7.3.300.0040.00416.32
7.3.290.0080.00616.32
7.3.280.0070.01116.31
7.3.270.0110.00717.40
7.3.260.0120.01216.63
7.3.250.0140.00616.36
7.3.240.0160.00016.49
7.3.230.0090.01216.39
7.3.210.0100.00716.51
7.3.200.0080.01619.39
7.3.190.0110.00716.41
7.3.180.0090.00616.28
7.3.170.0100.00716.35
7.3.160.0080.00816.40
7.3.120.0090.00614.85
7.3.110.0100.00714.78
7.3.100.0090.00314.75
7.3.90.0060.00914.84
7.3.80.0030.00814.66
7.3.70.0070.00714.71
7.3.60.0030.01314.57
7.3.50.0060.00614.64
7.3.40.0050.00914.37
7.3.30.0100.00614.41
7.3.20.0070.00716.74
7.3.10.0040.01216.69
7.3.00.0030.00716.47
7.2.330.0130.01016.67
7.2.320.0000.01616.61
7.2.310.0090.01516.54
7.2.300.0030.01316.48
7.2.290.0150.00616.43
7.2.250.0100.01014.96
7.2.240.0030.01715.13
7.2.230.0110.00314.90
7.2.220.0070.00714.80
7.2.210.0090.00315.02
7.2.200.0090.00614.97
7.2.190.0060.00615.03
7.2.180.0000.00915.23
7.2.170.0100.00614.79
7.2.00.0060.01019.39
7.1.330.0060.00915.23
7.1.320.0100.00315.88
7.1.310.0000.01115.80
7.1.300.0100.00715.69
7.1.290.0000.01115.98
7.1.280.0030.00615.66
7.1.270.0060.00915.79
7.1.260.0030.01515.69
7.1.100.0000.01517.77
7.1.70.0110.00317.16
7.1.60.0040.01119.70
7.1.50.0130.01016.77
7.1.00.0030.07722.42
7.0.200.0000.00716.75
7.0.140.0100.06722.15
7.0.60.0100.03719.98
7.0.50.0170.07017.86
7.0.40.0130.07020.40
7.0.30.0270.07320.21
7.0.20.0330.06320.08
7.0.10.0170.06320.22
7.0.00.0070.06720.22
5.6.280.0100.06721.13
5.6.210.0070.05720.65
5.6.200.0000.05018.23
5.6.190.0100.08720.52
5.6.180.0000.04720.52
5.6.170.0500.07020.57
5.6.160.0070.09020.57
5.6.150.0070.05018.19
5.6.140.0100.03318.27
5.6.130.0130.08018.18
5.6.120.0070.04321.03
5.6.110.0070.08321.09
5.6.100.0030.04021.11
5.6.90.0000.08720.97
5.6.80.0200.06720.42
5.6.70.0200.03720.50
5.5.350.0000.08320.33
5.5.340.0070.07318.00
5.5.330.0070.08320.44
5.5.320.0470.06320.34
5.5.310.0270.05320.24
5.5.300.0030.05317.98
5.5.290.0300.03317.98
5.5.280.0130.07720.66
5.5.270.0030.05720.77
5.5.260.0070.06720.80
5.5.250.0130.08320.50
5.5.240.0070.05720.36
5.4.450.0330.04329.93
5.4.440.0470.04329.93
5.4.430.0230.04329.93
5.4.420.0300.04029.93
5.4.410.0170.05029.92
5.4.400.0100.05029.48
5.4.390.0270.04328.52
5.4.380.0300.05718.58
5.4.370.0400.04718.48
5.4.360.0230.05718.75
5.4.350.0300.05018.78
5.4.340.0230.05718.78
5.4.320.0070.03812.51
5.4.310.0060.04812.50
5.4.300.0040.03812.50
5.4.290.0100.03512.50
5.4.280.0090.03412.40
5.4.270.0070.04112.40
5.4.260.0050.03912.40
5.4.250.0050.03812.40
5.4.240.0040.03912.39
5.4.230.0070.03712.39
5.4.220.0080.04412.39
5.4.210.0040.03812.39
5.4.200.0120.03212.39
5.4.190.0050.04112.38
5.4.180.0060.03612.38
5.4.170.0060.03612.39
5.4.160.0060.03912.39
5.4.150.0070.03812.39
5.4.140.0070.03612.07
5.4.130.0070.03412.06
5.4.120.0050.03812.02
5.4.110.0130.04719.98
5.4.100.0110.03819.98
5.4.90.0100.03819.98
5.4.80.0070.03919.98
5.4.70.0090.03519.97
5.4.60.0090.03519.97
5.4.50.0100.04419.97
5.4.40.0090.03519.96
5.4.30.0080.03719.96
5.4.20.0080.03719.96
5.4.10.0110.03219.96
5.4.00.0100.03519.45
5.3.290.0060.03912.80
5.3.280.0060.03912.71
5.3.270.0070.03912.72
5.3.260.0080.03812.72
5.3.250.0110.03712.71
5.3.240.0050.03912.72
5.3.230.0060.03712.71
5.3.220.0090.04312.68
5.3.210.0040.04212.68
5.3.200.0060.03712.68
5.3.190.0080.03812.68
5.3.180.0070.04112.67
5.3.170.0050.03912.67
5.3.160.0080.03512.68
5.3.150.0040.04112.68
5.3.140.0100.03812.66
5.3.130.0090.03712.66
5.3.120.0090.05412.66
5.3.110.0090.05312.66
5.3.100.0050.04512.13
5.3.90.0080.03812.11
5.3.80.0100.03712.10
5.3.70.0040.04312.10
5.3.60.0080.04012.08
5.3.50.0060.03812.04
5.3.40.0080.03712.04
5.3.30.0040.03911.99
5.3.20.0090.03711.77
5.3.10.0080.03411.73
5.3.00.0090.04011.73
5.2.170.0020.0349.22
5.2.160.0040.0359.23
5.2.150.0080.0289.23
5.2.140.0080.0319.23
5.2.130.0040.0339.19
5.2.120.0050.0309.19
5.2.110.0040.0389.19
5.2.100.0050.0329.19
5.2.90.0050.0319.19
5.2.80.0050.0339.18
5.2.70.0080.0359.18
5.2.60.0040.0319.13
5.2.50.0050.0429.10
5.2.40.0030.0309.08
5.2.30.0050.0309.06
5.2.20.0080.0269.04
5.2.10.0050.0298.95
5.2.00.0040.0328.82
5.1.60.0040.0328.10
5.1.50.0060.0248.09
5.1.40.0040.0248.08
5.1.30.0050.0258.43
5.1.20.0040.0268.45
5.1.10.0070.0268.17
5.1.00.0040.0258.17
5.0.50.0060.0236.65
5.0.40.0030.0196.51
5.0.30.0030.0316.32
5.0.20.0020.0206.29
5.0.10.0010.0296.27
5.0.00.0030.0336.26
4.4.90.0030.0224.78
4.4.80.0030.0154.75
4.4.70.0050.0144.75
4.4.60.0030.0174.75
4.4.50.0030.0194.77
4.4.40.0020.0274.71
4.4.30.0050.0164.76
4.4.20.0020.0164.85
4.4.10.0050.0134.85
4.4.00.0040.0234.76
4.3.110.0020.0164.67
4.3.100.0030.0154.66
4.3.90.0020.0204.63
4.3.80.0030.0244.58
4.3.70.0020.0154.63
4.3.60.0030.0164.63
4.3.50.0010.0174.63
4.3.40.0030.0234.54
4.3.30.0020.0163.30
4.3.20.0030.0203.28
4.3.10.0020.0193.24
4.3.00.0030.01728.29

preferences:
45.54 ms | 401 KiB | 5 Q