3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "7.0.0" or die(); class FooBar { private $x; public function __construct() { echo "Let's remove a property!", PHP_EOL; unset($this->x); var_dump(property_exists($this, 'x')); } } $foobar = new Foobar;

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)
7.4.10.0100.01015.02
7.4.00.0100.00914.95
7.3.130.0030.01314.74
7.3.120.0070.01014.98
7.3.110.0060.01014.66
7.3.100.0070.00914.54
7.3.90.0060.01014.82
7.3.80.0060.00514.78
7.3.70.0040.00914.81
7.3.60.0020.01014.82
7.3.50.0080.00314.90
7.3.40.0040.01114.76
7.3.30.0110.00214.66
7.3.20.0030.00816.53
7.3.10.0070.00616.47
7.3.00.0040.00816.60
7.2.260.0130.00714.99
7.2.250.0080.01015.01
7.2.240.0080.00715.23
7.2.230.0070.00815.06
7.2.220.0050.01115.00
7.2.210.0100.00415.00
7.2.200.0020.01015.00
7.2.190.0040.00714.95
7.2.180.0030.00915.02
7.2.170.0070.00915.04
7.2.160.0090.00314.87
7.2.150.0110.00216.81
7.2.140.0080.00516.85
7.2.130.0030.01016.81
7.2.120.0070.00716.82
7.2.110.0060.00616.94
7.2.100.0030.00916.80
7.2.90.0060.00816.87
7.2.80.0070.00716.90
7.2.70.0050.00816.83
7.2.60.0080.00716.84
7.2.50.0070.00516.75
7.2.40.0060.01016.84
7.2.30.0060.00716.69
7.2.20.0040.00916.77
7.2.10.0030.01216.78
7.2.00.0080.00717.53
7.1.330.0060.00615.68
7.1.320.0070.00415.77
7.1.310.0090.00515.77
7.1.300.0060.00815.81
7.1.290.0040.00715.62
7.1.280.0040.00715.77
7.1.270.0080.00515.68
7.1.260.0060.00815.75
7.1.250.0080.00515.62
7.1.240.0040.00815.82
7.1.230.0020.01015.59
7.1.220.0020.01015.78
7.1.210.0070.00515.77
7.1.200.0010.01215.75
7.1.190.0030.00815.64
7.1.180.0070.00715.57
7.1.170.0080.00515.67
7.1.160.0030.01215.79
7.1.150.0030.00815.86
7.1.140.0030.00915.81
7.1.130.0060.00415.78
7.1.120.0080.00515.46
7.1.110.0060.01015.60
7.1.100.0050.00815.75
7.1.90.0040.01115.76
7.1.80.0030.01115.72
7.1.70.0040.00816.27
7.1.60.0040.00816.22
7.1.50.0070.01016.13
7.1.40.0050.00615.83
7.1.30.0050.01115.69
7.1.20.0090.00615.74
7.1.10.0080.00715.73
7.1.00.0040.03117.92
7.0.330.0040.00815.44
7.0.320.0090.00415.43
7.0.310.0050.00315.34
7.0.300.0040.00615.37
7.0.290.0080.00615.21
7.0.280.0040.00815.23
7.0.270.0050.00715.28
7.0.260.0080.00615.23
7.0.250.0030.01215.20
7.0.240.0050.00715.47
7.0.230.0060.00615.40
7.0.220.0080.00515.41
7.0.210.0070.00715.29
7.0.200.0010.00915.94
7.0.190.0070.00415.51
7.0.180.0090.00515.26
7.0.170.0050.01115.49
7.0.160.0120.00315.36
7.0.150.0070.00815.30
7.0.140.0040.01015.28
7.0.130.0080.00615.29
7.0.120.0050.00915.51
7.0.110.0080.00515.56
7.0.100.0150.02116.86
7.0.90.0060.03217.00
7.0.80.0070.02916.89
7.0.70.0060.03316.90
7.0.60.0170.03016.99
7.0.50.0010.04117.08
7.0.40.0100.02815.55
7.0.30.0090.03215.58
7.0.20.0030.03515.70
7.0.10.0050.02815.66
7.0.00.0050.02215.75
5.6.400.0060.00814.37
5.6.390.0050.00814.21
5.6.380.0100.00114.16
5.6.370.0030.01014.50
5.6.360.0030.00814.49
5.6.350.0050.00514.26
5.6.340.0040.01114.39
5.6.330.0050.00914.32
5.6.320.0020.01414.46
5.6.310.0030.01114.13
5.6.300.0030.01014.35
5.6.290.0060.00614.33
5.6.280.0040.01816.63
5.6.270.0060.01114.45
5.6.260.0040.00914.55
5.6.250.0040.03616.35
5.6.240.0040.03116.30
5.6.230.0130.02116.49
5.6.220.0090.03116.33
5.6.210.0110.02516.29
5.6.200.0070.02516.54
5.6.190.0050.03416.50
5.6.180.0070.03116.44
5.6.170.0030.03516.57
5.6.160.0070.03116.41
5.6.150.0020.02516.47
5.6.140.0060.03216.60
5.6.130.0060.03516.37
5.6.120.0090.03216.49
5.6.110.0090.02916.55
5.6.100.0050.02416.64
5.6.90.0070.02216.47
5.6.80.0040.03516.23
5.6.70.0100.02816.19
5.6.60.0100.02816.22
5.6.50.0070.03116.31
5.6.40.0060.02416.26
5.6.30.0050.03216.16
5.6.20.0070.02116.24
5.6.10.0130.02216.17
5.6.00.0080.03016.24
5.5.380.0060.02716.25
5.5.370.0060.03216.28
5.5.360.0040.02516.28
5.5.350.0040.02316.23
5.5.340.0070.03216.26
5.5.330.0090.02816.47
5.5.320.0080.03216.40
5.5.310.0020.02316.38
5.5.300.0050.02216.38
5.5.290.0080.03416.42
5.5.280.0040.02116.41
5.5.270.0030.03216.31
5.5.260.0040.03716.40
5.5.250.0090.02916.16
5.5.240.0080.03116.16
5.5.230.0090.03116.18
5.5.220.0060.03216.18
5.5.210.0010.03816.20
5.5.200.0100.02716.06
5.5.190.0040.03016.14
5.5.180.0030.03315.98
5.5.170.0050.01014.21
5.5.160.0030.02715.89
5.5.150.0060.03116.17
5.5.140.0080.02616.15
5.5.130.0060.02816.20
5.5.120.0060.03316.18
5.5.110.0070.02816.25
5.5.100.0030.03616.07
5.5.90.0060.02016.14
5.5.80.0110.02816.05
5.5.70.0060.03216.19
5.5.60.0060.02816.22
5.5.50.0050.02916.07
5.5.40.0060.03116.06
5.5.30.0070.02916.12
5.5.20.0080.02716.00
5.5.10.0080.02915.94
5.5.00.0030.03316.00

preferences:
35.42 ms | 400 KiB | 5 Q