3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "7.0.0" or die(); class FooBar { private $x; public function __construct() { var_dump($this); 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.00315.26
7.4.00.0040.01215.13
7.3.130.0030.01314.60
7.3.120.0110.00414.62
7.3.110.0130.00314.59
7.3.100.0060.00314.79
7.3.90.0070.00714.66
7.3.80.0130.00014.82
7.3.70.0060.00314.87
7.3.60.0130.00014.74
7.3.50.0060.00614.60
7.3.40.0060.00614.68
7.3.30.0050.00814.83
7.3.20.0090.00316.29
7.3.10.0110.00416.76
7.3.00.0130.00316.75
7.2.260.0040.01515.22
7.2.250.0090.00615.11
7.2.240.0060.00915.02
7.2.230.0070.00714.62
7.2.220.0100.00615.01
7.2.210.0090.00614.94
7.2.200.0070.00715.09
7.2.190.0070.00714.99
7.2.180.0000.01315.02
7.2.170.0090.00614.95
7.2.160.0070.00415.15
7.2.150.0040.00816.84
7.2.140.0050.00516.96
7.2.130.0030.00716.72
7.2.120.0030.01016.76
7.2.110.0060.00316.99
7.2.100.0060.00316.88
7.2.90.0050.00516.90
7.2.80.0040.01116.64
7.2.70.0070.00316.63
7.2.60.0090.00616.93
7.2.50.0130.00316.95
7.2.40.0070.01017.07
7.2.30.0060.00317.05
7.2.20.0090.00916.82
7.2.10.0000.01017.01
7.2.00.0060.00717.95
7.1.330.0070.00715.42
7.1.320.0080.00515.91
7.1.310.0070.00715.91
7.1.300.0040.00715.43
7.1.290.0060.00615.79
7.1.280.0030.00915.71
7.1.270.0060.00615.86
7.1.260.0040.00415.66
7.1.250.0080.00815.78
7.1.240.0070.00315.70
7.1.230.0090.00315.81
7.1.220.0000.01215.66
7.1.210.0000.01115.84
7.1.200.0000.00815.83
7.1.190.0060.00315.54
7.1.180.0030.00715.50
7.1.170.0030.00715.47
7.1.160.0070.00715.86
7.1.150.0030.00915.50
7.1.140.0040.01115.62
7.1.130.0040.01115.73
7.1.120.0000.01115.78
7.1.110.0000.00915.71
7.1.100.0000.01516.93
7.1.90.0070.00715.84
7.1.80.0070.00715.81
7.1.70.0030.00916.51
7.1.60.0070.01317.59
7.1.50.0050.00716.15
7.1.40.0050.00515.75
7.1.30.0090.00615.70
7.1.20.0110.00015.82
7.1.10.0040.00715.79
7.1.00.0050.04118.96
7.0.330.0000.00915.45
7.0.320.0100.00315.31
7.0.310.0070.00715.14
7.0.300.0060.00915.43
7.0.290.0060.00915.49
7.0.280.0030.01215.16
7.0.270.0000.00915.35
7.0.260.0070.00715.35
7.0.250.0030.01015.50
7.0.240.0040.01115.43
7.0.230.0060.00615.54
7.0.220.0030.00615.25
7.0.210.0030.01015.53
7.0.200.0040.00716.13
7.0.190.0000.00815.42
7.0.180.0030.00615.27
7.0.170.0040.00815.30
7.0.160.0090.00315.18
7.0.150.0030.00615.21
7.0.140.0070.00715.25
7.0.130.0040.01215.34
7.0.120.0110.00715.63
7.0.110.0040.01415.48
7.0.100.0030.00915.44
7.0.90.0030.01515.22
7.0.80.0120.00315.54
7.0.70.0030.01015.37
7.0.60.0050.03717.67
7.0.50.0050.03816.69
7.0.40.0080.04016.78
7.0.30.0130.04016.66
7.0.20.0130.04116.76
7.0.10.0070.04216.77
7.0.00.0060.02116.81
5.6.400.0030.00614.03
5.6.390.0080.00414.50
5.6.380.0030.01014.21
5.6.370.0000.01614.26
5.6.360.0130.00014.27
5.6.350.0030.01214.48
5.6.340.0040.01114.21
5.6.330.0030.01114.36
5.6.320.0070.00714.52
5.6.310.0060.00614.23
5.6.300.0070.00714.67
5.6.290.0000.01314.30
5.6.280.0130.02817.51
5.6.270.0070.01014.30
5.6.260.0090.00914.17
5.6.250.0060.00914.44
5.6.240.0060.00614.53
5.6.230.0030.01314.48
5.6.220.0070.00714.53
5.6.210.0080.03817.46
5.6.200.0050.04316.08
5.6.190.0080.03317.35
5.6.180.0280.03817.37
5.6.170.0170.04117.39
5.6.160.0050.02717.34
5.6.150.0100.04316.20
5.6.140.0050.04416.31
5.6.130.0080.04116.16
5.6.120.0080.02517.65
5.6.110.0050.05017.76
5.6.100.0030.03017.80
5.6.90.0070.04817.56
5.6.80.0100.03717.42
5.6.70.0100.00314.17
5.6.60.0030.00914.09
5.6.50.0080.00614.13
5.6.40.0000.00813.87
5.6.30.0000.01014.48
5.6.20.0040.00414.32
5.6.10.0100.00713.90
5.6.00.0000.01014.26
5.5.380.0040.00414.32
5.5.370.0070.00714.03
5.5.360.0030.00714.05
5.5.350.0150.02517.31
5.5.340.0100.03015.99
5.5.330.0080.03417.36
5.5.320.0030.02417.18
5.5.310.0150.03217.24
5.5.300.0060.03715.87
5.5.290.0100.04016.03
5.5.280.0050.04817.44
5.5.270.0090.02317.49
5.5.260.0050.04417.54
5.5.250.0030.02417.15
5.5.240.0050.02817.14
5.5.230.0070.00714.01
5.5.220.0040.01114.18
5.5.210.0060.00614.13
5.5.200.0000.01313.91
5.5.190.0030.00513.93
5.5.180.0040.01114.34
5.5.170.0000.00914.08
5.5.160.0060.00314.23
5.5.150.0000.00914.16
5.5.140.0000.01114.01
5.5.130.0040.00813.99
5.5.120.0140.00014.30
5.5.110.0060.00314.14
5.5.100.0120.00314.07
5.5.90.0070.01014.11
5.5.80.0070.00313.97
5.5.70.0000.00914.16
5.5.60.0070.00713.98
5.5.50.0070.01014.13
5.5.40.0060.00914.14
5.5.30.0040.01114.15
5.5.20.0100.00714.02
5.5.10.0100.00713.72
5.5.00.0040.00713.93

preferences:
40.82 ms | 401 KiB | 5 Q