3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private function thing() { var_dump('asdf'); } } class Bar extends Foo { public function getThing() { $this->thing(); } } class Baz extends Foo { private function thing() { var_dump('qwer'); } public function getThing() { $this->thing(); } } $bar = new Bar(); $bar->getThing(); $baz = new Baz(); $baz->getThing();

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.0090.01216.50
8.3.50.0100.01317.49
8.3.40.0120.00318.66
8.3.30.0000.01418.80
8.3.20.0100.00718.90
8.3.10.0090.00020.30
8.3.00.0000.00819.51
8.2.180.0090.00918.25
8.2.170.0090.00622.96
8.2.160.0130.00020.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0060.00319.48
8.2.110.0070.00321.13
8.2.100.0040.00717.78
8.2.90.0000.00919.17
8.2.80.0050.00317.93
8.2.70.0050.00317.62
8.2.60.0050.00318.04
8.2.50.0060.00318.07
8.2.40.0050.00318.22
8.2.30.0030.00617.99
8.2.20.0020.00517.52
8.2.10.0000.00817.67
8.2.00.0040.00417.64
8.1.280.0040.01425.92
8.1.270.0140.00324.66
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00420.80
8.1.230.0040.00820.89
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0000.00917.23
8.1.190.0020.00517.39
8.1.180.0000.00918.10
8.1.170.0000.00718.84
8.1.160.0040.00418.82
8.1.150.0040.00418.62
8.1.140.0070.00017.39
8.1.130.0030.00317.87
8.1.120.0040.00417.45
8.1.110.0050.00317.43
8.1.100.0040.00417.36
8.1.90.0070.00017.32
8.1.80.0070.00017.38
8.1.70.0000.00717.28
8.1.60.0070.00017.47
8.1.50.0050.00217.40
8.1.40.0030.00517.47
8.1.30.0040.00417.63
8.1.20.0000.00917.57
8.1.10.0060.00317.47
8.1.00.0000.00717.54
8.0.300.0000.00819.91
8.0.290.0000.00816.63
8.0.280.0030.00318.30
8.0.270.0040.00417.18
8.0.260.0030.00316.72
8.0.250.0000.00816.95
8.0.240.0040.00416.99
8.0.230.0030.00316.93
8.0.220.0000.00716.79
8.0.210.0040.00416.85
8.0.200.0000.00716.84
8.0.190.0060.00316.88
8.0.180.0040.00416.92
8.0.170.0040.00416.91
8.0.160.0040.00316.78
8.0.150.0050.00316.87
8.0.140.0030.00416.70
8.0.130.0030.00313.41
8.0.120.0040.00416.92
8.0.110.0000.00716.70
8.0.100.0060.00316.78
8.0.90.0070.00016.84
8.0.80.0090.00916.80
8.0.70.0050.00316.95
8.0.60.0040.00416.67
8.0.50.0000.00816.75
8.0.30.0100.00917.04
8.0.20.0070.01117.24
8.0.10.0040.00416.88
8.0.00.0090.00916.83
7.4.330.0050.00012.93
7.4.320.0030.00316.57
7.4.300.0030.00516.59
7.4.290.0000.00616.60
7.4.280.0000.00716.62
7.4.270.0000.00716.52
7.4.260.0030.00313.22
7.4.250.0080.00016.57
7.4.240.0030.00316.64
7.4.230.0070.00016.50
7.4.220.0190.00616.35
7.4.210.0080.00916.51
7.4.200.0070.00016.53
7.4.190.0000.00616.56
7.4.160.0120.00316.63
7.4.150.0060.01716.56
7.4.140.0130.00516.49
7.4.130.0110.00616.52
7.4.120.0120.00616.43
7.4.110.0110.01116.30
7.4.100.0070.01016.41
7.4.90.0080.00816.45
7.4.80.0110.01116.57
7.4.70.0180.00316.39
7.4.60.0060.01416.53
7.4.50.0060.00316.62
7.4.40.0070.01016.63
7.4.30.0110.00516.60
7.4.00.0000.01614.99
7.3.330.0030.00313.36
7.3.320.0030.00313.32
7.3.310.0000.00816.26
7.3.300.0070.00016.32
7.3.290.0060.00916.36
7.3.280.0090.00616.38
7.3.270.0150.00316.35
7.3.260.0140.00516.46
7.3.250.0100.00916.55
7.3.240.0140.00316.27
7.3.230.0110.00716.35
7.3.210.0100.00616.61
7.3.200.0060.01019.39
7.3.190.0120.00816.38
7.3.180.0060.01016.34
7.3.170.0120.00616.49
7.3.160.0100.00716.33
7.3.120.0090.00614.67
7.2.330.0150.00616.49
7.2.320.0060.01216.67
7.2.310.0100.01016.55
7.2.300.0110.01116.55
7.2.290.0090.00916.30
7.2.60.0030.01016.86
7.1.200.0080.00015.43
7.1.70.0000.01016.73
7.1.60.0030.01319.40
7.1.50.0040.01816.82
7.1.00.0070.07022.36
7.0.200.1030.01014.64
7.0.140.0100.07022.11
7.0.120.0030.05022.09
7.0.60.0170.07019.91
7.0.50.0070.08017.88
7.0.40.0030.04320.21
7.0.30.0270.08320.30
7.0.20.0230.04020.12
7.0.10.0100.04720.05
7.0.00.0170.07320.09
5.6.280.0030.07321.06
5.6.210.0030.08320.67
5.6.200.0030.04318.16
5.6.190.0030.09020.50
5.6.180.0570.06720.39
5.6.170.0270.07720.53
5.6.160.0130.05720.46
5.6.150.0070.05018.12
5.6.140.0030.04718.21
5.6.130.0030.04718.14
5.6.120.0030.05021.13
5.6.110.0030.08320.90
5.6.100.0070.08321.14
5.6.90.0130.05720.98
5.6.80.0030.08320.40
5.5.350.0070.08320.50
5.5.340.0070.08017.93
5.5.330.0200.07720.29
5.5.320.1870.05720.36
5.5.310.0400.07020.31
5.5.300.0170.06718.08
5.5.290.0000.04717.95
5.5.280.0070.03720.88
5.5.270.0030.09320.82
5.5.260.0100.04020.80
5.5.250.0070.05320.55
5.5.240.0070.07320.17
5.4.450.0470.03319.46
5.4.440.0670.04019.37
5.4.430.0230.05019.39
5.4.420.0470.03719.45
5.4.410.0630.05019.34
5.4.400.0430.03319.07
5.4.390.0770.03019.22
5.4.380.0600.03019.20
5.4.370.1100.02019.07
5.4.360.0630.03019.14
5.4.350.0170.04319.13
5.4.340.0600.04319.06
5.4.320.0470.04318.97
5.4.310.0370.03719.22
5.4.300.0730.03319.31
5.4.290.0700.03719.18
5.4.280.0200.04319.19
5.4.270.0630.03718.79
5.4.260.0830.03718.86
5.4.250.0470.03718.93
5.4.240.0770.03319.18
5.4.230.0730.03319.21
5.4.220.0530.04718.99
5.4.210.0530.04319.06
5.4.200.0630.04719.13
5.4.190.0500.04019.26
5.4.180.0270.04319.21
5.4.170.0570.03319.05
5.4.160.0770.04019.16
5.4.150.0770.03718.84
5.4.140.0030.05316.56
5.4.130.0530.04316.55
5.4.120.0630.03316.39
5.4.110.0270.04716.41
5.4.100.0300.03716.29
5.4.90.0870.03716.42
5.4.80.0670.03316.54
5.4.70.0370.04316.22
5.4.60.0200.04316.43
5.4.50.0430.03716.18
5.4.40.0600.04316.54
5.4.30.0330.03316.55
5.4.20.0700.04716.35
5.4.10.0730.03716.48
5.4.00.0600.03315.78
5.3.290.0730.04315.77
5.3.280.0330.04315.77
5.3.270.0670.04715.77
5.3.260.0470.04315.77
5.3.250.0270.04015.77
5.3.240.0470.04015.77
5.3.230.0870.03315.77
5.3.220.0770.03315.77
5.3.210.0430.04015.77
5.3.200.0600.04015.77
5.3.190.0930.03715.77
5.3.180.0930.02715.77
5.3.170.1000.03015.77
5.3.160.0500.04315.77
5.3.150.0500.04315.77
5.3.140.0600.03715.77
5.3.130.0300.04715.77
5.3.120.0600.05015.77
5.3.110.0370.05715.77
5.3.100.0500.03715.75
5.3.90.0730.02015.70
5.3.80.0600.03715.70
5.3.70.0530.03015.70
5.3.60.0670.04315.70
5.3.50.0270.04015.70
5.3.40.0370.03015.70
5.3.30.0700.03315.70
5.3.20.0500.03015.70
5.3.10.0400.04315.70
5.3.00.0600.03315.70
5.2.170.0370.03715.70
5.2.160.0570.03315.70
5.2.150.0470.02015.70
5.2.140.0330.03315.70
5.2.130.0430.03315.70
5.2.120.0400.03315.70
5.2.110.0200.03015.70
5.2.100.0430.02015.70
5.2.90.0700.03315.70
5.2.80.0700.03715.70
5.2.70.0200.03015.70
5.2.60.0470.03715.70
5.2.50.0370.02715.70
5.2.40.0200.02715.70
5.2.30.0230.02715.70
5.2.20.0330.03015.70
5.2.10.0330.02715.70
5.2.00.0330.03015.70
5.1.60.0470.02715.70
5.1.50.0670.02715.70
5.1.40.0230.02715.70
5.1.30.0530.02715.70
5.1.20.0570.02315.70
5.1.10.0500.02715.70
5.1.00.0730.02015.70
5.0.50.0330.02015.70
5.0.40.0100.02015.70
5.0.30.0070.03315.70
5.0.20.0370.01315.70
5.0.10.0070.03015.70
5.0.00.0270.03015.70
4.4.90.0070.02315.70
4.4.80.0170.01315.70
4.4.70.0170.01715.70
4.4.60.0170.01715.70
4.4.50.0170.01715.70
4.4.40.0170.02715.70
4.4.30.0030.01715.70
4.4.20.0130.02015.70
4.4.10.0200.01015.70
4.4.00.0230.02315.70
4.3.110.0300.01315.70
4.3.100.0370.01715.70
4.3.90.0270.01015.70
4.3.80.0330.02015.70
4.3.70.0070.01315.70
4.3.60.0170.01315.70
4.3.50.0070.02015.70
4.3.40.0030.02715.70
4.3.30.0070.01715.70
4.3.20.0070.01715.70
4.3.10.0000.02015.70
4.3.00.0070.01015.70

preferences:
45.66 ms | 401 KiB | 5 Q