3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Immutable { public function __set($name, $value) { throw new Exception("Homie don't play dat"); } public function __get($name) { return $this->$name; } } class ImmutableThingy { use Immutable; protected $foo = 'bar'; } $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.0190.00316.73
8.3.50.0130.00521.11
8.3.40.0060.01218.98
8.3.30.0070.01418.77
8.3.20.0080.00020.25
8.3.10.0000.00721.73
8.3.00.0050.00323.66
8.2.180.0130.00616.63
8.2.170.0160.00622.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00021.07
8.2.110.0080.00319.30
8.2.100.0000.01217.93
8.2.90.0050.00319.23
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0000.00817.80
8.2.50.0030.01018.09
8.2.40.0000.00822.31
8.2.30.0000.00719.55
8.2.20.0040.00417.81
8.2.10.0000.00818.08
8.2.00.0020.00517.99
8.1.280.0100.01025.92
8.1.270.0100.01022.05
8.1.260.0140.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.54
8.1.230.0070.00317.71
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.36
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0040.00418.57
8.1.160.0000.00720.83
8.1.150.0000.00819.01
8.1.140.0000.00819.60
8.1.130.0040.00417.75
8.1.120.0030.00617.41
8.1.110.0000.00717.35
8.1.100.0040.00417.51
8.1.90.0000.00717.44
8.1.80.0030.00517.47
8.1.70.0030.00317.38
8.1.60.0050.00317.48
8.1.50.0000.00817.46
8.1.40.0000.00717.44
8.1.30.0040.00417.63
8.1.20.0080.00017.64
8.1.10.0040.00417.53
8.1.00.0040.00417.52
8.0.300.0040.00418.84
8.0.290.0030.00516.75
8.0.280.0070.00018.45
8.0.270.0070.00017.21
8.0.260.0060.00017.25
8.0.250.0040.00417.03
8.0.240.0040.00416.96
8.0.230.0030.00416.91
8.0.220.0000.00716.93
8.0.210.0040.00416.89
8.0.200.0000.00717.02
8.0.190.0030.00617.04
8.0.180.0040.00417.07
8.0.170.0070.00017.01
8.0.160.0000.00716.97
8.0.150.0000.00816.86
8.0.140.0000.00816.83
8.0.130.0000.00513.38
8.0.120.0080.00016.94
8.0.110.0000.00716.81
8.0.100.0040.00417.00
8.0.90.0050.00316.78
8.0.80.0110.00816.92
8.0.70.0000.00716.85
8.0.60.0020.00516.84
8.0.50.0040.00416.98
8.0.30.0060.01117.04
8.0.20.0090.01017.40
8.0.10.0030.00517.13
8.0.00.0090.00916.85
7.4.330.0060.00016.83
7.4.320.0030.00316.57
7.4.300.0030.00516.36
7.4.290.0000.00716.49
7.4.280.0040.00416.59
7.4.270.0000.00816.46
7.4.260.0070.00016.59
7.4.250.0040.00416.49
7.4.240.0070.00016.53
7.4.230.0000.00816.37
7.4.220.0070.01416.65
7.4.210.0040.01116.58
7.4.200.0000.00716.36
7.4.160.0110.00616.59
7.4.150.0030.01417.40
7.4.140.0090.01017.86
7.4.130.0070.01116.67
7.4.120.0130.00816.55
7.4.110.0100.00716.44
7.4.100.0090.01616.51
7.4.90.0030.01416.51
7.4.80.0130.00319.39
7.4.70.0200.00316.58
7.4.60.0120.00616.47
7.4.50.0070.00716.48
7.4.40.0140.00616.61
7.4.30.0160.00816.61
7.4.10.0030.01314.82
7.4.00.0070.00814.99
7.3.330.0000.00513.26
7.3.320.0000.00613.26
7.3.310.0030.00316.40
7.3.300.0030.00316.42
7.3.290.0050.01116.47
7.3.280.0120.00616.42
7.3.270.0120.00617.40
7.3.260.0060.01216.42
7.3.250.0100.00816.44
7.3.240.0090.01316.58
7.3.230.0030.01316.63
7.3.210.0130.00316.34
7.3.200.0040.01419.39
7.3.190.0130.00416.67
7.3.180.0060.01116.48
7.3.170.0120.00616.36
7.3.160.0100.01016.50
7.3.130.0070.01014.66
7.3.120.0060.00914.88
7.3.110.0030.01515.04
7.3.100.0040.01114.94
7.3.90.0140.00314.62
7.3.80.0130.00015.20
7.3.70.0070.00714.80
7.3.60.0070.00714.74
7.3.50.0000.00815.00
7.3.40.0090.00314.89
7.3.30.0030.01014.64
7.3.20.0000.01016.68
7.3.10.0020.00816.74
7.3.00.0080.00616.62
7.2.330.0110.00616.56
7.2.320.0080.00816.79
7.2.310.0090.00616.74
7.2.300.0120.00616.80
7.2.290.0030.01916.77
7.2.260.0070.01115.11
7.2.250.0030.01314.80
7.2.240.0040.01114.95
7.2.230.0040.01114.98
7.2.220.0000.01315.14
7.2.210.0040.01114.87
7.2.200.0030.01015.21
7.2.190.0070.00714.89
7.2.180.0060.00615.10
7.2.170.0000.01114.89
7.2.160.0060.00915.14
7.2.150.0030.01316.53
7.2.140.0100.00717.07
7.2.130.0050.01016.93
7.2.120.0080.00816.96
7.2.110.0080.00816.96
7.2.100.0050.00816.94
7.2.90.0060.00816.87
7.2.80.0050.01016.73
7.2.70.0070.00516.95
7.2.60.0060.00716.98
7.2.50.0070.00616.78
7.2.40.0030.01016.97
7.2.30.0080.00516.85
7.2.20.0030.00816.73
7.2.10.0100.00716.88
7.2.00.0060.00817.75
7.1.330.0080.00815.82
7.1.320.0000.01215.96
7.1.310.0000.00915.96
7.1.300.0000.01315.80
7.1.290.0090.00015.55
7.1.280.0000.01115.57
7.1.270.0030.01015.65
7.1.260.0040.00715.85
7.1.250.0050.00915.71
7.1.240.0040.01215.73
7.1.230.0040.00415.92
7.1.220.0060.00915.91
7.1.210.0000.01215.82
7.1.200.0070.00715.89
7.1.190.0040.00815.59
7.1.180.0030.00715.71
7.1.170.0100.00315.93
7.1.160.0070.00715.80
7.1.150.0060.00615.85
7.1.140.0070.00315.88
7.1.130.0070.00715.89
7.1.120.0080.00015.82
7.1.110.0100.00315.88
7.1.100.0090.00616.78
7.1.90.0080.00815.82
7.1.80.0040.01115.61
7.1.70.0030.00716.27
7.1.60.0100.01217.67
7.1.50.0050.01616.35
7.1.40.0000.01715.79
7.1.30.0080.00315.69
7.1.20.0040.01115.84
7.1.10.0080.00815.58
7.1.00.0080.04219.01
7.0.330.0030.01315.60
7.0.320.0040.00715.29
7.0.310.0100.00715.49
7.0.300.0070.00715.45
7.0.290.0030.01115.14
7.0.280.0060.00615.29
7.0.270.0040.01115.30
7.0.260.0100.00015.33
7.0.250.0060.00915.59
7.0.240.0090.00915.59
7.0.230.0000.00915.24
7.0.220.0120.00315.41
7.0.210.0030.00915.46
7.0.200.0110.00615.19
7.0.190.0070.01115.48
7.0.180.0030.01315.57
7.0.170.0060.00915.48
7.0.160.0060.01015.51
7.0.150.0070.01115.57
7.0.140.0040.01115.46
7.0.130.0000.00815.40
7.0.120.0030.01015.25
7.0.110.0060.00315.57
7.0.100.0070.00715.21
7.0.90.0100.00715.51
7.0.80.0080.00415.27
7.0.70.0040.00715.26
7.0.60.0190.03118.64
7.0.50.0110.02516.69
7.0.40.0080.04816.76
7.0.30.0170.03716.89
7.0.20.0150.02516.83
7.0.10.0050.03016.88
7.0.00.0070.04316.72
5.6.400.0060.00614.30
5.6.390.0070.01014.29
5.6.380.0000.01414.54
5.6.370.0000.00814.24
5.6.360.0060.00614.60
5.6.350.0080.00414.45
5.6.340.0070.01014.34
5.6.330.0090.00014.71
5.6.320.0100.00314.66
5.6.310.0040.00414.34
5.6.300.0100.01014.23
5.6.290.0000.01714.59
5.6.280.0070.01417.80
5.6.270.0000.01414.31
5.6.260.0030.01014.48
5.6.250.0000.01614.46
5.6.240.0040.00714.72
5.6.230.0070.00414.41
5.6.220.0070.00714.28
5.6.210.0070.03517.56
5.6.200.0030.02516.29
5.6.190.0060.02317.46
5.6.180.0130.02517.35
5.6.170.0200.04217.49
5.6.160.0100.04017.39
5.6.150.0100.04116.29
5.6.140.0050.03916.22
5.6.130.0070.02916.32
5.6.120.0080.02717.73
5.6.110.0080.03317.66
5.6.100.0070.03417.70
5.6.90.0070.02917.78
5.6.80.0070.03517.46
5.6.70.0030.01414.30
5.6.60.0030.00714.22
5.6.50.0000.01314.48
5.6.40.0060.00314.68
5.6.30.0070.01014.39
5.6.20.0060.00914.45
5.6.10.0060.00614.28
5.6.00.0130.00014.36
5.5.380.0030.00713.94
5.5.370.0070.00714.10
5.5.360.0000.01214.28
5.5.350.0070.04717.18
5.5.340.0030.02816.23
5.5.330.0020.02717.22
5.5.320.0320.03017.37
5.5.310.0110.02817.25
5.5.300.0070.04416.25
5.5.290.0070.02816.28
5.5.280.0020.03317.72
5.5.270.0070.04117.71
5.5.260.0050.04617.53
5.5.250.0110.02617.53
5.5.240.2160.02317.19
5.5.230.0090.00614.26
5.5.220.0090.00614.44
5.5.210.0030.01014.42
5.5.200.0060.00814.13
5.5.190.0060.00314.07
5.5.180.0060.01214.16
5.5.170.0090.00914.43
5.5.160.0110.00414.35
5.5.150.0030.00914.14
5.5.140.0030.00914.02
5.5.130.0090.00314.13
5.5.120.0000.01313.86
5.5.110.0080.00814.14
5.5.100.0090.00314.06
5.5.90.0100.00314.11
5.5.80.0090.00314.25
5.5.70.0100.00314.38
5.5.60.0070.00414.38
5.5.50.0060.01014.32
5.5.40.0060.00914.41
5.5.30.0030.01314.24
5.5.20.0000.01214.38
5.5.10.0090.00614.31
5.5.00.0030.01213.91

preferences:
65.11 ms | 401 KiB | 5 Q