3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "7.0.0" or die(); class FooBar { private $x; private $y = null; public function __construct() { var_dump($this); echo "Let's remove a property!", PHP_EOL; unset($this->x); var_dump($this); 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.0000.01914.85
7.4.00.0030.01215.04
7.3.130.0120.00015.04
7.3.120.0080.00614.61
7.3.110.0050.01214.86
7.3.100.0100.00614.70
7.3.90.0060.00714.75
7.3.80.0050.01214.72
7.3.70.0080.00514.53
7.3.60.0040.01214.73
7.3.50.0040.01014.64
7.3.40.0070.00614.78
7.3.30.0110.00414.80
7.3.20.0060.00916.54
7.3.10.0020.01216.66
7.3.00.0000.01316.59
7.2.260.0030.01614.73
7.2.250.0100.00914.97
7.2.240.0070.01015.00
7.2.230.0060.00814.99
7.2.220.0040.00914.81
7.2.210.0070.00715.02
7.2.200.0030.00914.95
7.2.190.0080.00515.10
7.2.180.0050.00814.93
7.2.170.0060.00314.89
7.2.160.0150.00615.07
7.2.150.0070.00716.63
7.2.140.0070.01416.89
7.2.130.0060.00616.79
7.2.120.0120.00316.92
7.2.110.0030.01116.84
7.2.100.0090.00616.93
7.2.90.0040.01117.10
7.2.80.0120.00017.03
7.2.70.0090.00417.05
7.2.60.0050.00916.77
7.2.50.0060.01217.00
7.2.40.0060.00916.75
7.2.30.0060.01216.88
7.2.20.0120.00016.95
7.2.10.0060.01016.95
7.2.00.0080.00818.06
7.1.330.0090.00615.65
7.1.320.0060.00615.80
7.1.310.0010.01315.78
7.1.300.0060.00815.74
7.1.290.0050.00515.74
7.1.280.0000.01315.76
7.1.270.0080.00815.78
7.1.260.0040.00815.79
7.1.250.0000.01115.90
7.1.240.0030.00915.67
7.1.230.0070.00715.84
7.1.220.0070.00315.61
7.1.210.0000.01515.79
7.1.200.0020.01015.86
7.1.190.0040.00915.84
7.1.180.0000.01115.87
7.1.170.0040.00815.77
7.1.160.0030.01415.75
7.1.150.0090.00615.60
7.1.140.0030.00715.81
7.1.130.0090.00615.89
7.1.120.0030.01015.81
7.1.110.0100.00715.65
7.1.100.0030.00916.76
7.1.90.0070.01015.81
7.1.80.0120.00015.64
7.1.70.0020.00716.43
7.1.60.0090.00717.59
7.1.50.0070.01116.36
7.1.40.0090.00315.44
7.1.30.0000.01815.73
7.1.20.0060.00815.72
7.1.10.0100.00315.70
7.1.00.0030.04418.97
7.0.330.0040.00415.08
7.0.320.0040.00715.54
7.0.310.0070.00315.52
7.0.300.0080.00315.57
7.0.290.0000.01215.16
7.0.280.0090.00615.39
7.0.270.0070.00315.34
7.0.260.0070.00715.15
7.0.250.0000.01115.14
7.0.240.0030.00715.38
7.0.230.0130.00015.41
7.0.220.0070.00315.50
7.0.210.0060.00915.46
7.0.200.0040.00516.07
7.0.190.0080.00815.52
7.0.180.0040.00715.29
7.0.170.0100.00315.20
7.0.160.0040.00815.09
7.0.150.0030.00615.59
7.0.140.0060.00615.39
7.0.130.0060.00615.43
7.0.120.0040.00415.46
7.0.110.0070.00715.44
7.0.100.0060.00615.09
7.0.90.0040.00415.27
7.0.80.0090.00015.23
7.0.70.0030.00515.26
7.0.60.0030.03417.73
7.0.50.0080.03616.61
7.0.40.0040.02716.82
7.0.30.0130.04216.80
7.0.20.0160.02616.84
7.0.10.0080.04316.61
7.0.00.0060.02316.86
5.6.400.0070.00314.24
5.6.390.0040.00414.50
5.6.380.0000.01513.79
5.6.370.0070.01014.39
5.6.360.0030.01014.37
5.6.350.0100.00613.84
5.6.340.0030.01414.39
5.6.330.0040.00714.65
5.6.320.0120.00314.55
5.6.310.0040.01414.33
5.6.300.0070.00314.06
5.6.290.0040.01214.27
5.6.280.0050.02717.56
5.6.270.0000.01414.07
5.6.260.0060.00314.18
5.6.250.0000.00914.31
5.6.240.0070.00714.38
5.6.230.0070.01114.08
5.6.220.0080.00414.38
5.6.210.0100.04017.49
5.6.200.0100.04016.28
5.6.190.0060.02617.42
5.6.180.0250.02317.45
5.6.170.0120.03517.29
5.6.160.0110.04017.38
5.6.150.0080.03016.24
5.6.140.0070.03716.18
5.6.130.0050.03916.25
5.6.120.0090.03017.60
5.6.110.0100.03617.66
5.6.100.0020.02717.74
5.6.90.0050.02917.55
5.6.80.0080.04317.35
5.6.70.0070.00714.02
5.6.60.0070.00714.02
5.6.50.0030.01014.29
5.6.40.0030.01014.10
5.6.30.0080.00414.30
5.6.20.0060.00614.13
5.6.10.0050.00514.25
5.6.00.0000.01014.33
5.5.380.0030.01214.07
5.5.370.0030.01014.29
5.5.360.0040.01114.31
5.5.350.0170.03817.30
5.5.340.0090.03916.03
5.5.330.0060.02517.15
5.5.320.0040.04617.22
5.5.310.0190.03717.06
5.5.300.0070.02216.07
5.5.290.0080.03716.11
5.5.280.0080.03817.61
5.5.270.0070.02217.55
5.5.260.0040.04217.56
5.5.250.0050.02317.34
5.5.240.0100.01817.21
5.5.230.0030.01014.15
5.5.220.0150.00014.20
5.5.210.0040.00814.13
5.5.200.0000.01414.40
5.5.190.0090.00014.24
5.5.180.0060.00914.06
5.5.170.0090.00014.00
5.5.160.0080.00414.10
5.5.150.0060.01014.14
5.5.140.0030.01014.14
5.5.130.0040.01114.26
5.5.120.0040.01313.98
5.5.110.0070.01014.05
5.5.100.0110.00414.12
5.5.90.0070.01014.00
5.5.80.0040.00414.22
5.5.70.0030.00914.20
5.5.60.0030.00614.15
5.5.50.0090.00614.16
5.5.40.0040.00813.87
5.5.30.0030.00714.30
5.5.20.0000.00914.12
5.5.10.0040.00814.05
5.5.00.0100.00313.82

preferences:
35.82 ms | 401 KiB | 5 Q