3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public \stdClass $x; public function __construct() { $this->x = new \stdClass(); } public function foo() { print "->foo()\n"; var_export($this->x); } } class D extends C { public function __get($name) { print "\n"; print "__get($name)\n"; var_export($this->$name); } } $c = new D(); // $c->x = NULL; print "\$c->x\n"; var_export($c->x); print "\n\n-----------------\n"; print "\$c->x after unset()\n"; unset($c->x); var_export($c->x); print "\n\n-----------------\n"; $c->foo();

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.3.70.0180.00416.63
8.3.60.0100.01316.88
8.3.50.0120.00318.27
8.3.40.0090.00918.96
8.3.30.0120.00918.79
8.3.20.0060.00324.18
8.3.10.0000.00724.66
8.3.00.0030.00526.16
8.2.180.0070.00725.92
8.2.170.0140.00719.02
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00026.35
8.2.110.0000.01120.97
8.2.100.0030.00917.84
8.2.90.0000.00817.84
8.2.80.0030.00517.97
8.2.70.0000.00818.05
8.2.60.0040.00418.16
8.2.50.0040.00718.10
8.2.40.0000.00819.24
8.2.30.0000.00719.27
8.2.20.0050.00317.94
8.2.10.0050.00219.36
8.2.00.0000.00819.26
8.1.280.0090.00525.92
8.1.270.0080.00023.99
8.1.260.0050.00228.09
8.1.250.0000.00728.09
8.1.240.0060.00322.14
8.1.230.0080.00320.90
8.1.220.0030.00517.76
8.1.210.0090.00018.77
8.1.200.0070.00317.47
8.1.190.0000.00817.12
8.1.180.0040.00418.10
8.1.170.0000.00918.57
8.1.160.0060.00318.88
8.1.150.0040.00418.80
8.1.140.0040.00418.91
8.1.130.0030.00320.12
8.1.120.0040.00417.46
8.1.110.0000.00917.46
8.1.100.0000.00817.43
8.1.90.0050.00217.38
8.1.80.0060.00317.41
8.1.70.0000.00717.38
8.1.60.0040.00417.60
8.1.50.0030.00717.56
8.1.40.0000.00817.41
8.1.30.0050.00317.57
8.1.20.0030.00917.57
8.1.10.0020.00517.51
8.1.00.0030.00617.54
8.0.300.0040.00419.79
8.0.290.0000.00916.75
8.0.280.0000.00818.37
8.0.270.0000.00816.83
8.0.260.0060.00020.31
8.0.250.0060.00017.02
8.0.240.0000.00616.89
8.0.230.0000.00717.03
8.0.220.0050.00216.98
8.0.210.0000.00716.96
8.0.200.0040.00417.00
8.0.190.0080.00016.92
8.0.180.0040.00417.03
8.0.170.0000.00916.90
8.0.160.0080.00017.01
8.0.150.0000.00816.83
8.0.140.0040.00416.96
8.0.130.0000.00813.39
8.0.120.0020.00516.93
8.0.110.0000.00716.76
8.0.100.0000.00716.84
8.0.90.0040.00416.96
8.0.80.0050.01016.96
8.0.70.0080.00017.00
8.0.60.0000.00716.87
8.0.50.0000.00816.88
8.0.30.0130.00417.29
8.0.20.0130.00617.21
8.0.10.0000.00917.01
8.0.00.0080.00616.82
7.4.330.0000.00515.55
7.4.320.0000.00816.54
7.4.300.0040.00416.52
7.4.290.0000.00716.50
7.4.280.0040.00416.61
7.4.270.0000.00716.64
7.4.260.0050.00316.61
7.4.250.0040.00416.61
7.4.240.0000.00816.63
7.4.230.0000.00716.64
7.4.220.0050.00216.40
7.4.210.0070.00916.57
7.4.200.0040.00416.50
7.4.130.0070.01316.44
7.4.120.0090.01016.57
7.4.110.0030.01416.70
7.4.100.0100.00716.36
7.4.90.0150.00416.67
7.4.80.0120.01216.38
7.4.70.0130.01516.54
7.4.60.0050.01616.48
7.4.50.0100.01316.45
7.4.40.0160.00616.24
7.4.30.0150.00816.20
7.4.20.0150.01216.27
7.4.10.0060.01716.27
7.4.00.0100.01016.62
7.3.330.0000.00716.18
7.3.320.0000.00513.16
7.3.310.0080.00016.31
7.3.300.0040.00416.20
7.3.290.0060.00916.19
7.3.280.0030.01016.16
7.3.260.0090.00916.15
7.3.230.0030.01316.34
7.3.210.0100.00716.24
7.3.200.0070.01416.16
7.3.190.0180.00316.07
7.3.180.0140.00816.09
7.3.170.0220.00016.23
7.3.160.0200.00016.29
7.3.150.0170.00716.43
7.3.140.0160.00716.27
7.3.130.0070.01416.28
7.3.120.0070.01516.11
7.3.110.0160.00816.16
7.3.100.0100.01316.13
7.3.90.0070.01516.16
7.3.80.0140.00816.33
7.3.70.0150.00916.07
7.3.60.0060.01216.16
7.3.50.0110.01316.05
7.3.40.0080.01116.20
7.3.30.0160.00816.05
7.3.20.0210.00316.22
7.3.10.0090.01416.30
7.3.00.0180.00316.28
7.2.330.0060.01116.52
7.2.320.0110.01216.21
7.2.310.0100.01316.21
7.2.300.0210.00516.16
7.2.290.0160.00716.39
7.2.280.0090.01616.18
7.2.270.0200.00716.35
7.2.260.0080.01416.18
7.2.250.0130.01116.07
7.2.240.0050.01716.32
7.2.230.0060.01516.44
7.2.220.0130.01016.15
7.2.210.0080.01316.16
7.2.200.0110.01416.37
7.2.190.0120.01216.28
7.2.180.0100.01316.34
7.2.170.0050.01916.34
7.2.160.0110.01116.30
7.2.150.0180.00816.31
7.2.140.0160.00716.29
7.2.130.0100.01116.37
7.2.120.0130.01016.13
7.2.110.0060.01316.14
7.2.100.0680.00416.29
7.2.90.0140.00716.50
7.2.80.0000.01916.30
7.2.70.0110.00716.27
7.2.60.0130.01016.13
7.2.50.0130.01316.24
7.2.40.0100.01516.35
7.2.30.0110.01416.27
7.2.20.0100.01016.38
7.2.10.0120.00816.00
7.2.00.0150.00716.23

preferences:
56.4 ms | 401 KiB | 5 Q