3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Immutable { final public function __construct() { //DO shit var_dump("In trait constructor"); } public function __set($name, $value) { throw new Exception("can't touch this, nah nah nuh nahhh"); } public function __get($name) { return $this->$name; } } class ImmutableThingy { use Immutable; protected $foo = 'bar'; public function __construct() { var_dump("In class constructor"); // What the fuck ever broh } } $thing = new ImmutableThingy; var_dump($thing, $thing->foo); $thing->foo = 'baz'; var_dump($thing, $thing->foo);

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.0070.01016.38
8.3.50.0160.00616.23
8.3.40.0070.00718.79
8.3.30.0110.01118.88
8.3.20.0040.00420.34
8.3.10.0000.00721.95
8.3.00.0040.00421.86
8.2.180.0210.00018.30
8.2.170.0120.00322.96
8.2.160.0070.01419.45
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00420.78
8.2.120.0040.00426.35
8.2.110.0030.00720.94
8.2.100.0120.00018.04
8.2.90.0000.00919.13
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0000.00818.09
8.2.40.0000.00820.59
8.2.30.0070.00019.36
8.2.20.0000.00817.76
8.2.10.0040.00417.99
8.2.00.0040.00418.12
8.1.280.0160.00325.92
8.1.270.0150.00621.92
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0000.01019.28
8.1.230.0000.01217.70
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0030.00717.35
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0040.00418.65
8.1.160.0030.00620.87
8.1.150.0040.00420.78
8.1.140.0030.00519.63
8.1.130.0030.00317.70
8.1.120.0030.00317.36
8.1.110.0000.00817.45
8.1.100.0020.00517.44
8.1.90.0000.00717.34
8.1.80.0040.00417.45
8.1.70.0000.00717.44
8.1.60.0000.00717.57
8.1.50.0030.00617.42
8.1.40.0000.00817.60
8.1.30.0040.00417.70
8.1.20.0030.00617.48
8.1.10.0070.00017.50
8.1.00.0020.00517.58
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0030.00317.26
8.0.260.0070.00017.17
8.0.250.0030.00316.91
8.0.240.0030.00317.08
8.0.230.0000.00717.05
8.0.220.0040.00416.93
8.0.210.0080.00016.93
8.0.200.0060.00016.88
8.0.190.0040.00417.08
8.0.180.0070.00016.99
8.0.170.0040.00416.89
8.0.160.0070.00016.85
8.0.150.0050.00317.01
8.0.140.0050.00216.98
8.0.130.0030.00313.34
8.0.120.0050.00316.81
8.0.110.0080.00016.98
8.0.100.0000.00716.90
8.0.90.0050.00216.85
8.0.80.0070.01016.88
8.0.70.0040.00416.94
8.0.60.0060.00316.85
8.0.50.0040.00416.86
8.0.30.0070.01017.13
8.0.20.0140.00517.40
8.0.10.0000.00717.08
8.0.00.0110.00816.74
7.4.330.0000.00516.92
7.4.320.0030.00316.61
7.4.300.0070.00016.56
7.4.290.0030.00316.50
7.4.280.0000.00716.61
7.4.270.0050.00216.52
7.4.260.0070.00016.48
7.4.250.0000.00716.48
7.4.240.0000.00716.44
7.4.230.0000.00716.31
7.4.220.0110.01116.58
7.4.210.0090.00716.50
7.4.200.0040.00416.35
7.4.160.0050.01116.37
7.4.150.0160.00317.40
7.4.140.0120.00817.86
7.4.130.0130.00616.53
7.4.120.0110.01116.68
7.4.110.0060.01116.57
7.4.100.0100.01316.67
7.4.90.0100.00716.37
7.4.80.0100.01319.39
7.4.70.0130.00316.61
7.4.60.0100.00616.44
7.4.50.0060.00916.48
7.4.40.0090.00916.69
7.4.30.0070.01316.58
7.4.00.0090.00814.97
7.3.330.0000.00613.28
7.3.320.0050.00013.41
7.3.310.0030.00316.39
7.3.300.0030.00316.38
7.3.290.0000.00716.39
7.3.280.0100.00816.45
7.3.270.0070.01517.40
7.3.260.0070.01116.37
7.3.250.0100.00816.53
7.3.240.0150.00816.49
7.3.230.0130.00316.53
7.3.210.0120.00416.30
7.3.200.0100.00619.39
7.3.190.0090.00916.36
7.3.180.0130.00416.54
7.3.170.0090.00916.68
7.3.160.0150.00316.50
7.3.120.0130.00514.81
7.3.110.0070.00914.64
7.3.100.0070.00915.06
7.3.90.0060.00614.81
7.3.80.0090.00514.58
7.3.70.0040.01014.92
7.3.60.0070.00814.80
7.3.50.0040.01214.69
7.3.40.0020.00914.96
7.3.30.0080.00514.86
7.3.20.0030.00816.60
7.3.10.0110.00616.65
7.3.00.0070.00816.60
7.2.330.0180.00616.59
7.2.320.0070.01016.84
7.2.310.0130.00916.75
7.2.300.0110.00616.67
7.2.290.0080.00816.43
7.2.250.0100.01015.25
7.2.240.0030.01214.92
7.2.230.0070.01014.82
7.2.220.0060.00815.10
7.2.210.0050.01115.11
7.2.200.0070.00615.10
7.2.190.0070.01014.90
7.2.180.0050.01115.07
7.2.170.0060.00714.96
7.2.160.0090.00614.78
7.2.150.0080.00816.91
7.2.140.0030.01016.70
7.2.130.0040.00916.77
7.2.120.0070.00816.98
7.2.110.0040.01216.81
7.2.100.0070.00516.70
7.2.90.0040.01016.86
7.2.80.0110.00616.97
7.2.70.0110.00316.95
7.2.60.0050.00916.83
7.2.50.0020.01116.95
7.2.40.0030.01116.71
7.2.30.0030.00916.88
7.2.20.0080.00816.79
7.2.10.0060.00716.91
7.2.00.0070.00817.45
7.1.330.0030.01115.90
7.1.320.0050.01215.76
7.1.310.0060.00915.87
7.1.300.0040.01115.68
7.1.290.0050.00915.79
7.1.280.0060.00715.71
7.1.270.0050.01015.70
7.1.260.0060.00915.85
7.1.250.0070.00715.68
7.1.200.0070.00715.84
7.1.100.0030.01017.84
7.1.70.0030.00317.13
7.1.60.0030.02119.40
7.1.50.0030.00917.01
7.1.00.0000.08022.43
7.0.200.0170.01014.91
7.0.60.0270.06321.73
7.0.50.0070.08017.72
7.0.40.0070.08720.27
7.0.30.0370.03020.19
7.0.20.0300.08020.15
7.0.10.0130.04320.23
7.0.00.0070.08020.20
5.6.280.0030.03321.11
5.6.210.0130.07320.48
5.6.200.0100.06318.25
5.6.190.0070.05320.50
5.6.180.0370.06720.67
5.6.170.0370.07320.48
5.6.160.0030.05320.46
5.6.150.0030.04018.29
5.6.140.0070.08718.24
5.6.130.0130.08018.28
5.6.120.0070.05321.00
5.6.110.0030.08721.05
5.6.100.0100.07021.01
5.6.90.0130.08020.98
5.6.80.0130.07020.39
5.5.350.0170.08020.38
5.5.340.0070.08018.07
5.5.330.0030.08320.21
5.5.320.0570.06320.20
5.5.310.0300.08320.34
5.5.300.0030.07717.94
5.5.290.0100.07018.08
5.5.280.0100.08720.77
5.5.270.0070.07720.77
5.5.260.0070.08020.68
5.5.250.0070.08720.63
5.5.240.2570.03320.29

preferences:
58.42 ms | 400 KiB | 5 Q