3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); // so only PHP 7 will show up class FooBar { private $x; public function __construct() { var_dump($this); unset($this->x); // I can remove a property! var_dump($this->x); // It's gone! $this->x = 2; // I can recreate a property! var_dump($this->x); // The "new" property retains the "old" property's visibilty. Good job. } }

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.40.0090.00918.51
8.3.30.0110.00418.57
8.3.20.0040.00420.16
8.3.10.0080.00021.95
8.3.00.0000.01119.25
8.2.170.0070.00722.96
8.2.160.0100.01020.56
8.2.150.0040.01124.18
8.2.140.0140.00024.66
8.2.130.0050.00320.57
8.2.120.0000.00826.35
8.2.110.0090.00021.00
8.2.100.0000.01217.59
8.2.90.0040.00419.32
8.2.80.0000.00920.54
8.2.70.0000.00817.38
8.2.60.0040.00417.38
8.2.50.0030.00617.33
8.2.40.0030.00617.62
8.2.30.0040.00417.62
8.2.20.0000.00917.51
8.2.10.0070.00017.98
8.2.00.0050.00217.84
8.1.270.0050.00223.79
8.1.260.0080.00028.09
8.1.250.0070.00728.09
8.1.240.0090.00022.05
8.1.230.0060.00622.73
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00617.00
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0050.00317.62
8.1.160.0000.00818.70
8.1.150.0050.00218.68
8.1.140.0040.00419.45
8.1.130.0000.00817.59
8.1.120.0050.00217.36
8.1.110.0070.00017.32
8.1.100.0100.00017.41
8.1.90.0000.00817.23
8.1.80.0050.00317.23
8.1.70.0000.00917.30
8.1.60.0040.00417.34
8.1.50.0050.00517.39
8.1.40.0040.00417.29
8.1.30.0040.00417.49
8.1.20.0000.00817.52
8.1.10.0000.00717.41
8.1.00.0040.00417.17
8.0.300.0070.00020.09
8.0.290.0070.00016.63
8.0.280.0000.00717.88
8.0.270.0050.00317.89
8.0.260.0060.00017.04
8.0.250.0000.00716.88
8.0.240.0000.00716.82
8.0.230.0030.00316.78
8.0.220.0050.00316.61
8.0.210.0040.00416.73
8.0.200.0030.00316.87
8.0.190.0080.00016.86
8.0.180.0050.00316.77
8.0.170.0000.00716.68
8.0.160.0080.00016.66
8.0.150.0040.00416.74
8.0.140.0070.00016.71
8.0.130.0000.00613.15
8.0.120.0050.00316.63
8.0.110.0030.00516.77
8.0.100.0070.00016.72
8.0.90.0070.00016.64
8.0.80.0060.00916.74
8.0.70.0040.00416.88
8.0.60.0000.00716.58
8.0.50.0040.00416.78
8.0.30.0120.00616.96
8.0.20.0110.01317.40
8.0.10.0080.00016.86
8.0.00.0130.00816.68
7.4.330.0020.00216.67
7.4.320.0030.00316.43
7.4.300.0040.00416.43
7.4.290.0020.00516.30
7.4.280.0030.00616.27
7.4.270.0030.00316.37
7.4.260.0000.00716.39
7.4.250.0000.00716.37
7.4.240.0020.00616.51
7.4.230.0030.00316.48
7.4.220.0120.00616.58
7.4.210.0080.00816.46
7.4.200.0040.00416.58
7.4.160.0070.00716.25
7.4.150.0090.01617.40
7.4.140.0090.01217.86
7.4.130.0090.00816.24
7.4.120.0120.01116.19
7.4.110.0170.00316.48
7.4.100.0070.01416.35
7.4.90.0150.00316.46
7.4.80.0070.01619.39
7.4.70.0090.00616.40
7.4.60.0040.01416.37
7.4.50.0040.01116.13
7.4.40.0080.00816.18
7.4.30.0120.00416.33
7.4.00.0110.00414.71
7.3.330.0030.00313.18
7.3.320.0030.00313.13
7.3.310.0040.00416.07
7.3.300.0030.00316.05
7.3.290.0030.00316.04
7.3.280.0100.00916.16
7.3.270.0070.01117.40
7.3.260.0140.00316.43
7.3.250.0090.00816.36
7.3.240.0080.00816.43
7.3.230.0080.01116.40
7.3.210.0070.01016.46
7.3.200.0040.01516.16
7.3.190.0130.00716.34
7.3.180.0040.01816.14
7.3.170.0090.01216.49
7.3.160.0060.00916.44
7.3.120.0070.01114.80
7.3.110.0000.01414.33
7.3.100.0060.00614.80
7.3.90.0030.00714.74
7.3.80.0030.01014.98
7.3.70.0040.00814.55
7.3.60.0000.00814.43
7.3.50.0080.00314.67
7.3.40.0000.01214.70
7.3.30.0040.00714.32
7.3.20.0060.00316.55
7.3.10.0000.01516.28
7.3.00.0040.00716.53
7.2.330.0100.00716.18
7.2.320.0100.01016.51
7.2.310.0000.02116.24
7.2.300.0170.00716.46
7.2.290.0070.01016.54
7.2.240.0070.01015.02
7.2.230.0000.01114.78
7.2.220.0070.01114.77
7.2.210.0090.01014.64
7.2.200.0070.00714.84
7.2.190.0030.00914.67
7.2.180.0040.01114.97
7.2.170.0100.00314.99
7.2.160.0130.00014.86
7.2.150.0140.00316.73
7.2.140.0060.00916.64
7.2.130.0030.01416.53
7.2.120.0070.00716.50
7.2.110.0070.00416.66
7.2.100.0000.01616.80
7.2.90.0030.01016.86
7.2.80.0040.00716.47
7.2.70.0030.01316.88
7.2.60.0200.00416.56
7.2.50.0060.00316.84
7.2.40.0110.00316.76
7.2.30.0090.00616.75
7.2.20.0000.01016.66
7.2.10.0110.00016.50
7.2.00.0100.00917.85
7.1.330.0060.00615.48
7.1.320.0000.01515.61
7.1.310.0070.00715.30
7.1.300.0030.01015.56
7.1.290.0000.01415.55
7.1.280.0030.00915.69
7.1.270.0030.01015.30
7.1.260.0030.01315.46
7.1.250.0090.00315.61
7.1.200.0090.00315.61
7.1.100.0040.00817.95
7.1.70.0160.00816.90
7.1.60.0100.01319.36
7.1.50.0030.01716.64
7.1.00.0070.07322.37
7.0.200.0030.00616.53
7.0.60.0100.08020.07
7.0.50.0070.05017.91
7.0.40.0070.08719.96
7.0.30.0400.06320.23
7.0.20.0330.08320.05
7.0.10.0000.05020.24
7.0.00.0030.08720.07
5.6.280.0000.03720.99
5.6.210.0030.04320.72
5.6.200.0070.04018.16
5.6.190.0170.07320.50
5.6.180.0470.08020.39
5.6.170.0330.05320.53
5.6.160.0070.04020.41
5.6.150.0030.08718.29
5.6.140.0230.07018.21
5.6.130.0130.06718.16
5.6.120.0070.04321.15
5.6.110.0100.07321.00
5.6.100.0030.06721.11
5.6.90.0070.08321.10
5.6.80.0070.04720.35
5.5.350.0170.07020.40
5.5.340.0030.06017.95
5.5.330.0330.06320.40
5.5.320.0100.05320.30
5.5.310.0400.06720.50
5.5.300.0000.04717.95
5.5.290.0030.08718.05
5.5.280.0030.04020.66
5.5.270.0070.05020.84
5.5.260.0130.09320.95
5.5.250.0070.05720.58
5.5.240.0200.07720.15

preferences:
89.06 ms | 400 KiB | 5 Q