3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Config { private static $config = array(); private function Get($name) { return static::$config[$name]; } public static function Set($name, $value) { static::$config[$name] = $value; var_dump($this); } } $c = new Config(); var_dump($c->set(1, 2)); Config::Set('xxx', 'yyy'); print(Config::Get('xxx')."\n");

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.00718.54
8.3.50.0130.00721.92
8.3.40.0030.01218.76
8.3.30.0070.01119.05
8.3.20.0050.00320.13
8.3.10.0060.00320.66
8.3.00.0080.00019.38
8.2.180.0090.00916.75
8.2.170.0110.00422.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0050.00226.16
8.2.120.0080.00020.88
8.2.110.0060.00320.41
8.2.100.0040.00818.03
8.2.90.0070.00019.17
8.2.80.0050.00517.97
8.2.70.0000.00917.75
8.2.60.0060.00318.04
8.2.50.0000.00818.07
8.2.40.0000.00918.23
8.2.30.0080.00019.32
8.2.20.0000.00817.74
8.2.10.0000.00817.96
8.2.00.0050.00317.82
8.1.280.0090.00625.92
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.86
8.1.230.0050.00619.16
8.1.220.0040.00417.75
8.1.210.0040.00418.77
8.1.200.0040.00817.23
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00918.58
8.1.160.0050.00222.02
8.1.150.0040.00418.90
8.1.140.0060.00317.45
8.1.130.0070.00017.76
8.1.120.0000.00817.45
8.1.110.0050.00317.48
8.1.100.0030.00517.39
8.1.90.0000.00817.47
8.1.80.0040.00417.27
8.1.70.0030.00317.34
8.1.60.0030.00617.60
8.1.50.0030.00617.52
8.1.40.0040.00417.57
8.1.30.0090.00017.54
8.1.20.0070.00017.62
8.1.10.0050.00217.50
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0070.00018.31
8.0.270.0040.00417.13
8.0.260.0030.00317.32
8.0.250.0000.00716.86
8.0.240.0030.00516.87
8.0.230.0030.00316.95
8.0.220.0000.00716.88
8.0.210.0060.00016.92
8.0.200.0000.00616.93
8.0.190.0040.00416.96
8.0.180.0000.00716.91
8.0.170.0000.00816.96
8.0.160.0000.00716.88
8.0.150.0070.00016.82
8.0.140.0040.00416.82
8.0.130.0030.00313.30
8.0.120.0000.00816.77
8.0.110.0050.00216.82
8.0.100.0000.00716.84
8.0.90.0040.00416.74
8.0.80.0120.00316.90
8.0.70.0050.00316.79
8.0.60.0040.00416.77
8.0.50.0000.00816.95
8.0.30.0120.00617.16
8.0.20.0090.01617.40
8.0.10.0030.00317.09
8.0.00.0110.00616.95
7.4.330.0000.00515.00
7.4.320.0030.00316.46
7.4.300.0000.00616.64
7.4.290.0070.00016.44
7.4.280.0040.00416.51
7.4.270.0030.00316.54
7.4.260.0050.00316.50
7.4.250.0000.00716.56
7.4.240.0050.00216.60
7.4.230.0000.00616.69
7.4.220.0030.02016.57
7.4.210.0070.00716.52
7.4.200.0040.00416.71
7.4.160.0090.00616.63
7.4.150.0070.01117.40
7.4.140.0070.01217.86
7.4.130.0080.00916.38
7.4.120.0130.00316.40
7.4.110.0080.00916.66
7.4.100.0030.01716.59
7.4.90.0110.00716.69
7.4.80.0090.00919.39
7.4.70.0110.01116.68
7.4.60.0100.00716.70
7.4.50.0040.00416.32
7.4.40.0090.00916.59
7.4.30.0090.00916.49
7.4.00.0030.00714.80
7.3.330.0030.00313.42
7.3.320.0000.00513.37
7.3.310.0000.00716.38
7.3.300.0060.00016.48
7.3.290.0140.00016.40
7.3.280.0090.00916.43
7.3.270.0110.00517.40
7.3.260.0150.00316.39
7.3.250.0070.01216.48
7.3.240.0070.01016.45
7.3.230.0030.01316.54
7.3.210.0060.01216.68
7.3.200.0030.01519.39
7.3.190.0080.00816.43
7.3.180.0060.01116.40
7.3.170.0070.01016.65
7.3.160.0070.01116.41
7.2.330.0100.01016.73
7.2.320.0030.01716.66
7.2.310.0090.01216.40
7.2.300.0030.01716.39
7.2.290.0030.01316.48
7.2.60.0070.00716.80
7.2.00.0000.01419.39
7.1.200.0060.00615.43
7.1.100.0040.00718.15
7.1.70.0000.00717.06
7.1.60.0070.01819.61
7.1.50.0130.01017.08
7.1.00.0070.07022.42
7.0.200.0330.00314.80
7.0.140.0070.07022.21
7.0.60.0070.08320.04
7.0.50.0070.07717.96
7.0.40.0030.05020.11
7.0.30.0500.07320.07
7.0.20.0230.04020.34
7.0.10.0270.05020.33
7.0.00.0070.05720.07
5.6.280.0000.07720.86
5.6.210.0130.07320.47
5.6.200.0000.08318.13
5.6.190.0070.07020.52
5.6.180.0300.07720.63
5.6.170.0330.08020.56
5.6.160.0070.04320.54
5.6.150.0170.07318.23
5.6.140.0100.07718.15
5.6.130.0000.05318.26
5.6.120.0100.05320.90
5.6.110.0170.05320.89
5.6.100.0100.06721.09
5.6.90.0030.04020.88
5.6.80.0100.03320.45
5.6.70.3900.03720.51
5.5.350.0000.06720.42
5.5.340.0070.08317.98
5.5.330.0030.04720.30
5.5.320.0270.07320.36
5.5.310.0200.04020.18
5.5.300.0030.04718.04
5.5.290.0030.05718.03
5.5.280.0070.08020.90
5.5.270.0130.06320.64
5.5.260.0070.08020.87
5.5.250.0130.07320.55
5.5.240.0070.05020.13
5.4.450.0270.04019.57
5.4.440.0300.05019.27
5.4.430.0230.04019.56
5.4.420.0330.03719.45
5.4.410.0200.05019.36
5.4.400.0130.03718.88
5.4.390.0270.05318.83
5.4.380.0300.06318.50
5.4.370.0330.05018.70
5.4.360.0270.06018.79
5.4.350.0530.04718.63
5.4.340.0430.05318.71
5.4.320.0060.03712.50
5.4.310.0040.04012.50
5.4.300.0050.03812.50
5.4.290.0030.04212.50
5.4.280.0100.03212.40
5.4.270.0030.04112.40
5.4.260.0040.04012.40
5.4.250.0040.04012.40
5.4.240.0080.03512.40
5.4.230.0070.03912.39
5.4.220.0070.03712.39
5.4.210.0130.03012.39
5.4.200.0070.03712.39
5.4.190.0020.04212.38
5.4.180.0110.03112.39
5.4.170.0080.03612.40
5.4.160.0060.03712.40
5.4.150.0050.04112.39
5.4.140.0050.03812.07
5.4.130.0030.03912.06
5.4.120.0070.03412.02
5.4.110.0080.03412.02
5.4.100.0100.03112.01
5.4.90.0050.03812.02
5.4.80.0050.03812.01
5.4.70.0060.03512.01
5.4.60.0080.03212.01
5.4.50.0050.03512.01
5.4.40.0080.03812.00
5.4.30.0050.03612.00
5.4.20.0050.03611.99
5.4.10.0070.03412.00
5.4.00.0070.04411.49
5.3.290.0100.05112.80
5.3.280.0060.04212.71
5.3.270.0110.03812.73
5.3.260.0100.03512.72
5.3.250.0060.03812.72
5.3.240.0080.04012.72
5.3.230.0060.03712.71
5.3.220.0150.02812.68
5.3.210.0060.04012.68
5.3.200.0050.03712.68
5.3.190.0060.03712.68
5.3.180.0080.04312.67
5.3.170.0080.04112.67
5.3.160.0080.03412.68
5.3.150.0090.03512.67
5.3.140.0110.03212.66
5.3.130.0050.04012.66
5.3.120.0060.04712.66
5.3.110.0110.04112.66
5.3.100.0100.03712.13
5.3.90.0070.03512.11
5.3.80.0070.03612.10
5.3.70.0090.03812.10
5.3.60.0060.04012.09
5.3.50.0050.03612.04
5.3.40.0040.04312.03
5.3.30.0050.04112.00
5.3.20.0070.03311.77
5.3.10.0060.03411.74
5.3.00.0060.03611.73
5.2.170.0030.0349.22
5.2.160.0050.0299.23
5.2.150.0060.0299.22
5.2.140.0060.0319.22
5.2.130.0080.0289.18
5.2.120.0060.0299.18
5.2.110.0040.0299.19
5.2.100.0090.0279.18
5.2.90.0080.0389.18
5.2.80.0090.0389.18
5.2.70.0050.0419.17
5.2.60.0050.0319.13
5.2.50.0080.0339.10
5.2.40.0010.0359.07
5.2.30.0080.0289.05
5.2.20.0030.0319.04
5.2.10.0040.0328.95
5.2.00.0060.0298.81
5.1.60.0050.0238.09
5.1.50.0050.0258.09
5.1.40.0030.0268.07
5.1.30.0110.0228.42
5.1.20.0100.0248.45
5.1.10.0020.0288.16
5.1.00.0020.0298.16
5.0.50.0060.0186.64
5.0.40.0040.0186.50
5.0.30.0070.0286.32
5.0.20.0030.0206.28
5.0.10.0030.0206.25
5.0.00.0030.0316.25
4.4.90.0050.0134.78
4.4.80.0030.0154.76
4.4.70.0030.0154.75
4.4.60.0040.0144.75
4.4.50.0020.0164.77
4.4.40.0050.0234.71
4.4.30.0020.0164.76
4.4.20.0020.0174.84
4.4.10.0020.0164.85
4.4.00.0050.0224.76
4.3.110.0030.0154.67
4.3.100.0030.0144.66
4.3.90.0000.0174.64
4.3.80.0030.0234.59
4.3.70.0030.0144.63
4.3.60.0010.0164.62
4.3.50.0050.0154.63
4.3.40.0040.0264.54
4.3.30.0020.0163.30
4.3.20.0010.0173.28
4.3.10.0010.0163.23
4.3.00.0130.00316.34

preferences:
50.29 ms | 401 KiB | 5 Q