3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Immutable { public function __construct() { //DO shit } 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() { // 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.00716.50
8.3.50.0150.00616.46
8.3.40.0120.00318.85
8.3.30.0110.00318.98
8.3.20.0070.00020.16
8.3.10.0080.00021.94
8.3.00.0080.00021.69
8.2.180.0060.00918.41
8.2.170.0120.00322.96
8.2.160.0060.00920.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00020.63
8.2.120.0070.00026.35
8.2.110.0000.01120.54
8.2.100.0090.00317.97
8.2.90.0030.00517.75
8.2.80.0000.01017.97
8.2.70.0060.00317.80
8.2.60.0060.00318.05
8.2.50.0050.00318.10
8.2.40.0040.00420.29
8.2.30.0070.00019.32
8.2.20.0040.00417.75
8.2.10.0000.00818.03
8.2.00.0000.00717.95
8.1.280.0090.00925.92
8.1.270.0030.01622.20
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0060.00320.96
8.1.230.0080.00420.98
8.1.220.0050.00317.76
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0040.00420.72
8.1.150.0040.00418.93
8.1.140.0040.00419.64
8.1.130.0040.00417.71
8.1.120.0050.00217.50
8.1.110.0030.00517.50
8.1.100.0070.00017.42
8.1.90.0040.00417.44
8.1.80.0070.00017.46
8.1.70.0030.00317.51
8.1.60.0000.00817.57
8.1.50.0040.00417.54
8.1.40.0030.00517.43
8.1.30.0040.00417.64
8.1.20.0040.00417.66
8.1.10.0030.00517.58
8.1.00.0040.00417.41
8.0.300.0070.00019.89
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0000.00817.31
8.0.260.0000.00817.30
8.0.250.0030.00316.96
8.0.240.0050.00316.98
8.0.230.0040.00316.90
8.0.220.0030.00616.95
8.0.210.0050.00216.95
8.0.200.0060.00017.02
8.0.190.0080.00017.06
8.0.180.0050.00317.00
8.0.170.0000.00816.97
8.0.160.0000.00716.97
8.0.150.0050.00316.98
8.0.140.0040.00416.88
8.0.130.0030.00313.38
8.0.120.0040.00416.83
8.0.110.0080.00016.88
8.0.100.0040.00417.07
8.0.90.0000.00816.93
8.0.80.0110.00716.94
8.0.70.0050.00216.95
8.0.60.0040.00416.98
8.0.50.0040.00417.07
8.0.30.0090.00817.05
8.0.20.0100.00817.40
8.0.10.0000.00717.02
8.0.00.0110.00716.89
7.4.330.0050.00016.77
7.4.320.0000.00616.56
7.4.300.0030.00316.55
7.4.290.0040.00416.61
7.4.280.0000.00816.39
7.4.270.0070.00016.41
7.4.260.0000.00716.49
7.4.250.0000.00716.47
7.4.240.0070.00016.60
7.4.230.0000.00716.45
7.4.220.0140.00416.69
7.4.210.0100.00716.56
7.4.200.0030.00316.61
7.4.160.0100.00816.50
7.4.150.0230.00017.40
7.4.140.0130.01017.86
7.4.130.0120.00616.61
7.4.120.0100.00716.59
7.4.110.0070.01116.64
7.4.100.0070.01116.50
7.4.90.0100.00616.71
7.4.80.0190.00319.39
7.4.70.0030.01316.33
7.4.60.0160.00016.33
7.4.50.0060.00916.53
7.4.40.0110.01116.44
7.4.30.0120.01016.65
7.4.00.0050.01114.93
7.3.330.0000.00513.38
7.3.320.0000.00513.25
7.3.310.0000.00716.27
7.3.300.0000.00716.38
7.3.290.0070.00016.30
7.3.280.0120.00416.39
7.3.270.0070.01117.40
7.3.260.0170.00616.36
7.3.250.0110.00816.30
7.3.240.0110.01016.53
7.3.230.0110.00716.39
7.3.210.0090.00916.43
7.3.200.0030.01319.39
7.3.190.0070.01916.52
7.3.180.0130.00316.64
7.3.170.0150.00316.50
7.3.160.0110.00916.50
7.3.120.0060.01314.66
7.3.110.0110.00714.88
7.3.100.0090.00614.67
7.3.90.0070.00414.87
7.3.80.0000.01214.81
7.3.70.0100.00314.72
7.3.60.0130.00314.92
7.3.50.0030.01014.88
7.3.40.0030.00714.95
7.3.30.0000.01214.95
7.3.20.0070.00416.77
7.3.10.0100.00616.69
7.3.00.0030.01016.73
7.2.330.0130.01016.77
7.2.320.0070.01116.61
7.2.310.0120.00616.84
7.2.300.0140.00316.38
7.2.290.0100.01316.55
7.2.250.0030.01015.11
7.2.240.0090.00915.03
7.2.230.0120.00314.91
7.2.220.0030.01314.97
7.2.210.0070.00714.85
7.2.200.0090.00915.24
7.2.190.0000.01015.12
7.2.180.0100.00715.17
7.2.170.0100.00714.85
7.2.60.0090.00316.90
7.2.00.0040.00819.04
7.1.330.0170.00015.71
7.1.320.0070.01016.05
7.1.310.0070.00815.95
7.1.300.0040.01116.00
7.1.290.0060.00315.74
7.1.280.0090.00615.93
7.1.270.0040.01215.79
7.1.260.0000.01315.44
7.1.200.0000.01415.87
7.1.100.0000.01317.96
7.1.70.0040.00417.25
7.1.60.0030.02019.40
7.1.50.0060.00616.89
7.1.00.0070.07322.54
7.0.200.0290.00314.88
7.0.60.0170.08321.69
7.0.50.0100.08017.96
7.0.40.0170.07720.09
7.0.30.0570.07020.07
7.0.20.0330.06020.19
7.0.10.0100.05320.23
7.0.00.0070.06720.12
5.6.280.0030.03720.80
5.6.210.0100.07320.71
5.6.200.0070.08018.23
5.6.190.0100.08320.52
5.6.180.0300.04320.63
5.6.170.0370.07020.56
5.6.160.0130.08320.49
5.6.150.0000.05318.14
5.6.140.0200.07018.23
5.6.130.0030.08318.12
5.6.120.0130.08021.15
5.6.110.0030.06320.99
5.6.100.0070.08721.11
5.6.90.0030.09020.97
5.6.80.0230.07320.52
5.5.350.0170.08020.29
5.5.340.0130.05717.98
5.5.330.0030.04020.40
5.5.320.0630.06320.20
5.5.310.0300.07320.24
5.5.300.0130.07317.98
5.5.290.0070.08317.94
5.5.280.0130.08020.70
5.5.270.0100.08020.90
5.5.260.0170.07720.88
5.5.250.0200.07020.69
5.5.240.2870.03720.33

preferences:
56.07 ms | 401 KiB | 5 Q