3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct(string $a) { var_dump($a); } } class B extends A { public function __construct(int $z, int $y) { parent::__construct($z . $y); } public function nonStatic() { var_dump('Wrong!'); } } $b = new B(1, 2); $b::nonStatic();

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.0060.01516.75
8.3.50.0120.00722.05
8.3.40.0110.00318.79
8.3.30.0110.00418.81
8.3.20.0030.00520.38
8.3.10.0040.00423.66
8.3.00.0090.00017.75
8.2.180.0180.00316.75
8.2.170.0000.01422.96
8.2.160.0070.00722.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00317.50
8.2.110.0070.00422.21
8.2.100.0120.00317.93
8.2.90.0050.00319.34
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0000.00919.28
8.2.30.0040.00420.48
8.2.20.0020.00517.86
8.2.10.0050.00218.02
8.2.00.0000.00818.09
8.1.280.0110.01125.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00322.48
8.1.230.0120.00017.66
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0080.00017.48
8.1.180.0070.00018.10
8.1.170.0000.00820.25
8.1.160.0040.00422.01
8.1.150.0040.00418.83
8.1.140.0080.00019.53
8.1.130.0070.00017.71
8.1.120.0040.00417.38
8.1.110.0070.00017.29
8.1.100.0000.00817.35
8.1.90.0040.00417.41
8.1.80.0000.00717.43
8.1.70.0000.00817.39
8.1.60.0040.00417.48
8.1.50.0030.00517.43
8.1.40.0040.00417.52
8.1.30.0000.00817.70
8.1.20.0040.00417.66
8.1.10.0040.00417.59
8.1.00.0030.00617.50
8.0.300.0050.00318.77
8.0.290.0050.00216.75
8.0.280.0000.00718.41
8.0.270.0070.00017.33
8.0.260.0070.00017.28
8.0.250.0000.00716.87
8.0.240.0000.00816.91
8.0.230.0070.00017.06
8.0.220.0000.00716.90
8.0.210.0040.00416.91
8.0.200.0070.00017.00
8.0.190.0000.00816.98
8.0.180.0040.00416.99
8.0.170.0000.00817.02
8.0.160.0080.00016.92
8.0.150.0070.00016.81
8.0.140.0000.00716.88
8.0.130.0060.00013.42
8.0.120.0000.00816.89
8.0.110.0040.00417.02
8.0.100.0070.00017.00
8.0.90.0000.00816.98
8.0.80.0100.00716.91
8.0.70.0040.00416.84
8.0.60.0070.00016.89
8.0.50.0040.00416.75
8.0.30.0090.00617.06
8.0.20.0080.01017.40
8.0.10.0000.00716.82
8.0.00.0120.00716.86
7.4.330.0060.00015.08
7.4.320.0060.00016.44
7.4.300.0000.00616.65
7.4.290.0030.00316.41
7.4.280.0090.00016.51
7.4.270.0050.00316.61
7.4.260.0000.00816.63
7.4.250.0040.00416.61
7.4.240.0050.00216.62
7.4.230.0030.00316.48
7.4.220.0050.00216.44
7.4.210.0070.00816.56
7.4.200.0040.00416.43
7.4.160.0100.00616.52
7.4.150.0120.00617.40
7.4.140.0100.00917.86
7.4.130.0060.01316.58
7.4.120.0120.00516.48
7.4.110.0060.01616.46
7.4.100.0150.00316.66
7.4.90.0070.01116.58
7.4.80.0160.00719.39
7.4.70.0120.00616.35
7.4.60.0060.00916.55
7.4.50.0040.00416.36
7.4.40.0160.00616.47
7.4.30.0040.01316.68
7.4.00.0000.01615.09
7.3.330.0090.00013.22
7.3.320.0000.00613.32
7.3.310.0000.00716.34
7.3.300.0000.00716.23
7.3.290.0080.00716.36
7.3.280.0090.01016.35
7.3.270.0130.00517.40
7.3.260.0090.00916.24
7.3.250.0100.00716.33
7.3.240.0100.00716.28
7.3.230.0110.01216.39
7.3.210.0050.01416.58
7.3.200.0060.01116.38
7.3.190.0110.00416.57
7.3.180.0100.00716.48
7.3.170.0100.00716.38
7.3.160.0090.00916.64
7.2.330.0160.00316.67
7.2.320.0060.01216.39
7.2.310.0070.01016.67
7.2.300.0070.01016.73
7.2.290.0110.00716.44
7.2.60.0120.00416.92
7.2.00.0030.01019.19
7.1.200.0060.00616.00
7.1.100.0150.00418.11
7.1.70.0000.01017.37
7.1.60.0030.02019.43
7.1.50.0130.01016.70
7.1.00.0030.07722.36
7.0.200.0270.00314.81
7.0.60.0070.07019.89
7.0.50.0030.08717.88
7.0.40.0070.05020.21
7.0.30.0370.07320.07
7.0.20.0070.05020.19
7.0.10.0130.06720.24
7.0.00.0100.08020.19
5.6.280.0030.07021.10
5.6.210.0000.08320.54
5.6.200.0030.07718.18
5.6.190.0030.09320.47
5.6.180.0070.08320.52
5.6.170.0100.04720.55
5.6.160.0000.04720.46
5.6.150.0070.07018.19
5.6.140.0030.08318.18
5.6.130.0070.07718.15
5.6.120.0030.09021.10
5.6.110.0130.08021.02
5.6.100.0030.04721.11
5.6.90.0130.07720.95
5.6.80.0000.09020.40
5.5.350.4070.04320.43
5.5.340.0100.03717.95
5.5.330.0100.07720.43
5.5.320.0500.08020.51
5.5.310.0330.05020.34
5.5.300.0000.05717.94
5.5.290.0130.05717.97
5.5.280.0100.04320.85
5.5.270.0130.05320.96
5.5.260.0070.07320.75
5.5.250.0200.06320.71
5.5.240.0170.06720.24
5.4.450.0370.04319.32
5.4.440.0370.07319.40
5.4.430.0270.04319.17
5.4.420.0270.04319.18
5.4.410.0270.04319.51
5.4.400.0370.03718.88
5.4.390.0330.04018.87
5.4.380.0370.03318.98
5.4.370.0330.03319.25
5.4.360.0330.04319.24
5.4.350.0270.04018.95
5.4.340.0300.04319.22
5.4.320.0430.04319.23
5.4.310.0330.04019.15
5.4.300.0270.04019.22
5.4.290.0300.04018.85
5.4.280.0300.04318.98
5.4.270.0400.03319.09
5.4.260.0330.04019.08
5.4.250.0300.03719.15
5.4.240.0400.03718.85
5.4.230.0330.03319.15
5.4.220.0430.03719.16
5.4.210.0400.03719.21
5.4.200.0330.03318.98
5.4.190.0300.04019.24
5.4.180.0430.02319.07
5.4.170.0400.03018.86
5.4.160.0300.04019.20
5.4.150.0330.03718.96
5.4.140.0370.03716.38
5.4.130.0400.02316.35
5.4.120.0300.03316.55
5.4.110.0270.03716.59
5.4.100.0400.03016.50
5.4.90.0430.03316.51

preferences:
69.29 ms | 401 KiB | 5 Q