3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait WithFinalPrivate { public function test() { $this->privateNonOverloadable(); $this->nonFinal(); self::privateNonOverloadable(); self::nonFinal(); } final private function privateNonOverloadable() { echo __TRAIT__, '::', __FUNCTION__, PHP_EOL; } private function nonFinal() { echo __TRAIT__, '::', __FUNCTION__, PHP_EOL; } } class Child { use WithFinalPrivate; public function childTest() { $this->privateNonOverloadable(); $this->nonFinal(); self::privateNonOverloadable(); self::nonFinal(); } private function privateNonOverloadable() { echo __CLASS__, '::', __FUNCTION__, PHP_EOL; } private function nonFinal() { echo __CLASS__, '::', __FUNCTION__, PHP_EOL; } } $obj = new Child; $obj->childTest(); $obj->test();

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.140.0080.00018.20
8.3.130.0130.00718.51
8.3.120.0070.00318.77
8.3.110.0030.00616.75
8.3.100.0090.00016.71
8.3.90.0120.00616.58
8.3.80.0060.00319.36
8.3.70.0000.01518.68
8.3.60.0070.01518.68
8.3.50.0120.00524.41
8.3.40.0120.00918.71
8.3.30.0110.00418.62
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0000.01026.16
8.2.250.0050.00316.95
8.2.240.0060.00317.16
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0080.00026.77
8.2.200.0000.01016.63
8.2.190.0140.00716.58
8.2.180.0060.00925.92
8.2.170.0120.00418.89
8.2.160.0100.00322.96
8.2.150.0060.00325.66
8.2.140.0020.00524.66
8.2.130.0030.00626.16
8.2.120.0070.00026.35
8.2.110.0000.00922.08
8.2.100.0080.00419.51
8.2.90.0040.00417.75
8.2.80.0080.00418.64
8.2.70.0040.00417.50
8.2.60.0050.00317.80
8.2.50.0000.00818.05
8.2.40.0040.00418.03
8.2.30.0040.00418.14
8.2.20.0040.00417.96
8.2.10.0000.00919.28
8.2.00.0000.00719.20
8.1.300.0030.00617.65
8.1.290.0070.00318.88
8.1.280.0030.01025.92
8.1.270.0040.00423.99
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00320.70
8.1.230.0080.00417.76
8.1.220.0000.00717.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0090.00017.00
8.1.180.0000.00918.10
8.1.170.0000.00818.49
8.1.160.0030.00718.76
8.1.150.0000.00718.89
8.1.140.0070.00018.76
8.1.130.0030.00320.04
8.1.120.0000.00817.36
8.1.110.0040.00417.46
8.1.100.0040.00417.43
8.1.90.0040.00417.47
8.1.80.0060.00617.50
8.1.70.0030.00617.41
8.1.60.0040.00417.42
8.1.50.0040.00417.57
8.1.40.0040.00417.55
8.1.30.0040.00417.54
8.1.20.0060.00317.63
8.1.10.0040.00417.58
8.1.00.0040.00417.46
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00720.11
8.0.270.0000.00718.12
8.0.260.0000.00620.18
8.0.250.0070.00017.03
8.0.240.0030.00516.99
8.0.230.0000.00716.97
8.0.220.0030.00316.98
8.0.210.0000.00716.88
8.0.200.0030.00616.98
8.0.190.0000.00817.02
8.0.180.0000.00816.96
8.0.170.0000.00816.86
8.0.160.0040.00416.81
8.0.150.0050.00216.94
8.0.140.0030.00316.87
8.0.130.0000.00513.43
8.0.120.0000.00816.82
8.0.110.0040.00416.98
8.0.100.0030.00516.82
8.0.90.0000.00716.97
8.0.80.0090.00816.95
8.0.70.0000.00716.95
8.0.60.0040.00416.96
8.0.50.0000.00717.00
8.0.30.0150.00317.11
8.0.20.0100.00817.02
8.0.10.0040.00416.91
8.0.00.0130.00916.58
7.4.330.0000.00615.55
7.4.320.0070.00016.48
7.4.300.0030.00316.49
7.4.290.0040.00416.49
7.4.280.0040.00416.55
7.4.270.0030.00316.57
7.4.260.0050.00013.25
7.4.250.0080.00016.32
7.4.240.0000.00716.62
7.4.230.0040.00216.68
7.4.220.0070.00016.47
7.4.210.0070.00816.59
7.4.200.0050.00316.66
7.4.130.0080.01016.47
7.4.120.0110.00716.52
7.4.110.0060.01216.67
7.4.100.0100.01316.45
7.4.90.0130.00416.62
7.4.80.0100.00716.55
7.4.70.0030.01416.42
7.4.60.0130.01016.43
7.4.50.0070.01016.48
7.4.40.0060.01116.52
7.4.30.0110.00716.13
7.4.20.0130.00316.50
7.4.10.0170.00016.16
7.4.00.0120.00616.60
7.3.330.0090.00316.10
7.3.320.0060.00013.21
7.3.310.0080.00016.13
7.3.300.0030.00316.11
7.3.290.0100.00616.20
7.3.260.0090.01116.20
7.3.230.0060.01216.25
7.3.210.0080.00816.47
7.3.200.0110.00716.52
7.3.190.0130.00316.39
7.3.180.0090.00816.45
7.3.170.0060.01016.48
7.3.160.0030.01616.38
7.3.150.0100.00616.40
7.3.140.0070.01416.31
7.3.130.0110.01116.33
7.3.120.0140.00316.39
7.3.110.0090.00916.48
7.3.100.0070.01016.13
7.3.90.0080.01216.25
7.3.80.0090.00916.41
7.3.70.0140.00316.10
7.3.60.0100.00716.30
7.3.50.0110.00716.20
7.3.40.0100.00716.15
7.3.30.0070.01016.32
7.3.20.0070.01016.21
7.3.10.0110.00716.20
7.3.00.0180.00016.14
7.2.330.0090.00916.66
7.2.320.0100.01016.66
7.2.310.0100.01016.65
7.2.300.0070.01016.64
7.2.290.0100.00716.67
7.2.280.0090.00916.51
7.2.270.0100.00716.26
7.2.260.0220.00016.13
7.2.250.0120.00616.42
7.2.240.0070.01116.59
7.2.230.0120.00616.18
7.2.220.0170.00716.64
7.2.210.0100.01016.35
7.2.200.0060.01016.47
7.2.190.0030.01316.41
7.2.180.0160.00316.48
7.2.170.0160.00016.38
7.2.160.0070.01016.53
7.2.150.0150.00616.65
7.2.140.0060.01316.63
7.2.130.0080.00816.59
7.2.120.0560.01616.53
7.2.110.0090.00916.44
7.2.100.0000.01816.69
7.2.90.0150.00716.37
7.2.80.0140.01016.69
7.2.70.0180.00616.34
7.2.60.0070.01816.35
7.2.50.0120.00616.56
7.2.40.0060.01316.54
7.2.30.0060.01616.39
7.2.20.0030.01616.32
7.2.10.0110.00816.46
7.2.00.0060.01316.45

preferences:
15.88 ms | 403 KiB | 5 Q