3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Immutable { public function __set($name, $value) { throw new Exception('<iframe width="420" height="315" src="https://www.youtube.com/embed/otCpCn0l4Wo?t=14" frameborder="0" allowfullscreen></iframe>'); } 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.70.0070.01017.00
8.3.60.0150.00716.88
8.3.50.0080.01321.13
8.3.40.0110.00718.76
8.3.30.0070.00718.88
8.3.20.0040.00420.39
8.3.10.0040.00421.77
8.3.00.0040.00423.68
8.2.180.0100.00716.63
8.2.170.0120.00322.96
8.2.160.0030.01020.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00020.92
8.2.120.0080.00026.35
8.2.110.0000.00919.33
8.2.100.0110.00017.80
8.2.90.0040.00419.27
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0030.00518.04
8.2.50.0080.00318.09
8.2.40.0030.00522.15
8.2.30.0000.00819.47
8.2.20.0000.00817.68
8.2.10.0040.00418.13
8.2.00.0030.00517.97
8.1.280.0040.01125.92
8.1.270.0050.00322.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.01722.67
8.1.230.0030.00717.77
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0000.01017.23
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0000.00918.54
8.1.160.0040.00420.83
8.1.150.0040.00420.71
8.1.140.0000.00819.60
8.1.130.0000.00717.63
8.1.120.0060.00317.54
8.1.110.0050.00317.43
8.1.100.0030.00617.38
8.1.90.0080.00017.34
8.1.80.0050.00217.44
8.1.70.0040.00417.53
8.1.60.0000.00917.55
8.1.50.0030.00617.50
8.1.40.0040.00417.41
8.1.30.0080.00017.63
8.1.20.0040.00417.56
8.1.10.0000.00717.52
8.1.00.0000.00717.42
8.0.300.0050.00318.77
8.0.290.0040.00416.88
8.0.280.0040.00418.52
8.0.270.0000.00817.30
8.0.260.0030.00317.27
8.0.250.0000.00817.03
8.0.240.0030.00317.03
8.0.230.0030.00317.04
8.0.220.0070.00317.03
8.0.210.0030.00516.90
8.0.200.0030.00317.02
8.0.190.0060.00317.04
8.0.180.0040.00416.88
8.0.170.0030.00517.03
8.0.160.0070.00016.95
8.0.150.0040.00416.95
8.0.140.0030.00516.97
8.0.130.0030.00313.43
8.0.120.0050.00316.91
8.0.110.0040.00416.94
8.0.100.0000.00817.03
8.0.90.0040.00416.95
8.0.80.0060.01516.90
8.0.70.0000.00717.02
8.0.60.0040.00416.92
8.0.50.0040.00416.95
8.0.30.0090.01317.11
8.0.20.0080.01317.40
8.0.10.0040.00416.91
8.0.00.0100.00816.94
7.4.330.0000.00516.89
7.4.320.0000.00716.51
7.4.300.0000.00816.53
7.4.290.0050.00216.41
7.4.280.0000.00716.61
7.4.270.0000.00716.59
7.4.260.0060.00016.51
7.4.250.0040.00416.62
7.4.240.0000.00716.57
7.4.230.0000.00716.60
7.4.220.0180.00316.46
7.4.210.0040.01216.56
7.4.200.0050.00316.62
7.4.160.0120.00316.43
7.4.150.0100.00717.40
7.4.140.0090.01317.86
7.4.130.0090.01316.56
7.4.120.0110.00616.65
7.4.110.0070.01016.53
7.4.100.0060.01916.37
7.4.90.0100.00716.61
7.4.80.0100.00719.39
7.4.70.0080.00816.55
7.4.60.0130.00916.75
7.4.50.0040.01516.34
7.4.40.0060.00916.64
7.4.30.0120.01616.46
7.4.00.0050.00814.96
7.3.330.0020.00213.30
7.3.320.0050.00013.41
7.3.310.0000.00716.33
7.3.300.0030.00316.39
7.3.290.0050.01016.43
7.3.280.0060.01016.42
7.3.270.0220.00017.40
7.3.260.0000.01716.53
7.3.250.0100.01016.40
7.3.240.0110.00816.57
7.3.230.0080.00916.51
7.3.210.0270.01816.46
7.3.200.0100.01319.39
7.3.190.0170.00416.47
7.3.180.0070.01016.63
7.3.170.0110.00716.66
7.3.160.0130.01016.49
7.3.120.0100.00715.05
7.3.110.0100.01014.85
7.3.100.0100.00314.84
7.3.90.0070.01114.98
7.3.80.0000.01114.86
7.3.70.0030.00614.74
7.3.60.0030.01014.63
7.3.50.0040.01114.62
7.3.40.0000.01814.72
7.3.30.0000.01414.49
7.3.20.0030.00716.56
7.3.10.0060.01016.75
7.3.00.0090.00616.40
7.2.330.0090.00916.59
7.2.320.0030.01316.63
7.2.310.0080.00816.79
7.2.300.0100.00716.58
7.2.290.0090.01516.64
7.2.250.0070.01015.05
7.2.240.0060.01314.90
7.2.230.0110.00414.96
7.2.220.0040.00815.24
7.2.210.0000.01714.84
7.2.200.0030.01315.01
7.2.190.0120.00315.11
7.2.180.0080.00814.73
7.2.170.0000.01815.05
7.2.60.0030.00916.97
7.2.00.0080.00419.22
7.1.330.0040.01115.77
7.1.320.0000.01315.51
7.1.310.0060.01215.87
7.1.300.0030.01015.78
7.1.290.0030.01015.74
7.1.280.0070.00615.70
7.1.270.0090.00615.72
7.1.260.0080.00415.68
7.1.200.0160.00515.59
7.1.100.0040.00418.04
7.1.70.0040.00417.14
7.1.60.0100.01319.40
7.1.50.0030.01316.96
7.1.00.0030.07722.36
7.0.200.0170.00714.85
7.0.60.0200.07321.81
7.0.50.0070.07717.89
7.0.40.0070.08320.24
7.0.30.0170.04720.26
7.0.20.0200.04720.09
7.0.10.0070.04320.30
7.0.00.0200.07320.23
5.6.280.0030.04021.03
5.6.210.0100.08020.63
5.6.200.0100.03718.31
5.6.190.0000.04720.61
5.6.180.0230.04020.77
5.6.170.0330.08320.54
5.6.160.0070.07720.45
5.6.150.0130.04318.29
5.6.140.0030.04318.29
5.6.130.0070.07318.11
5.6.120.0070.08721.15
5.6.110.0100.07721.00
5.6.100.0100.07720.96
5.6.90.0130.07720.98
5.6.80.0000.07020.52
5.5.350.0100.07720.36
5.5.340.0100.07317.95
5.5.330.0070.04020.25
5.5.320.0600.05020.33
5.5.310.0430.06020.19
5.5.300.0030.07718.07
5.5.290.0070.08318.09
5.5.280.0070.05320.89
5.5.270.0030.08320.66
5.5.260.0130.08020.89
5.5.250.0100.07720.59
5.5.240.4270.03320.24

preferences:
61.27 ms | 401 KiB | 5 Q