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; $zoo->show();

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.0090.00518.27
8.3.50.0140.00722.12
8.3.40.0070.00718.63
8.3.30.0070.00719.09
8.3.20.0040.00420.34
8.3.10.0040.00420.38
8.3.00.0000.00819.66
8.2.180.0070.01116.50
8.2.170.0080.00622.96
8.2.160.0130.00020.35
8.2.150.0000.00724.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0080.00022.29
8.2.110.0000.00820.52
8.2.100.0110.00017.97
8.2.90.0040.00419.05
8.2.80.0060.00317.97
8.2.70.0040.00417.38
8.2.60.0040.00417.92
8.2.50.0100.00318.07
8.2.40.0040.00417.78
8.2.30.0040.00419.35
8.2.20.0060.00317.63
8.2.10.0080.00017.99
8.2.00.0000.00817.56
8.1.280.0140.00025.92
8.1.270.0000.00822.14
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00423.66
8.1.230.0040.00719.03
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0030.00618.69
8.1.160.0000.00721.99
8.1.150.0040.00418.83
8.1.140.0040.00417.39
8.1.130.0000.00717.83
8.1.120.0040.00417.39
8.1.110.0040.00417.29
8.1.100.0040.00417.45
8.1.90.0000.01117.29
8.1.80.0040.00417.30
8.1.70.0040.00417.32
8.1.60.0000.00717.56
8.1.50.0040.00417.43
8.1.40.0070.00017.54
8.1.30.0060.00317.55
8.1.20.0040.00417.66
8.1.10.0050.00317.51
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.43
8.0.270.0030.00317.20
8.0.260.0060.00017.22
8.0.250.0070.00016.77
8.0.240.0000.00616.86
8.0.230.0030.00316.88
8.0.220.0000.00716.71
8.0.210.0000.00716.86
8.0.200.0040.00416.90
8.0.190.0040.00416.81
8.0.180.0040.00416.76
8.0.170.0040.00416.87
8.0.160.0000.00716.77
8.0.150.0080.00016.86
8.0.140.0020.00516.69
8.0.130.0000.00513.25
8.0.120.0080.00016.82
8.0.110.0040.00416.70
8.0.100.0000.00816.78
8.0.90.0040.00416.89
8.0.80.0120.00916.79
8.0.70.0040.00416.77
8.0.60.0000.00716.72
8.0.50.0070.00016.86
8.0.30.0120.00717.07
8.0.20.0130.01217.40
8.0.10.0040.00417.02
8.0.00.0100.00916.81
7.4.330.0050.00015.00
7.4.320.0070.00016.52
7.4.300.0060.00016.65
7.4.290.0070.00016.43
7.4.280.0040.00416.57
7.4.270.0000.00616.58
7.4.260.0030.00316.48
7.4.250.0050.00216.57
7.4.240.0020.00516.53
7.4.230.0030.00316.31
7.4.220.0030.02316.51
7.4.210.0100.01016.52
7.4.200.0030.00316.49
7.4.160.0140.00716.43
7.4.150.0140.00517.40
7.4.140.0120.00817.86
7.4.130.0090.00716.51
7.4.120.0080.00916.53
7.4.110.0070.01116.35
7.4.100.0090.00916.59
7.4.90.0100.00616.50
7.4.80.0090.01216.42
7.4.70.0120.00316.57
7.4.60.0130.00316.56
7.4.50.0030.00316.35
7.4.40.0070.01116.58
7.4.30.0090.00616.36
7.4.00.0130.00314.87
7.3.330.0050.00013.09
7.3.320.0060.00013.18
7.3.310.0000.00716.26
7.3.300.0030.00316.30
7.3.290.0080.00816.29
7.3.280.0090.00616.24
7.3.270.0110.00817.40
7.3.260.0030.01316.33
7.3.250.0100.01116.44
7.3.240.0090.01216.19
7.3.230.0040.01316.39
7.3.210.0160.00616.44
7.3.200.0090.00619.39
7.3.190.0120.00616.34
7.3.180.0130.00616.59
7.3.170.0060.01016.27
7.3.160.0060.00916.38
7.3.120.0100.00714.95
7.3.110.0070.01114.81
7.3.100.0030.01014.56
7.3.90.0060.01014.82
7.3.80.0000.01214.74
7.3.70.0030.00514.93
7.3.60.0040.00414.48
7.3.50.0030.01014.98
7.3.40.0030.00714.53
7.3.30.0050.00814.87
7.3.20.0090.00616.60
7.3.10.0030.01016.54
7.3.00.0030.01316.60
7.2.330.0060.01316.73
7.2.320.0100.00716.47
7.2.310.0140.00316.56
7.2.300.0060.00916.80
7.2.290.0090.00616.68
7.2.240.0060.01214.83
7.2.230.0120.00614.82
7.2.220.0100.00715.20
7.2.210.0070.00714.79
7.2.200.0080.00414.95
7.2.190.0000.01215.05
7.2.180.0030.01014.96
7.2.170.0000.01014.91
7.2.160.0090.00414.96
7.2.150.0000.01616.66
7.2.140.0040.01216.64
7.2.130.0030.01016.64
7.2.120.0080.00616.58
7.2.110.0120.00316.94
7.2.100.0030.01216.82
7.2.90.0130.00317.11
7.2.80.0000.01516.75
7.2.70.0070.00716.71
7.2.60.0050.00817.04
7.2.50.0040.01416.83
7.2.40.0130.00316.97
7.2.30.0040.01117.02
7.2.20.0060.00616.56
7.2.10.0060.00916.77
7.2.00.0070.00718.17
7.1.330.0030.00915.50
7.1.320.0040.00715.85
7.1.310.0000.01315.86
7.1.300.0070.00715.73
7.1.290.0060.00715.61
7.1.280.0060.00915.46
7.1.270.0030.00715.91
7.1.260.0030.01315.71
7.1.250.0060.00615.64
7.1.200.0040.01115.85
7.1.100.0040.01217.89
7.1.70.0040.00416.71
7.1.60.0100.01019.32
7.1.50.0070.01416.93
7.1.00.0000.07722.44
7.0.200.0060.00916.71
7.0.140.0030.07321.92
7.0.60.0100.05719.98
7.0.50.0070.08317.86
7.0.40.0070.05720.13
7.0.30.0100.04720.06
7.0.20.0330.05020.23
7.0.10.0200.08020.20
7.0.00.0070.05020.14
5.6.280.0100.06720.78
5.6.210.0070.08720.46
5.6.200.0070.05718.20
5.6.190.0070.05020.48
5.6.180.0730.05020.57
5.6.170.0200.09020.55
5.6.160.0030.05020.51
5.6.150.0130.07318.13
5.6.140.0100.07018.28
5.6.130.0130.08318.21
5.6.120.0100.08721.13
5.6.110.0100.07020.94
5.6.100.0070.07320.99
5.6.90.0070.08321.12
5.6.80.0100.08020.39
5.6.70.2670.02720.52
5.5.350.0100.08020.36
5.5.340.0070.04017.92
5.5.330.0030.07720.21
5.5.320.0400.06720.42
5.5.310.0230.05020.35
5.5.300.0070.03717.96
5.5.290.0070.05717.95
5.5.280.0070.08320.85
5.5.270.0070.08720.97
5.5.260.0100.08020.96
5.5.250.0100.04020.59
5.5.240.2030.05720.16
5.4.450.0230.05719.48
5.4.440.0330.06019.63
5.4.430.0330.05019.33
5.4.420.0100.05319.47
5.4.410.0200.04319.35
5.4.400.0400.05019.06
5.4.390.0470.04719.15
5.4.380.0300.06318.50
5.4.370.0270.05018.84
5.4.360.0330.05718.75
5.4.350.0370.07318.84
5.4.340.0400.04018.84
5.4.320.0060.03512.50
5.4.310.0070.03712.50
5.4.300.0050.03812.50
5.4.290.0070.03612.50
5.4.280.0030.03912.39
5.4.270.0070.03412.39
5.4.260.0040.03912.39
5.4.250.0050.03912.39
5.4.240.0050.03712.39
5.4.230.0060.03712.38
5.4.220.0040.03812.39
5.4.210.0070.03412.39
5.4.200.0080.03512.39
5.4.190.0040.03812.38
5.4.180.0030.03812.38
5.4.170.0040.03812.39
5.4.160.0020.03912.39
5.4.150.0040.03812.39
5.4.140.0070.03912.07
5.4.130.0070.03412.06
5.4.120.0040.03712.02
5.4.110.0100.03112.02
5.4.100.0050.03512.01
5.4.90.0050.03612.01
5.4.80.0040.03712.02
5.4.70.0080.03112.01
5.4.60.0070.04212.01
5.4.50.0040.03712.01
5.4.40.0100.03112.00
5.4.30.0110.03711.99
5.4.20.0030.03812.00
5.4.10.0060.03511.99
5.4.00.0050.03611.48
5.3.290.0060.03912.80
5.3.280.0100.03512.71
5.3.270.0070.03812.72
5.3.260.0090.03712.72
5.3.250.0040.04412.72
5.3.240.0080.04112.72
5.3.230.0080.03712.71
5.3.220.0060.03712.68
5.3.210.0060.03812.68
5.3.200.0060.03612.68
5.3.190.0060.04112.68
5.3.180.0040.03812.68
5.3.170.0060.04012.67
5.3.160.0050.03812.68
5.3.150.0030.03912.67
5.3.140.0050.03712.66
5.3.130.0020.04212.65
5.3.120.0070.03612.66
5.3.110.0070.04312.66
5.3.100.0030.03912.12
5.3.90.0040.03812.10
5.3.80.0080.03412.09
5.3.70.0070.03512.09
5.3.60.0080.03312.07
5.3.50.0070.03612.02
5.3.40.0050.05012.02
5.3.30.0090.04411.99
5.3.20.0050.03611.77
5.3.10.0040.03611.73
5.3.00.0090.03311.71
5.2.170.0010.0359.22
5.2.160.0040.0319.22
5.2.150.0060.0329.22
5.2.140.0030.0329.22
5.2.130.0040.0299.18
5.2.120.0070.0269.18
5.2.110.0060.0289.19
5.2.100.0040.0309.18
5.2.90.0040.0299.18
5.2.80.0050.0299.18
5.2.70.0060.0289.18
5.2.60.0030.0349.13
5.2.50.0070.0299.09
5.2.40.0050.0289.07
5.2.30.0040.0299.05
5.2.20.0050.0289.04
5.2.10.0010.0318.95
5.2.00.0020.0318.81
5.1.60.0060.0228.09
5.1.50.0050.0258.08
5.1.40.0060.0238.07
5.1.30.0030.0278.42
5.1.20.0050.0268.44
5.1.10.0030.0278.16
5.1.00.0050.0258.16
5.0.50.0040.0206.64
5.0.40.0030.0196.50
5.0.30.0050.0296.32
5.0.20.0020.0216.29
5.0.10.0020.0216.26
5.0.00.0040.0306.25
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0030.0154.76
4.4.60.0010.0174.75
4.4.50.0040.0144.77
4.4.40.0020.0254.71
4.4.30.0010.0174.76
4.4.20.0020.0164.84
4.4.10.0040.0144.85
4.4.00.0040.0234.76
4.3.110.0040.0144.67
4.3.100.0020.0154.66
4.3.90.0040.0134.63
4.3.80.0040.0224.59
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0040.0144.63
4.3.40.0040.0234.54
4.3.30.0010.0173.30
4.3.20.0010.0173.28
4.3.10.0000.0173.23
4.3.00.0000.0277.55

preferences:
44.03 ms | 401 KiB | 5 Q