3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TopLevel { public $arg; public function __construct(string $arg) { printf("Top level: %s\n", $arg); $this->arg = $arg; } } class MidLevel extends TopLevel { public function __construct(string $arg) { printf("Mid level: %s\n", $arg); parent::__construct($arg); } } class EndLevel extends MidLevel { public function __construct(string $arg) { printf("End level: %s\n", $arg); TopLevel::__construct($arg); } } $mid = new MidLevel('mid'); var_dump($mid->arg); echo "---\n"; $end = new EndLevel('end'); var_dump($end->arg);

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.0120.00817.79
8.4.120.0110.01020.45
8.4.110.0080.00218.76
8.4.100.0110.01017.62
8.4.90.0130.00717.72
8.4.80.0150.01017.84
8.4.70.0120.00817.71
8.4.60.0100.01118.63
8.4.50.0130.00817.86
8.4.40.0090.00017.54
8.4.30.0090.00918.38
8.4.20.0070.01117.98
8.4.10.0040.00421.86
8.3.260.0100.00916.65
8.3.250.0040.00418.95
8.3.240.0120.00816.76
8.3.230.0100.00616.73
8.3.220.0040.00417.13
8.3.210.0120.00516.82
8.3.200.0060.00316.42
8.3.190.0120.00919.21
8.3.180.0030.00516.77
8.3.170.0110.00719.05
8.3.160.0120.00616.47
8.3.150.0090.00920.81
8.3.140.0090.00916.36
8.3.130.0040.00418.45
8.3.120.0190.00019.05
8.3.110.0060.00316.54
8.3.100.0110.00016.61
8.3.90.0060.00926.77
8.3.80.0090.00016.38
8.3.70.0140.00416.58
8.3.60.0000.01618.43
8.3.50.0110.00320.34
8.3.40.0070.00720.17
8.3.30.0080.00818.50
8.3.20.0030.00624.18
8.3.10.0000.00824.66
8.3.00.0050.00326.16
8.2.290.0130.00720.42
8.2.280.0050.00418.75
8.2.270.0150.00417.48
8.2.260.0100.01019.95
8.2.250.0150.00018.23
8.2.240.0120.00316.82
8.2.230.0030.00720.94
8.2.220.0060.00324.06
8.2.210.0000.00826.77
8.2.200.0080.00318.41
8.2.190.0110.01116.63
8.2.180.0120.00625.92
8.2.170.0070.00719.14
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00820.43
8.2.110.0030.00620.58
8.2.100.0070.00317.72
8.2.90.0050.00317.59
8.2.80.0050.00318.65
8.2.70.0080.00017.50
8.2.60.0080.00017.50
8.2.50.0080.00018.04
8.2.40.0050.00318.21
8.2.30.0070.00017.92
8.2.20.0000.00719.11
8.2.10.0030.00617.92
8.2.00.0000.00919.20
8.1.330.0130.00716.19
8.1.320.0110.00816.13
8.1.310.0040.00418.41
8.1.300.0060.00317.94
8.1.290.0030.00730.84
8.1.280.0110.01125.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0060.01022.05
8.1.230.0090.00422.67
8.1.220.0050.00318.43
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0060.00317.22
8.1.180.0000.00818.10
8.1.170.0000.00917.62
8.1.160.0060.00318.88
8.1.150.0070.00018.69
8.1.140.0050.00317.40
8.1.130.0030.00319.01
8.1.120.0040.00417.34
8.1.110.0040.00417.37
8.1.100.0060.00317.27
8.1.90.0160.00017.27
8.1.80.0100.00617.35
8.1.70.0090.00617.30
8.1.60.0160.00317.46
8.1.50.0050.01417.46
8.1.40.0110.00717.40
8.1.30.0060.01217.52
8.1.20.0120.00617.62
8.1.10.0150.00217.45
8.1.00.0100.01017.48
8.0.300.0030.00618.77
8.0.290.0030.00516.75
8.0.280.0080.00018.45
8.0.270.0000.00716.84
8.0.260.0000.00618.33
8.0.250.0050.00316.94
8.0.240.0000.00716.89
8.0.230.0140.00316.79
8.0.220.0130.00316.79
8.0.210.0080.01016.87
8.0.200.0140.00216.82
8.0.190.0150.00016.82
8.0.180.0030.01216.72
8.0.170.0090.00616.84
8.0.160.0110.00416.79
8.0.150.0080.00816.75
8.0.140.0080.00816.75
8.0.130.0070.00716.65
8.0.120.0120.00316.78
8.0.110.0050.01016.83
8.0.100.0110.00416.76
8.0.90.0150.00016.68
8.0.80.0100.00516.78
8.0.70.0100.00516.69
8.0.60.0080.00816.73
8.0.50.0110.00416.77
8.0.30.0150.00016.74
8.0.20.0100.00416.77
8.0.10.0080.00416.76
7.4.330.0000.00515.55
7.4.320.0060.00016.46
7.4.300.0170.00016.47
7.4.290.0110.00616.55
7.4.280.0080.00816.57
7.4.270.0110.00516.50
7.4.260.0100.00716.57
7.4.250.0050.00616.43
7.4.240.0060.00515.92
7.4.230.0000.01016.30
7.4.220.0070.00315.88
7.4.210.0040.00716.00
7.4.200.0100.00016.39
7.4.190.0030.00816.43
7.4.180.0110.00016.65
7.4.160.0090.00316.33
7.4.150.0110.00016.16
7.4.140.0050.00516.20
7.4.130.0000.01115.79
7.4.120.0050.00516.27
7.4.110.0050.00515.95
7.4.100.0060.00616.30
7.4.90.0110.00015.90
7.4.80.0050.00515.86
7.4.70.0060.00315.88
7.4.60.0000.01016.08
7.4.50.0060.00315.97
7.4.40.0000.01016.06
7.4.30.0090.00016.04
7.4.20.0030.00316.24
7.4.10.0040.00416.29
7.4.00.0080.00016.21

preferences:
26.78 ms | 403 KiB | 5 Q