3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ private static $this; protected $a = true; public function __construct(){ self::$this = new Foo(); echo "From Foo()"; } public static function init(){ var_dump($this); //var_dump(self::$this); 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.0180.00016.63
8.3.50.0050.01222.83
8.3.40.0110.01418.61
8.3.30.0030.01019.10
8.3.20.0050.00220.34
8.3.10.0040.00423.48
8.3.00.0030.00619.38
8.2.180.0030.01316.63
8.2.170.0150.00622.96
8.2.160.0070.00720.11
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00821.04
8.2.110.0000.00822.07
8.2.100.0080.00418.03
8.2.90.0030.00618.95
8.2.80.0080.00017.97
8.2.70.0090.00317.63
8.2.60.0000.00717.80
8.2.50.0050.00518.07
8.2.40.0040.00418.05
8.2.30.0000.00718.07
8.2.20.0000.00717.64
8.2.10.0040.00417.93
8.2.00.0000.00717.73
8.1.280.0130.00725.92
8.1.270.0090.00023.84
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0130.00323.82
8.1.230.0100.00319.02
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.11
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0000.00722.00
8.1.150.0000.00718.64
8.1.140.0040.00417.33
8.1.130.0000.00717.80
8.1.120.0000.00817.34
8.1.110.0040.00417.23
8.1.100.0000.00717.30
8.1.90.0000.00717.21
8.1.80.0000.00717.37
8.1.70.0000.00717.25
8.1.60.0000.00817.52
8.1.50.0040.00417.42
8.1.40.0020.00517.36
8.1.30.0000.00817.52
8.1.20.0070.00317.54
8.1.10.0040.00417.42
8.1.00.0050.00317.47
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.38
8.0.270.0000.00817.24
8.0.260.0030.00317.20
8.0.250.0030.00316.96
8.0.240.0000.00616.97
8.0.230.0000.00716.83
8.0.220.0060.00016.88
8.0.210.0050.00316.83
8.0.200.0000.00616.97
8.0.190.0030.00916.96
8.0.180.0040.00416.89
8.0.170.0050.00316.94
8.0.160.0040.00416.96
8.0.150.0000.00716.66
8.0.140.0040.00416.85
8.0.130.0000.00713.35
8.0.120.0040.00416.75
8.0.110.0000.00716.76
8.0.100.0000.00816.78
8.0.90.0000.00816.72
8.0.80.0060.01616.84
8.0.70.0020.00516.85
8.0.60.0040.00416.94
8.0.50.0000.00716.89
8.0.30.0100.00917.07
8.0.20.0120.00517.40
8.0.10.0000.00716.92
8.0.00.0030.01416.82
7.4.330.0030.00315.04
7.4.320.0000.00616.39
7.4.300.0000.00616.44
7.4.290.0000.00716.58
7.4.280.0030.00516.52
7.4.270.0060.00016.47
7.4.260.0070.00016.49
7.4.250.0000.00816.32
7.4.240.0040.00316.45
7.4.230.0000.00716.64
7.4.220.0100.01616.32
7.4.210.0030.01016.50
7.4.200.0000.00816.57
7.4.160.0100.00616.71
7.4.150.0160.00317.40
7.4.140.0110.00817.86
7.4.130.0100.00916.42
7.4.120.0070.01016.41
7.4.110.0070.01116.35
7.4.100.0100.01016.55
7.4.90.0120.00616.41
7.4.80.0090.00919.39
7.4.70.0070.01516.46
7.4.60.0040.01216.54
7.4.50.0040.00416.60
7.4.40.0130.00716.57
7.4.30.0100.00716.53
7.4.00.0080.00515.07
7.3.330.0080.00013.14
7.3.320.0000.00613.31
7.3.310.0000.00616.30
7.3.300.0030.00316.32
7.3.290.0100.00316.34
7.3.280.0090.00716.36
7.3.270.0100.00917.40
7.3.260.0160.00316.36
7.3.250.0110.00916.34
7.3.240.0100.00716.38
7.3.230.0040.01216.43
7.3.210.0120.00416.47
7.3.200.0030.01319.39
7.3.190.0130.00916.60
7.3.180.0100.00716.33
7.3.170.0060.01216.29
7.3.160.0160.00016.57
7.3.120.0090.00615.03
7.3.110.0090.00614.44
7.3.100.0030.00914.72
7.3.90.0040.00814.94
7.3.80.0000.01414.82
7.3.70.0000.01314.89
7.3.60.0030.01014.74
7.3.50.0100.00714.79
7.3.40.0100.00714.83
7.3.30.0070.00714.86
7.3.20.0070.00716.83
7.3.10.0270.00516.33
7.3.00.0110.00516.61
7.2.330.0100.01316.48
7.2.320.0170.00316.53
7.2.310.0160.01016.48
7.2.300.0060.01116.65
7.2.290.0100.01016.39
7.2.250.0090.00914.84
7.2.240.0070.01114.96
7.2.230.0090.00615.01
7.2.220.0070.00714.91
7.2.210.0070.01015.08
7.2.200.0090.00314.99
7.2.190.0000.01114.84
7.2.180.0030.01014.98
7.2.170.0070.01014.81
7.2.130.0110.00716.76
7.2.120.0250.00416.56
7.2.110.0140.00516.42
7.2.100.0190.00016.45
7.2.90.0440.00416.72
7.2.80.0320.01716.45
7.2.70.0260.00416.46
7.2.60.0190.01216.47
7.2.50.0240.00616.45
7.2.40.0260.00616.18
7.2.30.0230.00816.07
7.2.20.0680.00416.40
7.2.10.0290.00916.65
7.2.00.0100.00918.10
7.1.330.0030.01015.71
7.1.320.0000.01415.59
7.1.310.0070.00415.67
7.1.300.0070.00715.47
7.1.290.0080.00615.54
7.1.280.0000.00915.70
7.1.270.0030.00915.59
7.1.260.0050.00515.50
7.1.250.0070.00715.73
7.1.200.0080.00315.74
7.1.70.0000.00817.17
7.1.60.0090.00919.40
7.1.50.0120.00816.66
7.1.00.0070.07322.35
7.0.200.0090.00316.73
7.0.140.0030.06722.00
7.0.60.0170.07019.95
7.0.50.0070.04317.88
7.0.40.0070.07720.18
7.0.30.0600.06720.26
7.0.20.0230.05020.30
7.0.10.0070.04020.06
7.0.00.0030.04720.01
5.6.280.0030.07320.91
5.6.210.0200.07320.61
5.6.200.0070.08018.25
5.6.190.0070.04320.33
5.6.180.0070.04720.46
5.6.170.0330.05320.44
5.6.160.0070.05720.54
5.6.150.0000.04018.17
5.6.140.0100.05318.28
5.6.130.0130.07018.13
5.6.120.0100.04721.13
5.6.110.0130.07721.02
5.6.100.0000.04321.02
5.6.90.0030.04720.93
5.6.80.0130.06320.57
5.5.350.0200.03320.37
5.5.340.0070.09018.05
5.5.330.0030.04720.40
5.5.320.0230.09020.35
5.5.310.0200.04320.34
5.5.300.0030.07318.01
5.5.290.0030.05718.08
5.5.280.0070.08020.69
5.5.270.0100.08320.65
5.5.260.0070.08320.82
5.5.250.0000.04320.62
5.5.240.0230.07020.28
5.4.450.1530.03719.55
5.4.440.0470.04719.49
5.4.430.0600.05319.49
5.4.420.0370.03719.16
5.4.410.0730.05019.39
5.4.400.0230.04019.16
5.4.390.0670.04019.11
5.4.380.0230.06318.72
5.4.370.0330.05318.59
5.4.360.0300.06018.81
5.4.350.0530.06018.73
5.4.340.0200.06318.61
5.4.320.0070.03512.51
5.4.310.0080.03512.50
5.4.300.0080.03412.50
5.4.290.0080.03612.50
5.4.280.0020.03912.40
5.4.270.0060.03612.40
5.4.260.0060.03712.40
5.4.250.0040.03812.40
5.4.240.0060.03512.39
5.4.230.0080.03512.39
5.4.220.0060.03512.39
5.4.210.0080.03212.40
5.4.200.0080.03612.39
5.4.190.0050.03812.39
5.4.180.0060.03612.39
5.4.170.0060.03612.40
5.4.160.0070.03412.40
5.4.150.0040.03612.39
5.4.140.0030.04012.08
5.4.130.0080.03212.07
5.4.120.0040.03512.03
5.4.110.0040.03712.02
5.4.100.0040.03612.02
5.4.90.0080.03412.02
5.4.80.0050.03712.02
5.4.70.0050.03412.02
5.4.60.0070.03212.02
5.4.50.0070.03312.02
5.4.40.0040.03612.01
5.4.30.0050.03612.00
5.4.20.0030.03712.00
5.4.10.0060.03412.00
5.4.00.0070.03411.50
5.3.290.0080.03912.80
5.3.280.0050.04012.71
5.3.270.0080.03612.72
5.3.260.0060.03712.72
5.3.250.0070.03512.72
5.3.240.0060.03712.71
5.3.230.0060.04012.71
5.3.220.0050.03712.68
5.3.210.0080.04012.68
5.3.200.0090.03712.68
5.3.190.0040.04012.68
5.3.180.0080.04612.68
5.3.170.0090.03912.67
5.3.160.0060.03612.68
5.3.150.0070.03612.67
5.3.140.0060.03612.66
5.3.130.0070.03812.66
5.3.120.0050.04012.66
5.3.110.0050.04012.65
5.3.100.0070.03712.12
5.3.90.0060.04612.10
5.3.80.0080.03912.09
5.3.70.0090.03812.09
5.3.60.0100.04912.08
5.3.50.0090.04812.03
5.3.40.0060.05112.03
5.3.30.0090.04511.98
5.3.20.0090.03511.76
5.3.10.0090.03211.73
5.3.00.0050.03711.71
5.2.170.0030.0319.22
5.2.160.0060.0279.22
5.2.150.0010.0339.21
5.2.140.0050.0339.21
5.2.130.0050.0349.18
5.2.120.0030.0309.18
5.2.110.0060.0279.18
5.2.100.0080.0259.18
5.2.90.0060.0269.17
5.2.80.0030.0319.17
5.2.70.0030.0319.17
5.2.60.0060.0289.12
5.2.50.0040.0309.09
5.2.40.0060.0269.07
5.2.30.0030.0319.04
5.2.20.0050.0289.04
5.2.10.0060.0278.94
5.2.00.0060.0418.80
5.1.60.0060.0338.09
5.1.50.0050.0348.09
5.1.40.0020.0268.07
5.1.30.0040.0278.41
5.1.20.0030.0308.44
5.1.10.0040.0258.16
5.1.00.0030.0268.16
5.0.50.0030.0216.64
5.0.40.0020.0206.50
5.0.30.0020.0336.31
5.0.20.0020.0216.28
5.0.10.0050.0186.25
5.0.00.0050.0296.24
4.4.90.0040.0144.78
4.4.80.0030.0174.75
4.4.70.0020.0184.75
4.4.60.0010.0174.75
4.4.50.0020.0154.77
4.4.40.0020.0274.71
4.4.30.0020.0154.76
4.4.20.0030.0154.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0010.0174.67
4.3.100.0020.0154.67
4.3.90.0020.0154.63
4.3.80.0030.0254.58
4.3.70.0050.0124.63
4.3.60.0010.0164.63
4.3.50.0000.0184.63
4.3.40.0010.0254.54
4.3.30.0030.0183.30
4.3.20.0010.0203.28
4.3.10.0030.0193.24
4.3.00.0030.01315.63

preferences:
47.35 ms | 401 KiB | 5 Q