3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $obj; } class Zoo { public $obj; public function show() { var_dump($this->obj); } } class Bar {} class Baz {} $foo = new Foo(); $zoo = new Zoo(); $a = new Bar(); $b = new Baz(); $zoo->obj = $foo->obj; $zoo->show(); $foo->obj = $a; $zoo->show(); $foo->obj = $b;

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.0100.00318.43
8.3.50.0150.00522.00
8.3.40.0110.00418.64
8.3.30.0030.01018.91
8.3.20.0030.00620.39
8.3.10.0050.00320.41
8.3.00.0050.00319.79
8.2.180.0090.00916.63
8.2.170.0120.00622.96
8.2.160.0070.00720.39
8.2.150.0000.00724.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00222.18
8.2.110.0100.00720.58
8.2.100.0040.00817.78
8.2.90.0050.00319.27
8.2.80.0030.00617.97
8.2.70.0080.00017.50
8.2.60.0060.00317.80
8.2.50.0120.00018.07
8.2.40.0040.00418.07
8.2.30.0050.00319.17
8.2.20.0040.00417.68
8.2.10.0040.00417.87
8.2.00.0000.00717.52
8.1.280.0070.00725.92
8.1.270.0040.00421.97
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0100.00723.92
8.1.230.0030.00917.45
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0030.00617.35
8.1.180.0070.00018.10
8.1.170.0040.00418.50
8.1.160.0050.00321.97
8.1.150.0040.00418.90
8.1.140.0000.00817.33
8.1.130.0070.00017.83
8.1.120.0040.00417.45
8.1.110.0080.00017.36
8.1.100.0040.00417.26
8.1.90.0000.00917.43
8.1.80.0000.00717.38
8.1.70.0000.00717.23
8.1.60.0030.00517.62
8.1.50.0050.00317.56
8.1.40.0040.00417.43
8.1.30.0050.00317.70
8.1.20.0030.00717.65
8.1.10.0040.00417.47
8.1.00.0000.00817.47
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0000.00718.32
8.0.270.0030.00317.20
8.0.260.0030.00317.11
8.0.250.0030.00316.84
8.0.240.0030.00316.78
8.0.230.0030.00316.85
8.0.220.0040.00416.82
8.0.210.0000.00816.82
8.0.200.0000.00716.77
8.0.190.0000.00716.83
8.0.180.0030.00316.84
8.0.170.0080.00016.82
8.0.160.0030.00516.71
8.0.150.0000.00816.67
8.0.140.0000.00716.78
8.0.130.0000.00613.32
8.0.120.0040.00416.68
8.0.110.0040.00416.77
8.0.100.0040.00416.87
8.0.90.0050.00316.91
8.0.80.0030.01316.75
8.0.70.0050.00216.78
8.0.60.0030.00516.70
8.0.50.0030.00516.72
8.0.30.0120.00616.91
8.0.20.0100.01417.40
8.0.10.0070.00016.89
8.0.00.0110.00916.69
7.4.330.0000.00615.00
7.4.320.0060.00016.43
7.4.300.0030.00316.68
7.4.290.0040.00416.53
7.4.280.0060.00316.50
7.4.270.0000.00716.46
7.4.260.0070.00016.46
7.4.250.0000.00816.55
7.4.240.0020.00616.63
7.4.230.0070.00016.50
7.4.220.0030.01416.52
7.4.210.0110.00916.41
7.4.200.0000.00716.40
7.4.160.0120.00916.56
7.4.150.0030.01817.40
7.4.140.0080.01017.86
7.4.130.0090.00816.36
7.4.120.0130.00616.36
7.4.110.0100.00716.35
7.4.100.0130.00416.49
7.4.90.0110.00516.54
7.4.80.0140.01016.51
7.4.70.0100.00716.24
7.4.60.0130.00316.35
7.4.50.0020.00216.29
7.4.40.0130.00916.56
7.4.30.0080.00816.26
7.4.00.0060.01114.76
7.3.330.0030.00313.23
7.3.320.0070.00013.16
7.3.310.0040.00416.11
7.3.300.0060.00016.25
7.3.290.0120.00916.35
7.3.280.0080.00816.27
7.3.270.0030.01317.40
7.3.260.0070.01016.46
7.3.250.0030.01516.54
7.3.240.0090.00916.23
7.3.230.0130.00616.39
7.3.210.0000.01616.60
7.3.200.0090.01319.39
7.3.190.0110.00616.42
7.3.180.0070.01016.21
7.3.170.0070.01016.48
7.3.160.0090.00616.32
7.3.120.0030.01514.74
7.3.110.0110.00714.78
7.3.100.0060.00915.05
7.3.90.0070.00714.76
7.3.80.0030.01014.86
7.3.70.0070.00414.99
7.3.60.0000.01014.68
7.3.50.0040.00814.89
7.3.40.0090.00614.65
7.3.30.0060.00614.63
7.3.20.0040.01216.58
7.3.10.0060.00316.54
7.3.00.0050.00816.45
7.2.330.0070.01716.77
7.2.320.0160.00416.45
7.2.310.0130.00316.55
7.2.300.0080.00816.31
7.2.290.0000.01716.67
7.2.250.0030.01414.83
7.2.240.0080.01114.88
7.2.230.0060.00914.60
7.2.220.0140.00315.27
7.2.210.0100.00314.79
7.2.200.0000.01714.95
7.2.190.0120.00315.01
7.2.180.0050.00514.94
7.2.170.0120.00615.00
7.2.130.0070.00716.49
7.2.120.0070.00716.36
7.2.110.0110.00816.54
7.2.100.0100.00316.41
7.2.90.0040.00816.55
7.2.80.0130.00016.87
7.2.70.0000.01016.89
7.2.60.0040.01116.63
7.2.50.0060.00916.46
7.2.40.0160.00416.54
7.2.30.0080.01116.74
7.2.20.0090.00916.44
7.2.10.0150.00617.04
7.2.00.0090.00418.16
7.1.330.0060.00915.77
7.1.320.0130.00715.89
7.1.310.0030.01015.86
7.1.300.0070.00715.96
7.1.290.0100.00315.99
7.1.280.0000.01215.77
7.1.270.0130.00315.71
7.1.260.0110.00016.01
7.1.250.0040.01215.59
7.1.200.0000.01315.73
7.1.100.0060.00618.04
7.1.70.0040.00417.20
7.1.60.0000.02319.32
7.1.50.0060.00616.98
7.1.00.0070.07322.36
7.0.200.0050.00216.61
7.0.140.0100.06322.08
7.0.60.0030.09020.04
7.0.50.0100.07017.87
7.0.40.0030.07720.30
7.0.30.0270.03720.27
7.0.20.0270.08320.20
7.0.10.0100.05020.08
7.0.00.0070.06020.22
5.6.280.0000.07721.13
5.6.210.0100.08020.55
5.6.200.0100.06018.29
5.6.190.0170.06720.61
5.6.180.3800.04020.45
5.6.170.0230.04320.62
5.6.160.0030.06020.56
5.6.150.0130.07318.27
5.6.140.0070.08318.27
5.6.130.0030.05718.26
5.6.120.0030.04720.99
5.6.110.0100.07320.97
5.6.100.0000.08720.99
5.6.90.0070.07721.12
5.6.80.0070.04320.38
5.6.70.0030.08020.40
5.5.350.0200.04720.43
5.5.340.0130.07017.93
5.5.330.0100.05320.27
5.5.320.0330.08020.51
5.5.310.0100.04720.34
5.5.300.0030.06717.95
5.5.290.0070.07317.95
5.5.280.0070.06320.88
5.5.270.0100.07720.65
5.5.260.0000.05320.96
5.5.250.0070.09020.66
5.5.240.0230.06720.27
5.4.450.0200.05319.61
5.4.440.0400.05719.16
5.4.430.0530.04319.48
5.4.420.0300.05719.58
5.4.410.0270.06319.32
5.4.400.0170.05019.25
5.4.390.0230.05019.27
5.4.380.0400.06318.63
5.4.370.0330.05018.78
5.4.360.0200.06718.47
5.4.350.0400.05318.75
5.4.340.0330.05318.84
5.4.320.0060.05212.50
5.4.310.0060.04812.50
5.4.300.0050.03712.50
5.4.290.0040.03912.50
5.4.280.0050.03612.39
5.4.270.0040.03812.39
5.4.260.0080.03512.39
5.4.250.0090.03312.39
5.4.240.0040.04212.39
5.4.230.0050.03712.39
5.4.220.0060.04412.39
5.4.210.0050.03512.38
5.4.200.0030.04712.39
5.4.190.0100.03112.38
5.4.180.0060.03512.39
5.4.170.0050.03612.40
5.4.160.0050.03512.39
5.4.150.0060.03412.39
5.4.140.0040.03812.07
5.4.130.0050.03512.05
5.4.120.0030.03712.02
5.4.110.0040.03812.01
5.4.100.0050.03612.02
5.4.90.0050.03712.01
5.4.80.0030.03812.01
5.4.70.0050.03512.01
5.4.60.0080.03112.01
5.4.50.0080.03812.01
5.4.40.0080.03212.00
5.4.30.0040.03512.00
5.4.20.0040.03511.99
5.4.10.0050.03411.99
5.4.00.0050.05011.48
5.3.290.0090.04412.80
5.3.280.0060.04912.71
5.3.270.0050.03912.72
5.3.260.0060.03912.72
5.3.250.0040.03812.72
5.3.240.0040.03712.71
5.3.230.0050.03612.71
5.3.220.0090.03212.68
5.3.210.0020.04212.68
5.3.200.0060.03512.68
5.3.190.0040.03812.68
5.3.180.0050.03612.67
5.3.170.0080.03312.67
5.3.160.0060.03512.67
5.3.150.0060.03612.67
5.3.140.0040.03612.66
5.3.130.0060.03712.66
5.3.120.0040.03912.66
5.3.110.0080.03512.65
5.3.100.0040.03712.12
5.3.90.0050.03512.10
5.3.80.0070.03412.09
5.3.70.0040.03712.09
5.3.60.0040.03812.08
5.3.50.0020.03912.02
5.3.40.0050.03612.03
5.3.30.0040.03511.99
5.3.20.0060.03411.77
5.3.10.0040.03511.73
5.3.00.0060.03511.72
5.2.170.0060.0289.22
5.2.160.0030.0309.22
5.2.150.0070.0279.21
5.2.140.0050.0309.21
5.2.130.0050.0289.18
5.2.120.0030.0299.18
5.2.110.0010.0329.19
5.2.100.0060.0269.18
5.2.90.0030.0309.18
5.2.80.0070.0309.18
5.2.70.0030.0319.18
5.2.60.0020.0329.13
5.2.50.0040.0299.09
5.2.40.0040.0289.07
5.2.30.0040.0299.05
5.2.20.0020.0309.04
5.2.10.0040.0278.95
5.2.00.0060.0268.81
5.1.60.0020.0258.09
5.1.50.0020.0268.09
5.1.40.0060.0228.07
5.1.30.0030.0268.42
5.1.20.0030.0278.44
5.1.10.0050.0258.16
5.1.00.0020.0288.16
5.0.50.0030.0216.64
5.0.40.0020.0206.50
5.0.30.0030.0346.32
5.0.20.0060.0236.29
5.0.10.0010.0256.25
5.0.00.0050.0286.25
4.4.90.0010.0174.78
4.4.80.0000.0244.76
4.4.70.0000.0214.75
4.4.60.0050.0184.76
4.4.50.0030.0184.77
4.4.40.0040.0244.71
4.4.30.0030.0154.76
4.4.20.0040.0144.85
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0020.0164.67
4.3.100.0030.0174.66
4.3.90.0030.0214.63
4.3.80.0030.0314.59
4.3.70.0010.0164.63
4.3.60.0020.0144.63
4.3.50.0050.0124.63
4.3.40.0060.0254.54
4.3.30.0010.0183.30
4.3.20.0020.0163.28
4.3.10.0020.0153.23
4.3.00.0000.0237.55

preferences:
36.13 ms | 401 KiB | 5 Q