3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Dummy { } class Parental { public function __set($name, $val) { printf("Setting %s to %s\n", $name, var_export($val, true)); $this->{$name} = $val; } } class Demo extends Parental { private Dummy $x; public function test() { $this->x = new Dummy(); } } $d = new Demo(); $d->test(); print_r($d);

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.130.0060.00318.03
8.4.120.0110.00820.66
8.4.110.0120.00822.41
8.4.100.0130.00717.36
8.4.90.0120.01017.65
8.4.80.0040.00517.79
8.4.70.0040.00417.87
8.4.60.0140.00618.67
8.4.50.0120.00922.43
8.4.40.0100.01019.18
8.4.30.0130.00620.49
8.4.20.0040.00418.82
8.4.10.0060.00317.79
8.3.260.0140.00516.43
8.3.250.0060.00219.09
8.3.240.0130.00516.57
8.3.230.0080.01116.64
8.3.220.0050.00316.76
8.3.210.0110.00518.41
8.3.200.0060.00316.80
8.3.190.0090.00918.57
8.3.180.0110.00417.04
8.3.170.0100.01018.79
8.3.160.0120.00316.76
8.3.150.0090.00617.33
8.3.140.0070.01116.63
8.3.130.0030.00616.51
8.3.120.0090.00020.68
8.3.110.0060.00316.56
8.3.100.0030.00618.58
8.3.90.0040.00416.78
8.3.80.0060.00317.97
8.3.70.0120.00316.63
8.3.60.0100.00716.50
8.3.50.0070.00918.12
8.3.40.0120.00318.70
8.3.30.0120.00318.53
8.3.20.0040.00420.43
8.3.10.0070.00023.71
8.3.00.0050.00322.50
8.2.290.0070.00218.81
8.2.280.0110.00718.25
8.2.270.0070.01119.18
8.2.260.0000.00818.35
8.2.250.0000.00816.99
8.2.240.0080.00016.35
8.2.230.0000.00820.94
8.2.220.0100.00724.06
8.2.210.0110.00426.77
8.2.200.0090.00018.41
8.2.190.0150.00616.58
8.2.180.0140.00316.75
8.2.170.0040.01122.96
8.2.160.0000.01422.22
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00726.16
8.2.110.0060.00320.23
8.2.100.0040.00817.56
8.2.90.0000.00919.48
8.2.80.0040.00418.03
8.2.70.0000.00817.79
8.2.60.0080.00018.16
8.2.50.0030.00618.10
8.2.40.0050.00320.92
8.2.30.0040.00419.07
8.2.20.0030.00517.98
8.2.10.0050.00219.17
8.2.00.0070.00019.17
8.1.330.0120.00623.55
8.1.320.0060.00516.28
8.1.310.0040.00418.44
8.1.300.0000.00818.43
8.1.290.0000.01018.88
8.1.280.0150.00325.92
8.1.270.0000.00722.14
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0090.00022.41
8.1.230.0110.00019.16
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0070.00317.35
8.1.190.0060.00317.22
8.1.180.0000.00718.10
8.1.170.0050.00318.59
8.1.160.0000.00718.87
8.1.150.0050.00318.83
8.1.140.0000.00820.91
8.1.130.0000.00720.13
8.1.120.0030.00317.42
8.1.110.0090.00017.39
8.1.100.0070.00017.39
8.1.90.0050.00217.40
8.1.80.0030.00517.44
8.1.70.0080.00417.27
8.1.60.0000.00717.58
8.1.50.0000.00817.56
8.1.40.0030.00517.49
8.1.30.0040.00417.65
8.1.20.0000.00817.63
8.1.10.0060.00317.52
8.1.00.0070.00317.54
8.0.300.0040.00419.64
8.0.290.0000.00916.75
8.0.280.0030.00318.38
8.0.270.0050.00317.21
8.0.260.0000.00620.16
8.0.250.0000.00716.79
8.0.240.0030.00516.77
8.0.230.0030.00316.94
8.0.220.0040.00416.84
8.0.210.0000.00716.79
8.0.200.0030.00516.92
8.0.190.0000.00916.82
8.0.180.0040.00416.83
8.0.170.0000.00916.88
8.0.160.0000.00816.68
8.0.150.0000.00816.70
8.0.140.0000.00716.69
8.0.130.0060.00013.30
8.0.120.0030.00616.64
8.0.110.0030.00516.88
8.0.100.0050.00216.88
8.0.90.0040.00416.80
8.0.80.0060.01616.83
8.0.70.0070.00016.74
8.0.60.0000.00716.81
8.0.50.0040.00416.89
8.0.30.0160.00316.89
8.0.20.0130.00816.76
8.0.10.0040.00417.07
8.0.00.0060.01416.74
7.4.330.0030.00316.70
7.4.320.0070.00016.45
7.4.300.0030.00316.56
7.4.290.0000.00816.52
7.4.280.0000.00816.61
7.4.270.0030.00316.41
7.4.260.0000.00513.28
7.4.250.0040.00416.50
7.4.240.0030.00416.49
7.4.230.0050.00216.63
7.4.220.0050.00216.61
7.4.210.0090.00916.45
7.4.200.0050.00216.39
7.4.140.0070.01717.86
7.4.130.0090.00916.55
7.4.120.0130.00716.43
7.4.110.0100.00716.56
7.4.100.0080.00816.46
7.4.90.0120.00916.55
7.4.80.0130.00819.39
7.4.70.0060.01116.57
7.4.60.0170.00316.27
7.4.50.0090.00616.42
7.4.40.0140.00316.59
7.3.330.0030.00516.10
7.3.320.0050.00013.24
7.3.310.0000.00716.30
7.3.300.0070.00016.18
7.3.290.0000.00716.21
7.3.280.0090.00616.16
7.3.260.0100.00916.31
7.3.240.0100.00716.23
7.3.230.0080.01216.34
7.3.210.0100.00716.13
7.3.200.0090.00916.20
7.3.190.0090.00616.33
7.3.180.0080.00816.23
7.3.170.0120.00316.18
7.3.160.0060.01216.13
7.3.90.0120.00614.63
7.3.80.0110.01114.63
7.3.70.0150.00714.71
7.3.60.0300.02014.53
7.3.50.0280.00614.30
7.3.40.0180.00814.67
7.3.30.0150.01214.39
7.3.20.0070.01514.71
7.3.10.0240.01014.76
7.3.00.0120.00914.59
7.2.330.0110.00716.50
7.2.320.0140.00916.14
7.2.310.0090.00916.18
7.2.300.0030.01316.57
7.2.290.0120.00316.32
7.2.220.0160.00314.77
7.2.210.0130.00814.51
7.2.200.0160.01014.76
7.2.190.0220.01514.69
7.2.180.0190.01914.57
7.2.170.0310.00614.91
7.2.160.0160.00814.45
7.2.150.0160.01014.83
7.2.140.0240.00314.81
7.2.130.0140.01114.93
7.2.120.0140.01014.59
7.2.110.0210.00814.52
7.2.100.0190.01114.89
7.2.90.0190.01315.13
7.2.80.0280.02214.88
7.2.70.0180.01514.84
7.2.60.0190.00814.79
7.2.50.0120.01214.96
7.2.40.0140.01815.00
7.2.30.0230.01014.75
7.2.20.0140.01414.81
7.2.10.0140.00914.80
7.2.00.0070.01614.85
7.1.320.0170.00713.56
7.1.310.0160.00613.93
7.1.300.0210.01313.48
7.1.290.0180.00613.47
7.1.280.1510.01613.65
7.1.270.1510.01013.52
7.1.260.0190.00913.88
7.1.250.0150.00813.70

preferences:
76.14 ms | 403 KiB | 5 Q