3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass { private $var = null; function __construct() { $this->var = "Hello"; } public function func() { $this->var = null; var_dump($this->var);// Does nothing, still "Hello" unset($this->var); var_dump($this->var);// Does nothing, still "Hello" $this->var = false; var_dump($this->var);// Works and prints "Hello" } } $c = new myClass; $c->func();

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.4.120.0130.00724.15
8.4.110.0100.00422.41
8.4.100.0050.00417.92
8.4.90.0150.00718.58
8.4.80.0060.00917.75
8.4.70.0130.00717.89
8.4.60.0060.00724.16
8.4.50.0120.00818.63
8.4.40.0100.01019.19
8.4.30.0070.01320.24
8.4.20.0120.00918.72
8.4.10.0120.00017.77
8.3.250.0100.00818.81
8.3.240.0110.00916.86
8.3.230.0110.00716.40
8.3.220.0130.00716.98
8.3.210.0110.00718.78
8.3.200.0060.00316.66
8.3.190.0130.00517.26
8.3.180.0060.00416.97
8.3.170.0140.00416.96
8.3.160.0100.00916.66
8.3.150.0070.01118.84
8.3.140.0090.00617.32
8.3.130.0080.00018.60
8.3.120.0030.00619.08
8.3.110.0030.00620.94
8.3.100.0120.00424.06
8.3.90.0120.00826.77
8.3.80.0060.00316.88
8.3.70.0060.00918.30
8.3.60.0070.01116.63
8.3.50.0030.01018.11
8.3.40.0000.01418.71
8.3.30.0110.00318.67
8.3.20.0000.00724.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0090.00720.31
8.2.280.0130.00518.37
8.2.270.0160.00317.27
8.2.260.0120.00616.91
8.2.250.0040.00416.61
8.2.240.0030.00718.88
8.2.230.0150.00322.58
8.2.220.0070.01037.54
8.2.210.0080.00026.77
8.2.200.0060.00317.00
8.2.190.0040.01216.88
8.2.180.0090.00625.92
8.2.170.0150.00018.83
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00326.16
8.2.110.0070.00321.18
8.2.100.0090.00317.84
8.2.90.0030.00719.09
8.2.80.0040.00417.93
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0030.00519.51
8.2.30.0070.00018.01
8.2.20.0060.00317.91
8.2.10.0080.00019.11
8.2.00.0070.00019.18
8.1.330.0080.01022.12
8.1.320.0110.00916.08
8.1.310.0040.00418.41
8.1.300.0040.00418.12
8.1.290.0030.00618.88
8.1.280.0130.00625.92
8.1.270.0000.00723.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00420.83
8.1.230.0060.00620.90
8.1.220.0070.00317.74
8.1.210.0030.00518.90
8.1.200.0000.01017.35
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0080.00020.30
8.1.160.0070.00018.84
8.1.150.0040.00418.65
8.1.140.0000.00718.89
8.1.130.0070.00017.50
8.1.120.0110.00017.31
8.1.110.0070.00017.43
8.1.100.0000.00817.39
8.1.90.0030.00517.31
8.1.80.0080.00017.40
8.1.70.0030.00317.23
8.1.60.0040.00417.57
8.1.50.0030.00617.56
8.1.40.0040.00417.39
8.1.30.0030.00617.55
8.1.20.0000.00817.64
8.1.10.0030.00617.43
8.1.00.0040.00417.46
8.0.300.0070.00020.02
8.0.290.0040.00416.75
8.0.280.0040.00418.34
8.0.270.0040.00417.95
8.0.260.0070.00016.83
8.0.250.0030.00317.00
8.0.240.0100.00016.99
8.0.230.0030.00316.84
8.0.220.0000.00816.88
8.0.210.0040.00416.81
8.0.200.0030.00316.95
8.0.190.0040.00417.00
8.0.180.0040.00416.87
8.0.170.0040.00416.88
8.0.160.0040.00416.88
8.0.150.0000.00716.83
8.0.140.0040.00416.70
8.0.130.0030.00313.39
8.0.120.0000.00716.88
8.0.110.0030.00516.82
8.0.100.0070.00017.01
8.0.90.0030.00516.85
8.0.80.0080.01016.90
8.0.70.0040.00416.79
8.0.60.0040.00416.68
8.0.50.0000.00716.98
8.0.30.0150.01116.79
8.0.20.0180.01216.89
8.0.10.0220.00916.95
8.0.00.0120.01816.89
7.4.330.0060.00015.55
7.4.320.0030.00316.43
7.4.300.0070.00016.52
7.4.290.0000.00716.38
7.4.280.0000.00816.52
7.4.270.0000.00616.59
7.4.260.0030.00313.29
7.4.250.0030.00316.55
7.4.240.0030.00516.59
7.4.230.0000.00716.58
7.4.220.0070.00016.39
7.4.210.0150.00616.59
7.4.200.0000.00816.68
7.4.160.0180.00316.46
7.4.150.0140.01216.59
7.4.140.0030.01316.39
7.4.130.0190.00615.94
7.4.120.0070.02016.59
7.4.110.0170.01116.20
7.4.100.0050.01916.48
7.4.90.0100.01616.31
7.4.80.0160.01016.31
7.4.70.0120.01216.15
7.4.60.0150.00816.38
7.4.50.0160.01216.27
7.4.40.0240.00515.79
7.4.30.0140.01116.34
7.4.20.0140.01116.34
7.4.10.0110.01216.33
7.4.00.0090.00916.37
7.3.330.0030.00316.36
7.3.320.0000.00613.23
7.3.310.0000.00716.26
7.3.300.0000.00616.23
7.3.290.0090.00716.35
7.3.280.0150.01216.33
7.3.270.0150.01215.90
7.3.260.0150.01016.32
7.3.250.0210.01216.29
7.3.240.0170.01016.29
7.3.230.0160.01016.23
7.3.220.0210.00716.23
7.3.210.0220.00716.26
7.3.200.0210.00916.26
7.3.190.0230.00816.18
7.3.180.0150.01216.16
7.3.170.0170.00916.16
7.3.160.0120.01116.20
7.3.150.0300.00616.20
7.3.140.0180.00916.16
7.3.130.0030.01716.21
7.3.120.0130.01016.20
7.3.110.0190.00716.12
7.3.100.0180.00616.17
7.3.90.0350.00316.54
7.3.80.0230.00816.24
7.3.70.0270.00016.32
7.3.60.0160.00716.41
7.3.50.0110.01116.35
7.3.40.0210.00416.27
7.3.30.0160.00816.36
7.3.20.0200.00616.33
7.3.10.0150.00816.31
7.3.00.0080.00816.21

preferences:
28.31 ms | 403 KiB | 5 Q