3v4l.org

run code in 300+ PHP versions simultaneously
<?php unset($this); class Foo{ private static $this; protected $a = true; public function __construct(){ self::$this = new Foo(); echo "From Foo()"; } public static function init(){ //var_dump(new Foo); var_dump(self::$this->test()); echo "From Foo::init()"; } public function test(){ echo "called from static"; } } Foo::init();

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.0110.00416.88
8.3.50.0060.01522.80
8.3.40.0110.00418.46
8.3.30.0100.00319.14
8.3.20.0070.00020.01
8.3.10.0090.00023.84
8.3.00.0000.00719.38
8.2.180.0140.00716.63
8.2.170.0140.00022.96
8.2.160.0030.01020.35
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00420.89
8.2.110.0080.00022.18
8.2.100.0040.00817.97
8.2.90.0100.00019.09
8.2.80.0050.00317.97
8.2.70.0070.00317.38
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0040.00417.84
8.2.30.0000.00717.81
8.2.20.0000.00817.62
8.2.10.0030.00517.87
8.2.00.0000.00817.66
8.1.280.0100.00325.92
8.1.270.0030.00623.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0110.00423.87
8.1.230.0040.00719.13
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0000.00721.99
8.1.150.0000.00718.68
8.1.140.0000.00717.32
8.1.130.0000.00717.87
8.1.120.0040.00417.34
8.1.110.0000.00817.32
8.1.100.0000.00717.30
8.1.90.0030.00317.23
8.1.80.0030.00417.34
8.1.70.0000.00717.27
8.1.60.0000.00817.44
8.1.50.0040.00417.43
8.1.40.0040.00417.27
8.1.30.0030.00617.49
8.1.20.0060.00317.50
8.1.10.0040.00417.37
8.1.00.0000.00717.23
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.34
8.0.270.0040.00417.09
8.0.260.0000.00717.06
8.0.250.0000.00716.83
8.0.240.0060.00016.89
8.0.230.0000.00716.89
8.0.220.0000.00716.82
8.0.210.0030.00316.72
8.0.200.0060.00016.77
8.0.190.0060.00316.72
8.0.180.0040.00416.83
8.0.170.0090.00016.76
8.0.160.0040.00416.70
8.0.150.0000.00816.73
8.0.140.0030.00316.68
8.0.130.0090.00013.24
8.0.120.0000.00816.81
8.0.110.0000.00716.82
8.0.100.0040.00416.82
8.0.90.0030.00516.86
8.0.80.0100.01316.74
8.0.70.0050.00216.78
8.0.60.0000.00716.83
8.0.50.0000.00716.86
8.0.30.0100.00917.01
8.0.20.0100.00817.40
8.0.10.0000.00716.94
8.0.00.0070.01116.60
7.4.330.0030.00315.00
7.4.320.0030.00316.42
7.4.300.0000.00716.39
7.4.290.0000.00716.36
7.4.280.0000.00916.51
7.4.270.0060.00016.43
7.4.260.0050.00516.49
7.4.250.0040.00416.43
7.4.240.0020.00616.45
7.4.230.0030.00316.28
7.4.220.0130.00316.54
7.4.210.0080.00516.55
7.4.200.0000.00716.25
7.4.160.0070.01016.39
7.4.150.0140.00317.40
7.4.140.0070.01017.86
7.4.130.0100.01016.40
7.4.120.0060.01116.43
7.4.110.0060.01016.29
7.4.100.0110.01216.43
7.4.90.0030.01416.52
7.4.80.0080.00819.39
7.4.70.0110.01116.32
7.4.60.0100.01316.53
7.4.50.0080.00016.48
7.4.40.0160.00716.15
7.4.30.0130.00316.61
7.4.00.0000.01515.06
7.3.330.0040.00412.95
7.3.320.0000.00512.93
7.3.310.0030.00316.33
7.3.300.0060.00016.11
7.3.290.0040.00916.19
7.3.280.0050.01116.19
7.3.270.0110.00717.40
7.3.260.0090.00616.34
7.3.250.0100.00716.12
7.3.240.0160.00016.13
7.3.230.0070.01016.39
7.3.210.0100.00716.18
7.3.200.0100.00719.39
7.3.190.0150.00716.31
7.3.180.0160.00016.24
7.3.170.0060.01016.27
7.3.160.0090.00616.23
7.3.120.0000.01914.67
7.3.110.0000.01914.56
7.3.100.0030.01114.55
7.3.90.0140.00314.68
7.3.80.0060.00614.72
7.3.70.0080.00514.72
7.3.60.0050.00514.67
7.3.50.0100.00314.72
7.3.40.0080.00314.60
7.3.30.0040.01114.71
7.3.20.0070.01016.55
7.3.10.0070.01016.66
7.3.00.0070.00716.61
7.2.330.0070.01116.22
7.2.320.0100.00616.14
7.2.310.0080.01216.27
7.2.300.0130.00316.19
7.2.290.0070.01016.24
7.2.240.0000.01914.64
7.2.230.0060.00914.82
7.2.220.0110.00714.65
7.2.210.0060.00914.86
7.2.200.0070.01014.77
7.2.190.0060.00614.75
7.2.180.0060.00914.91
7.2.170.0100.00014.84
7.2.160.0000.01114.95
7.2.150.0070.00316.59
7.2.140.0080.00416.51
7.2.130.0090.00916.60
7.2.120.0070.00716.60
7.2.110.0100.00616.64
7.2.100.0060.00616.52
7.2.90.0030.01016.57
7.2.80.0090.00616.60
7.2.70.0030.01216.90
7.2.60.0090.00616.45
7.2.50.0060.00916.39
7.2.40.0030.00916.86
7.2.30.0060.00616.46
7.2.20.0050.00516.64
7.2.10.0030.00916.42
7.2.00.0070.00716.74
7.1.330.0030.00715.31
7.1.320.0080.00815.50
7.1.310.0030.01315.75
7.1.300.0090.00615.56
7.1.290.0090.00615.19
7.1.280.0030.01015.68
7.1.270.0030.01315.46
7.1.260.0040.00715.62
7.1.250.0030.01315.67
7.1.200.0040.00415.56
7.1.70.0000.00816.59
7.1.60.0140.01019.40
7.1.50.0030.02116.74
7.1.00.0030.07722.34
7.0.200.0000.01116.82
7.0.140.0000.07321.96
7.0.60.0100.05320.06
7.0.50.0100.08017.95
7.0.40.0070.04020.27
7.0.30.0370.05320.33
7.0.20.0270.05320.31
7.0.10.0030.08720.09
7.0.00.0100.07720.23
5.6.280.0070.07021.07
5.6.210.0130.07020.77
5.6.200.0070.07018.25
5.6.190.0230.05020.48
5.6.180.0170.04720.62
5.6.170.0300.06720.64
5.6.160.0070.07320.46
5.6.150.0070.08318.16
5.6.140.0030.04018.30
5.6.130.0000.05718.18
5.6.120.0070.08321.04
5.6.110.0200.07021.12
5.6.100.0100.08321.13
5.6.90.0070.05021.11
5.6.80.0070.04320.53
5.5.350.0230.08020.50
5.5.340.0070.05017.95
5.5.330.0000.09020.38
5.5.320.0230.08020.39
5.5.310.0230.05720.50
5.5.300.0070.06318.04
5.5.290.0070.05018.01
5.5.280.0030.05720.77
5.5.270.0170.03020.97
5.5.260.0100.05020.94
5.5.250.0030.06020.62
5.5.240.0230.07720.13
5.4.450.0930.04319.39
5.4.440.0300.04319.53
5.4.430.0370.04719.47
5.4.420.0430.04319.41
5.4.410.0530.04319.44
5.4.400.0330.04019.17
5.4.390.0130.04018.95
5.4.380.0400.06718.47
5.4.370.0270.06318.73
5.4.360.0300.05718.75
5.4.350.0230.06318.79
5.4.340.0300.05318.57
5.4.320.0090.03412.50
5.4.310.0070.03712.50
5.4.300.0080.03412.50
5.4.290.0050.03912.50
5.4.280.0080.03712.40
5.4.270.0090.03512.40
5.4.260.0070.03912.40
5.4.250.0050.04012.40
5.4.240.0040.03712.40
5.4.230.0010.04112.39
5.4.220.0060.03512.39
5.4.210.0020.03812.40
5.4.200.0060.04412.40
5.4.190.0060.03412.39
5.4.180.0070.03512.39
5.4.170.0080.03512.40
5.4.160.0050.04112.40
5.4.150.0040.04112.40
5.4.140.0060.03912.08
5.4.130.0070.04312.07
5.4.120.0070.04012.02
5.4.110.0030.03812.03
5.4.100.0080.03212.02
5.4.90.0080.03512.02
5.4.80.0060.03812.02
5.4.70.0050.03412.02
5.4.60.0040.03512.02
5.4.50.0050.03912.02
5.4.40.0040.03612.01
5.4.30.0050.03912.01
5.4.20.0080.03212.00
5.4.10.0060.03712.00
5.4.00.0060.04011.50
5.3.290.0080.03612.80
5.3.280.0100.03412.71
5.3.270.0040.04112.73
5.3.260.0040.04012.72
5.3.250.0060.04512.71
5.3.240.0050.03712.72
5.3.230.0070.03612.71
5.3.220.0070.03512.68
5.3.210.0040.03912.68
5.3.200.0060.03612.68
5.3.190.0040.03812.68
5.3.180.0070.03512.67
5.3.170.0050.03812.67
5.3.160.0070.03412.67
5.3.150.0050.04212.67
5.3.140.0090.03412.66
5.3.130.0080.03612.66
5.3.120.0030.04112.66
5.3.110.0090.03512.66
5.3.100.0040.03912.12
5.3.90.0040.03812.10
5.3.80.0050.03712.09
5.3.70.0020.03912.09
5.3.60.0060.04012.07
5.3.50.0050.03512.02
5.3.40.0070.04912.02
5.3.30.0060.03511.98
5.3.20.0090.03611.76
5.3.10.0040.03511.73
5.3.00.0080.03311.71
5.2.170.0050.0339.22
5.2.160.0060.0279.22
5.2.150.0060.0329.22
5.2.140.0080.0279.22
5.2.130.0010.0339.18
5.2.120.0040.0289.18
5.2.110.0040.0299.18
5.2.100.0020.0309.18
5.2.90.0020.0319.18
5.2.80.0050.0299.17
5.2.70.0070.0279.17
5.2.60.0060.0279.12
5.2.50.0030.0329.09
5.2.40.0030.0309.08
5.2.30.0040.0339.05
5.2.20.0030.0329.03
5.2.10.0040.0358.94
5.2.00.0060.0308.80
5.1.60.0030.0248.08
5.1.50.0020.0268.08
5.1.40.0040.0258.07
5.1.30.0080.0258.41
5.1.20.0060.0288.44
5.1.10.0060.0278.16
5.1.00.0030.0268.16
5.0.50.0030.0216.64
5.0.40.0030.0196.49
5.0.30.0050.0316.32
5.0.20.0050.0266.27
5.0.10.0020.0216.25
5.0.00.0040.0306.24
4.4.90.0020.0194.78
4.4.80.0020.0164.75
4.4.70.0050.0194.75
4.4.60.0030.0154.76
4.4.50.0060.0124.77
4.4.40.0000.0284.71
4.4.30.0040.0144.75
4.4.20.0040.0184.84
4.4.10.0010.0184.85
4.4.00.0040.0294.75
4.3.110.0020.0164.67
4.3.100.0020.0154.66
4.3.90.0040.0164.63
4.3.80.0030.0264.59
4.3.70.0010.0224.63
4.3.60.0030.0144.63
4.3.50.0010.0174.63
4.3.40.0010.0254.54
4.3.30.0040.0203.30
4.3.20.0000.0183.28
4.3.10.0000.0173.24
4.3.00.0030.01715.63

preferences:
52.22 ms | 401 KiB | 5 Q