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($this); echo "Let's add a property!", PHP_EOL; $this->y = 5; $this->x = 2; var_dump($this); echo "Where did the private come from?", PHP_EOL; } } $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.02015.18
7.4.00.0070.01015.12
7.3.130.0150.00314.85
7.3.120.0090.00914.81
7.3.110.0000.01814.73
7.3.100.0070.00714.59
7.3.90.0040.01214.79
7.3.80.0100.00614.57
7.3.70.0060.00614.82
7.3.60.0090.00314.83
7.3.50.0060.00814.92
7.3.40.0060.00914.86
7.3.30.0070.00714.54
7.3.20.0060.00616.75
7.3.10.0070.00716.65
7.3.00.0070.00716.70
7.2.260.0080.00815.17
7.2.250.0150.00414.86
7.2.240.0110.00414.86
7.2.230.0070.00715.27
7.2.220.0000.01115.23
7.2.210.0030.01215.16
7.2.200.0070.01014.95
7.2.190.0100.00314.85
7.2.180.0070.00315.18
7.2.170.0070.01015.00
7.2.160.0000.01015.20
7.2.150.0030.00916.69
7.2.140.0070.00716.87
7.2.130.0100.00616.76
7.2.120.0060.00916.82
7.2.110.0090.00316.74
7.2.100.0060.00617.02
7.2.90.0070.00716.67
7.2.80.0030.01016.81
7.2.70.0030.01416.93
7.2.60.0050.00916.96
7.2.50.0040.00816.71
7.2.40.0000.01317.06
7.2.30.0070.00716.82
7.2.20.0000.01116.77
7.2.10.0070.01017.03
7.2.00.0070.00718.06
7.1.330.0030.01015.76
7.1.320.0030.01315.95
7.1.310.0030.00615.89
7.1.300.0000.01415.77
7.1.290.0040.00815.89
7.1.280.0000.01215.85
7.1.270.0100.00015.72
7.1.260.0060.00915.56
7.1.250.0060.00915.71
7.1.240.0040.01115.81
7.1.230.0030.00715.67
7.1.220.0030.00615.81
7.1.210.0030.01015.84
7.1.200.0060.01015.87
7.1.190.0030.00915.38
7.1.180.0070.00715.86
7.1.170.0000.01215.37
7.1.160.0090.00315.72
7.1.150.0120.00315.70
7.1.140.0060.00315.85
7.1.130.0040.01115.44
7.1.120.0000.00915.90
7.1.110.0090.00315.80
7.1.100.0050.00816.53
7.1.90.0070.00715.88
7.1.80.0000.01115.49
7.1.70.0080.00516.32
7.1.60.0070.00917.43
7.1.50.0050.01216.43
7.1.40.0070.00715.78
7.1.30.0090.00615.71
7.1.20.0110.00315.65
7.1.10.0070.00715.91
7.1.00.0070.03818.89
7.0.330.0040.00715.52
7.0.320.0030.00915.43
7.0.310.0130.00315.41
7.0.300.0100.00315.01
7.0.290.0060.00315.31
7.0.280.0030.01315.39
7.0.270.0040.01215.45
7.0.260.0060.00915.21
7.0.250.0030.00715.52
7.0.240.0060.00615.42
7.0.230.0090.00615.38
7.0.220.0070.00715.55
7.0.210.0140.00315.36
7.0.200.0030.00816.20
7.0.190.0080.00415.50
7.0.180.0040.00815.59
7.0.170.0140.00315.40
7.0.160.0070.00715.55
7.0.150.0040.00715.49
7.0.140.0000.01315.46
7.0.130.0090.00315.48
7.0.120.0070.00715.15
7.0.110.0040.00815.55
7.0.100.0040.01115.40
7.0.90.0040.00715.39
7.0.80.0100.00315.51
7.0.70.0090.00615.32
7.0.60.0100.04317.70
7.0.50.0050.03816.63
7.0.40.0020.03016.85
7.0.30.0300.02716.91
7.0.20.0310.03316.86
7.0.10.0120.04316.84
7.0.00.0080.04816.88
5.6.400.0030.01214.17
5.6.390.0040.01114.13
5.6.380.0060.00614.43
5.6.370.0000.01114.18
5.6.360.0080.00414.43
5.6.350.0030.00614.36
5.6.340.0030.00614.26
5.6.330.0040.01214.18
5.6.320.0000.01314.27
5.6.310.0030.00714.55
5.6.300.0070.00714.34
5.6.290.0040.00414.22
5.6.280.0020.02317.62
5.6.270.0030.00714.32
5.6.260.0030.01114.67
5.6.250.0090.00914.18
5.6.240.0060.00914.27
5.6.230.0040.00714.29
5.6.220.0030.00614.44
5.6.210.0070.03417.36
5.6.200.0080.02316.29
5.6.190.0080.04517.43
5.6.180.0230.04817.40
5.6.170.0150.02517.32
5.6.160.0030.03317.33
5.6.150.0080.04416.16
5.6.140.0050.02116.13
5.6.130.0050.04516.27
5.6.120.0060.02517.58
5.6.110.0060.03817.51
5.6.100.0120.04217.63
5.6.90.0090.01917.77
5.6.80.0020.02217.15
5.6.70.0030.00714.11
5.6.60.0100.00714.21
5.6.50.0110.00714.16
5.6.40.0140.00314.30
5.6.30.0080.00014.28
5.6.20.0100.00314.45
5.6.10.0040.00814.09
5.6.00.0000.00913.95
5.5.380.0070.00714.25
5.5.370.0040.01114.07
5.5.360.0090.00314.36
5.5.350.0120.02417.38
5.5.340.0030.02316.13
5.5.330.0070.04317.30
5.5.320.0030.03317.27
5.5.310.0260.02617.14
5.5.300.0070.03616.15
5.5.290.0090.03216.05
5.5.280.0090.04017.60
5.5.270.0100.04117.64
5.5.260.0100.03817.51
5.5.250.0110.04017.25
5.5.240.0150.04117.09
5.5.230.0130.00014.14
5.5.220.0060.01014.20
5.5.210.0030.01513.84
5.5.200.0000.01513.81
5.5.190.0070.00414.24
5.5.180.0030.01014.18
5.5.170.0030.01014.27
5.5.160.0080.00814.05
5.5.150.0090.00614.14
5.5.140.0090.00613.97
5.5.130.0040.01213.93
5.5.120.0090.00314.26
5.5.110.0000.01113.94
5.5.100.0060.00314.07
5.5.90.0030.01014.15
5.5.80.0070.00714.20
5.5.70.0100.00314.41
5.5.60.0030.00914.25
5.5.50.0080.00413.69
5.5.40.0030.01414.26
5.5.30.0090.00313.83
5.5.20.0040.01214.29
5.5.10.0120.00013.89
5.5.00.0040.01114.07

preferences:
38.36 ms | 401 KiB | 5 Q