3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class CanNotSetProperties extends BadMethodCallException { public function __construct($message) { parent::__construct($message); } public function exception($message) { return new static($message); } } final class ConstructorIsVisible extends BadMethodCallException { public function __construct($message) { parent::__construct($message); } public function exception($message) { return new static($message); } } trait Immutable { public function __set($property, $value) { throw CanNotSetProperties::exception(); } protected function __construct() { throw ConstructorIsVisible::exception(); } } final class Test { use Immutable; public function __construct() { echo 'hello'; } } $test = new Test; $test->__construct();

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.0130.00618.32
8.3.50.0090.01521.93
8.3.40.0120.00918.65
8.3.30.0070.00719.16
8.3.20.0120.00319.96
8.3.10.0090.00021.77
8.3.00.0030.00719.20
8.2.180.0110.00418.16
8.2.170.0060.00922.96
8.2.160.0070.00722.16
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00419.71
8.2.110.0060.00320.16
8.2.100.0060.00618.09
8.2.90.0050.00319.23
8.2.80.0030.00517.97
8.2.70.0090.00017.50
8.2.60.0000.00817.91
8.2.50.0080.00018.07
8.2.40.0080.00020.00
8.2.30.0040.00418.16
8.2.20.0000.00817.64
8.2.10.0040.00417.99
8.2.00.0000.00717.66
8.1.280.0170.00325.92
8.1.270.0040.00418.60
8.1.260.0060.00326.35
8.1.250.0080.00828.09
8.1.240.0060.00323.93
8.1.230.0090.00319.04
8.1.220.0060.00317.80
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.55
8.1.160.0030.00521.94
8.1.150.0070.00018.95
8.1.140.0050.00319.14
8.1.130.0030.00317.75
8.1.120.0030.00517.55
8.1.110.0040.00417.46
8.1.100.0050.00217.45
8.1.90.0090.00017.41
8.1.80.0000.00917.47
8.1.70.0000.00717.46
8.1.60.0000.00817.48
8.1.50.0000.00817.46
8.1.40.0040.00417.41
8.1.30.0040.00417.49
8.1.20.0030.00617.57
8.1.10.0040.00417.50
8.1.00.0080.00417.47
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0000.00718.41
8.0.270.0000.00717.27
8.0.260.0030.00317.25
8.0.250.0030.00316.98
8.0.240.0070.00016.95
8.0.230.0030.00316.86
8.0.220.0030.00316.79
8.0.210.0070.00016.87
8.0.200.0080.00016.95
8.0.190.0000.00716.88
8.0.180.0000.00816.91
8.0.170.0070.00016.89
8.0.160.0030.00316.99
8.0.150.0050.00216.74
8.0.140.0050.00216.85
8.0.130.0000.00513.32
8.0.120.0030.00516.86
8.0.110.0040.00416.96
8.0.100.0040.00416.96
8.0.90.0070.00016.78
8.0.80.0090.00616.93
8.0.70.0070.00016.75
8.0.60.0040.00416.73
8.0.50.0040.00416.87
8.0.30.0140.00817.30
8.0.20.0100.00917.43
8.0.10.0000.00816.91
8.0.00.0080.01016.87
7.4.330.0070.00015.03
7.4.320.0030.00316.59
7.4.300.0000.00716.58
7.4.290.0000.00716.59
7.4.280.0000.00716.52
7.4.270.0000.00716.60
7.4.260.0000.00816.43
7.4.250.0000.00716.38
7.4.240.0020.00516.53
7.4.230.0030.00316.43
7.4.220.0110.00716.55
7.4.210.0030.01716.55
7.4.200.0040.00416.64
7.4.160.0070.01116.51
7.4.150.0140.01017.40
7.4.140.0170.00817.86
7.4.130.0060.01316.55
7.4.120.0100.00916.54
7.4.110.0140.00316.55
7.4.100.0100.00616.44
7.4.90.0100.01016.49
7.4.80.0120.00516.53
7.4.70.0100.00616.52
7.4.60.0070.01116.43
7.4.50.0050.00316.54
7.4.40.0090.01216.60
7.4.30.0060.01616.38
7.4.00.0040.00414.93
7.3.330.0000.00513.26
7.3.320.0060.00613.20
7.3.310.0000.00716.13
7.3.300.0000.00716.25
7.3.290.0090.00616.23
7.3.280.0050.01316.21
7.3.270.0110.00717.40
7.3.260.0090.00916.25
7.3.250.0130.00516.43
7.3.240.0070.01116.49
7.3.230.0140.00316.42
7.3.210.0100.00716.48
7.3.200.0040.01419.39
7.3.190.0060.00916.49
7.3.180.0190.00316.54
7.3.170.0040.01416.55
7.3.160.0000.01716.20
7.3.120.0060.00914.78
7.3.110.0030.01214.59
7.3.100.0000.01614.79
7.3.90.0040.01214.73
7.3.80.0100.00614.86
7.3.70.0060.00914.61
7.3.60.0070.00714.52
7.3.50.0080.00814.82
7.3.40.0070.00714.53
7.3.30.0000.01714.47
7.3.20.0040.01216.46
7.3.10.0030.01416.51
7.3.00.0040.01116.64
7.2.330.0070.01116.64
7.2.320.0040.01816.79
7.2.310.0120.00816.62
7.2.300.0030.01616.33
7.2.290.0060.01016.58
7.2.240.0040.01114.91
7.2.230.0040.01115.29
7.2.220.0070.01014.93
7.2.210.0030.00715.16
7.2.200.0070.01014.76
7.2.190.0030.01014.71
7.2.180.0000.01115.05
7.2.170.0080.00315.01
7.2.160.0060.00615.04
7.2.150.0040.00816.66
7.2.140.0000.01516.92
7.2.130.0060.00916.96
7.2.120.0120.00316.85
7.2.110.0090.00916.68
7.2.100.0070.01016.61
7.2.90.0060.00916.95
7.2.80.0100.00617.01
7.2.70.0080.00316.98
7.2.60.0060.01116.76
7.2.50.0000.01816.50
7.2.40.0040.01516.84
7.2.30.0100.00716.95
7.2.20.0030.01016.90
7.2.10.0040.01117.05
7.2.00.0090.00518.21
7.1.330.0040.00715.67
7.1.320.0000.01415.40
7.1.310.0120.00315.78
7.1.300.0030.01015.81
7.1.290.0070.01115.69
7.1.280.0000.01515.64
7.1.270.0070.00715.74
7.1.260.0100.00315.55
7.1.250.0050.00515.72
7.1.200.0090.00615.53
7.1.100.0040.01117.87
7.1.70.0080.00817.16
7.1.60.0100.01319.46
7.1.50.0030.01916.77
7.1.00.0000.08022.31
7.0.200.0280.00614.57
7.0.140.0000.07722.08
7.0.110.0000.09019.92
7.0.100.0130.06719.89
7.0.90.0130.07320.06
7.0.80.0170.07019.93
7.0.70.0070.08019.92
7.0.60.0170.07020.05
7.0.50.0170.07320.41
7.0.40.0130.08020.16
7.0.30.0100.07720.18
7.0.20.0100.07720.12
7.0.10.0130.07720.18
7.0.00.0200.07320.18
5.6.280.0100.06720.88
5.6.260.0070.07320.74
5.6.250.0100.08020.67
5.6.240.0130.07320.88
5.6.230.0070.08320.70
5.6.220.0070.07320.48
5.6.210.0070.08020.58
5.6.200.0130.07721.06
5.6.190.0070.08321.10
5.6.180.0230.06321.21
5.6.170.0100.08021.16
5.6.160.0170.07321.11
5.6.150.0070.07720.98
5.6.140.0130.07321.00
5.6.130.0030.08721.17
5.6.120.0170.05021.00
5.6.110.0070.07721.28
5.6.100.0070.06720.91
5.6.90.0170.07021.08
5.6.80.0070.07320.36
5.6.70.0170.05020.34
5.6.60.0100.08320.32
5.6.50.0070.08320.59
5.6.40.0100.08020.56
5.6.30.0130.07320.67
5.6.20.0100.07720.52
5.6.10.0100.07020.36
5.6.00.0100.07020.50
5.5.380.0000.05320.34
5.5.370.0100.04720.30
5.5.360.0100.05720.57
5.5.350.0070.04320.49
5.5.340.0170.07020.93
5.5.330.0070.08020.83
5.5.320.0100.08021.05
5.5.310.0070.08720.80
5.5.300.0170.06720.97
5.5.290.0170.05320.82
5.5.280.0130.08021.03
5.5.270.0170.07020.91
5.5.260.0100.08020.82
5.5.250.0070.08320.85
5.5.240.0070.07720.27
5.5.230.0170.07020.18
5.5.220.0070.05320.34
5.5.210.0070.07320.30
5.5.200.0030.05720.32
5.5.190.0030.08320.34
5.5.180.0100.07020.41
5.5.160.0200.06320.11
5.5.150.0100.07320.06
5.5.140.0100.04020.13
5.5.130.0070.07320.09
5.5.120.0030.07720.25
5.5.110.0070.07720.34
5.5.100.0070.08020.01
5.5.90.0100.07720.04
5.5.80.0130.07320.22
5.5.70.0070.07020.00
5.5.60.0100.06720.16
5.5.50.0130.06720.28
5.5.40.0030.07720.05
5.5.30.0100.07320.05
5.5.20.0200.06720.17
5.5.10.0130.07319.98
5.5.00.0100.03320.02
5.4.450.0100.07019.67
5.4.440.0100.05719.70
5.4.430.0130.07719.50
5.4.420.0070.07319.27
5.4.410.0170.07319.14
5.4.400.0000.08319.32
5.4.390.0130.04019.24
5.4.380.0030.05319.03
5.4.370.0130.07019.16
5.4.360.0030.05018.95
5.4.350.0100.07319.24
5.4.340.0130.07318.99
5.4.320.0070.04719.14
5.4.310.0100.04318.95
5.4.300.0000.05719.01
5.4.290.0070.07719.18
5.4.280.0130.07019.13
5.4.270.0100.06719.18
5.4.260.0100.04319.00
5.4.250.0000.08719.30
5.4.240.0030.07719.18
5.4.230.0030.08019.33
5.4.220.0070.07018.98
5.4.210.0030.07318.94
5.4.200.0170.07019.30
5.4.190.0070.07019.18
5.4.180.0070.07719.17
5.4.170.0030.04019.00
5.4.160.0070.03719.14
5.4.150.0030.06318.96
5.4.140.0000.05316.59
5.4.130.0030.03716.44
5.4.120.0000.03716.40
5.4.110.0030.03716.48
5.4.100.0030.03716.54
5.4.90.0070.04716.52
5.4.80.0030.03316.51
5.4.70.0000.04016.63
5.4.60.0070.05016.29
5.4.50.0000.03716.56
5.4.40.0070.07016.60
5.4.30.0070.04716.45
5.4.20.0000.07716.33
5.4.10.0030.05016.43
5.4.00.0000.03716.00
5.3.290.0030.08014.91
5.3.280.0070.07314.64
5.3.270.0030.05314.75
5.3.260.0100.05714.62
5.3.250.0030.04014.61
5.3.240.0000.04014.58
5.3.230.0030.06314.63
5.3.220.0000.04014.67
5.3.210.0000.04314.59
5.3.200.0100.05714.60
5.3.190.0030.03714.56
5.3.180.0070.04314.71
5.3.170.0030.04014.57
5.3.160.0170.05714.61
5.3.150.0030.05014.61
5.3.140.0000.04714.70
5.3.130.0000.07314.58
5.3.120.0100.03314.65
5.3.110.0030.06314.60
5.3.100.0000.03714.09
5.3.90.0000.03714.00
5.3.80.0030.03714.04
5.3.70.0000.04714.07
5.3.60.0070.03714.08
5.3.50.0030.06314.10
5.3.40.0030.04713.92
5.3.30.0030.03314.06
5.3.20.0100.07013.85
5.3.10.0030.03013.80
5.3.00.0070.03013.69
5.2.170.0030.03712.14
5.2.160.0000.03312.14
5.2.150.0000.03012.14
5.2.140.0030.06012.14
5.2.130.0070.04312.14
5.2.120.0070.06012.14
5.2.110.0030.05312.14
5.2.100.0000.03012.14
5.2.90.0030.02712.14
5.2.80.0000.03012.14
5.2.70.0030.02712.14
5.2.60.0000.03312.14
5.2.50.0000.03012.14
5.2.40.0000.03012.14
5.2.30.0030.02712.14
5.2.20.0070.02712.14
5.2.10.0030.02312.14
5.2.00.0000.03012.14
5.1.60.0070.03012.14
5.1.50.0030.02312.14
5.1.40.0030.02312.14
5.1.30.0000.03012.14
5.1.20.0030.05712.14
5.1.10.0000.02712.14
5.1.00.0000.02712.14
5.0.50.0030.02012.14
5.0.40.0000.02312.14
5.0.30.0000.03012.14
5.0.20.0000.02312.14
5.0.10.0000.02012.14
5.0.00.0000.03312.14
4.4.90.0030.01312.14
4.4.80.0030.01712.14
4.4.70.0030.01312.14
4.4.60.0000.01712.14
4.4.50.0000.01712.14
4.4.40.0030.02312.14
4.4.30.0070.01712.14
4.4.20.0000.01712.14
4.4.10.0000.01712.14
4.4.00.0000.02312.14
4.3.110.0030.01312.14
4.3.100.0000.01712.14
4.3.90.0030.01312.14
4.3.80.0000.03012.14
4.3.70.0000.01312.14
4.3.60.0000.01312.14
4.3.50.0000.01712.14
4.3.40.0000.04012.14
4.3.30.0030.01312.14
4.3.20.0000.01712.14
4.3.10.0000.01712.14
4.3.00.0000.01312.14

preferences:
42.62 ms | 401 KiB | 5 Q