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"; print "\$c->x after unset()\n"; unset($c->x); var_export($c->x); print "\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.60.0120.00916.63
8.3.50.0040.01118.30
8.3.40.0110.00319.04
8.3.30.0120.00618.89
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.180.0070.00725.92
8.2.170.0130.00719.02
8.2.160.0070.01022.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0020.00526.16
8.2.120.0040.00426.35
8.2.110.0070.00321.07
8.2.100.0080.00417.59
8.2.90.0030.00519.34
8.2.80.0000.00817.97
8.2.70.0040.00417.59
8.2.60.0040.00417.75
8.2.50.0000.00818.05
8.2.40.0050.00318.15
8.2.30.0000.00718.05
8.2.20.0000.00818.05
8.2.10.0040.00419.17
8.2.00.0040.00419.25
8.1.280.0150.00025.92
8.1.270.0030.00523.99
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0090.00021.29
8.1.230.0040.00717.42
8.1.220.0070.00017.78
8.1.210.0000.00818.77
8.1.200.0030.00517.63
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.64
8.1.160.0000.00718.90
8.1.150.0070.00018.93
8.1.140.0040.00419.00
8.1.130.0030.00320.16
8.1.120.0080.00017.52
8.1.110.0000.00817.46
8.1.100.0000.00717.44
8.1.90.0070.00017.46
8.1.80.0000.01017.47
8.1.70.0000.00717.34
8.1.60.0040.00417.64
8.1.50.0110.00017.50
8.1.40.0080.00017.53
8.1.30.0040.00417.59
8.1.20.0080.00417.65
8.1.10.0080.00017.63
8.1.00.0060.00617.41
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00320.25
8.0.270.0000.00818.02
8.0.260.0000.00720.18
8.0.250.0000.00617.04
8.0.240.0070.00016.96
8.0.230.0000.00717.06
8.0.220.0000.00716.96
8.0.210.0040.00416.97
8.0.200.0000.00717.07
8.0.190.0030.00516.89
8.0.180.0020.00516.91
8.0.170.0030.00616.96
8.0.160.0070.00016.86
8.0.150.0040.00416.84
8.0.140.0000.00716.89
8.0.130.0060.00013.40
8.0.120.0000.00716.95
8.0.110.0050.00316.91
8.0.100.0040.00416.77
8.0.90.0040.00416.96
8.0.80.0060.01216.98
8.0.70.0000.00717.00
8.0.60.0050.00217.00
8.0.50.0040.00417.07
8.0.30.0090.00916.93
8.0.20.0100.00917.17
8.0.10.0020.00517.12
8.0.00.0130.01317.05
7.4.330.0000.00515.55
7.4.320.0040.00416.46
7.4.300.0070.00016.53
7.4.290.0000.00816.50
7.4.280.0000.00716.46
7.4.270.0000.00716.62
7.4.260.0000.00513.29
7.4.250.0030.00616.56
7.4.240.0040.00416.57
7.4.230.0050.00316.65
7.4.220.0020.00516.60
7.4.210.0070.00916.48
7.4.200.0030.00316.39
7.4.130.0100.00816.50
7.4.120.0090.00916.65
7.4.110.0000.01816.70
7.4.100.0140.00316.45
7.4.90.0100.00616.53
7.4.80.0140.00916.73
7.4.70.0120.00716.60
7.4.60.0030.01616.46
7.4.50.0160.00616.49
7.4.40.0070.01816.18
7.4.30.0120.01216.24
7.4.20.0130.01316.39
7.4.10.0140.00816.47
7.4.00.0090.01516.40
7.3.330.0000.00816.21
7.3.320.0050.00013.03
7.3.310.0030.00316.23
7.3.300.0030.00316.16
7.3.290.0080.00616.16
7.3.280.0060.00916.20
7.3.260.0180.00016.15
7.3.230.0140.00416.20
7.3.210.0060.01016.29
7.3.200.0140.00716.37
7.3.190.0100.01416.38
7.3.180.0160.00316.38
7.3.170.0160.00616.21
7.3.160.0160.00816.11
7.3.150.0130.01116.33
7.3.140.0150.00916.32
7.3.130.0090.01516.34
7.3.120.0000.02016.21
7.3.110.0170.01016.26
7.3.100.0190.00616.03
7.3.90.0060.01316.12
7.3.80.0070.01116.11
7.3.70.0070.01116.02
7.3.60.0150.00416.14
7.3.50.0060.01316.19
7.3.40.0110.01116.01
7.3.30.0060.01215.95
7.3.20.0080.01316.25
7.3.10.0090.01516.14
7.3.00.0120.00816.18
7.2.330.0070.01516.35
7.2.320.0120.00916.38
7.2.310.0140.00916.19
7.2.300.0030.02116.21
7.2.290.0100.01316.30
7.2.280.0110.01416.52
7.2.270.0040.01816.36
7.2.260.0140.01116.38
7.2.250.0160.00716.16
7.2.240.0090.01516.35
7.2.230.0070.01316.46
7.2.220.0050.01516.05
7.2.210.0100.01016.40
7.2.200.0120.00916.52
7.2.190.0130.00916.35
7.2.180.0140.00716.25
7.2.170.0090.01216.32
7.2.160.0100.01016.45
7.2.150.0110.01216.30
7.2.140.0140.01016.30
7.2.130.0210.01716.29
7.2.120.0140.00516.25
7.2.110.0080.01616.17
7.2.100.0060.01616.30
7.2.90.0200.00616.43
7.2.80.0120.01516.18
7.2.70.0200.00616.26
7.2.60.0110.01116.23
7.2.50.0130.01316.24
7.2.40.0060.01216.20
7.2.30.0130.00516.26
7.2.20.0040.01716.10
7.2.10.0200.00816.12
7.2.00.0110.01416.42

preferences:
64.83 ms | 400 KiB | 5 Q