3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myparent { public function foo($bar) { // do stuff } } class mychild extends myparent { public $val; private function bar(myparent &$baz) { // do stuff } public function __construct($val) { $this->val = $val; } } $child = new mychild('hello world'); $child->foo('test'); $reflection = new reflectionClass('mychild'); echo $reflection->isInstance('mychild') ? 'yes' : 'no';

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.0140.00716.75
8.3.50.0090.00816.56
8.3.40.0070.01418.92
8.3.30.0080.00818.96
8.3.20.0040.01518.85
8.3.10.0040.00418.71
8.3.00.0080.00019.38
8.2.180.0110.00416.88
8.2.170.0040.01122.96
8.2.160.0040.01118.96
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0030.01426.16
8.2.120.0060.00918.79
8.2.110.0000.00920.35
8.2.100.0040.00717.72
8.2.90.0030.00719.22
8.2.80.0030.00617.97
8.2.70.0060.00617.63
8.2.60.0030.00617.91
8.2.50.0000.00817.78
8.2.40.0080.00019.77
8.2.30.0030.00617.69
8.2.20.0070.00317.56
8.2.10.0000.00717.75
8.2.00.0050.00317.74
8.1.280.0120.00325.92
8.1.270.0000.00723.99
8.1.260.0140.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00323.83
8.1.230.0060.00617.83
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0030.00617.62
8.1.160.0000.00819.13
8.1.150.0070.00018.64
8.1.140.0030.00617.27
8.1.130.0030.00317.79
8.1.120.0070.00017.34
8.1.110.0080.00017.43
8.1.100.0040.00417.39
8.1.90.0000.00817.38
8.1.80.0040.00417.41
8.1.70.0030.00317.39
8.1.60.0000.00817.57
8.1.50.0040.00417.45
8.1.40.0080.00017.41
8.1.30.0000.00817.64
8.1.20.0060.00317.59
8.1.10.0050.00217.46
8.1.00.0050.00217.49
8.0.300.0060.00318.77
8.0.290.0030.00716.75
8.0.280.0050.00318.50
8.0.270.0000.00817.27
8.0.260.0030.00318.38
8.0.250.0030.00616.96
8.0.240.0000.00816.89
8.0.230.0030.00316.84
8.0.220.0000.00716.82
8.0.210.0000.00716.96
8.0.200.0030.00316.94
8.0.190.0000.00716.98
8.0.180.0000.00816.89
8.0.170.0050.00316.68
8.0.160.0040.00416.77
8.0.150.0000.01016.79
8.0.140.0050.00316.81
8.0.130.0000.00613.33
8.0.120.0050.00516.85
8.0.110.0040.00416.77
8.0.100.0000.00716.85
8.0.90.0050.00216.77
8.0.80.0040.01816.91
8.0.70.0000.00816.84
8.0.60.0000.00716.75
8.0.50.0070.00016.79
8.0.30.0120.00617.19
8.0.20.0100.00816.79
8.0.10.0040.00416.89
8.0.00.0120.00716.85
7.4.330.0000.00512.99
7.4.320.0040.00416.52
7.4.300.0060.00016.60
7.4.290.0000.00816.66
7.4.280.0000.00816.50
7.4.270.0000.00616.52
7.4.260.0000.00513.30
7.4.250.0050.00316.54
7.4.240.0000.00816.58
7.4.230.0030.00316.69
7.4.220.0040.01516.70
7.4.210.0030.01316.53
7.4.200.0000.00716.40
7.4.190.0000.00716.57
7.4.160.0060.00916.57
7.4.150.0140.00316.40
7.4.140.0110.00716.30
7.4.130.0090.01216.59
7.4.120.0120.00616.62
7.4.110.0070.01816.50
7.4.100.0030.02016.43
7.4.90.0100.00716.60
7.4.80.0100.00619.39
7.4.70.0030.01316.54
7.4.60.0060.00916.26
7.4.50.0040.00016.16
7.4.40.0070.00716.50
7.4.30.0080.00816.53
7.4.00.0070.00714.95
7.3.330.0050.00013.13
7.3.320.0000.00513.28
7.3.310.0040.00416.31
7.3.300.0040.00416.28
7.3.290.0130.00716.28
7.3.280.0130.00716.29
7.3.270.0080.00916.55
7.3.260.0120.00916.45
7.3.250.0110.00616.29
7.3.240.0030.01316.31
7.3.230.0070.01016.49
7.3.210.0070.01316.35
7.3.200.0030.01616.32
7.3.190.0170.00016.52
7.3.180.0080.00816.19
7.3.170.0040.01116.37
7.3.160.0170.00716.37
7.3.120.0060.00914.90
7.3.10.0040.01116.59
7.3.00.0030.01016.62
7.2.330.0080.00816.65
7.2.320.0130.00316.61
7.2.310.0090.01016.37
7.2.300.0030.01416.60
7.2.290.0090.00616.83
7.2.130.0090.00616.83
7.2.120.0130.00316.75
7.2.110.0140.00016.88
7.2.100.0030.00716.70
7.2.90.0070.00716.64
7.2.80.0100.00716.75
7.2.70.0030.00616.84
7.2.60.0060.01016.80
7.2.50.0030.00717.02
7.2.40.0030.01216.90
7.2.30.0060.00916.87
7.2.20.0060.00916.90
7.2.10.0070.00416.96
7.2.00.0060.01018.13
7.1.250.0070.00715.69
7.1.200.0030.00915.84
7.1.100.0070.00717.95
7.1.70.0000.00816.85
7.1.60.0030.02019.30
7.1.50.0030.02016.58
7.1.00.0030.07722.33
7.0.200.0040.00816.75
7.0.140.0030.07322.18
7.0.120.0100.06722.13
7.0.60.0030.04019.92
7.0.50.0030.06717.87
7.0.40.0070.08017.75
7.0.30.0070.04317.77
7.0.20.0070.08317.76
7.0.10.0170.07717.71
7.0.00.0070.08017.77
5.6.280.0030.07320.99
5.6.210.0130.08020.70
5.6.200.0070.08718.29
5.6.190.0030.08318.34
5.6.180.0100.07718.18
5.6.170.0030.09018.19
5.6.160.0130.07018.14
5.6.150.0130.07318.27
5.6.140.0030.06318.29
5.6.130.0070.07018.28
5.6.120.0130.03318.15
5.6.110.0100.07318.14
5.6.100.0100.07718.15
5.6.90.0070.06318.32
5.6.80.0100.08017.62
5.6.70.0170.07017.64
5.6.60.0170.02717.65
5.6.50.0070.04017.55
5.6.40.0000.06017.51
5.6.30.0030.08017.50
5.6.20.0030.08317.52
5.6.10.0100.07317.47
5.6.00.0070.05717.59
5.5.350.0230.07320.41
5.5.340.0100.08017.99
5.5.330.0070.08317.96
5.5.320.0070.08317.98
5.5.310.0130.07717.97
5.5.300.0070.08017.92
5.5.290.0100.07718.01
5.5.280.0100.07718.09
5.5.270.0070.06318.08
5.5.260.0100.08017.95
5.5.250.0000.07017.89
5.5.240.0100.06717.38
5.5.230.0100.07017.35
5.5.220.0130.07317.35
5.5.210.0000.04317.35
5.5.200.0070.07717.30
5.5.190.0030.06317.39
5.5.180.0070.06317.38
5.5.160.0130.06317.39
5.5.150.0030.04317.34
5.5.140.0070.08317.30
5.5.130.0070.04717.38
5.5.120.0070.07317.36
5.5.110.0170.03717.37
5.5.100.0070.08017.32
5.5.90.0100.06017.17
5.5.80.0070.08017.23
5.5.70.0100.06317.25
5.5.60.0000.08317.32
5.5.50.0000.05717.16
5.5.40.0000.07017.22
5.5.30.0030.08017.31
5.5.20.0100.07717.30
5.5.10.0070.06317.19
5.5.00.0100.05717.16
5.4.450.0130.04019.38
5.4.440.0070.04319.47
5.4.430.0000.08319.45
5.4.420.0200.07019.41
5.4.410.0070.04719.24
5.4.400.0100.07319.13
5.4.390.0130.04019.05
5.4.380.0200.06719.01
5.4.370.0030.08019.01
5.4.360.0030.04319.05
5.4.350.0000.06019.12
5.4.340.0100.07319.06
5.4.320.0100.07319.13
5.4.310.0100.07719.05
5.4.300.0130.07319.03
5.4.290.0100.07019.02
5.4.280.0030.05318.88
5.4.270.0000.06719.26
5.4.260.0000.05018.85
5.4.250.0100.07019.13
5.4.240.0200.06719.04
5.4.230.0130.07019.08
5.4.220.0070.06718.94
5.4.210.0100.05719.02
5.4.200.0130.07019.09
5.4.190.0100.06719.04
5.4.180.0100.07719.12
5.4.170.0130.07019.08
5.4.160.0030.07719.07
5.4.150.0030.04019.25
5.4.140.0030.03716.48
5.4.130.0030.05016.34
5.4.120.0070.04016.45
5.4.110.0030.08316.54
5.4.100.0030.06316.40
5.4.90.0070.03316.35
5.4.80.0000.03716.47
5.4.70.0000.03716.62
5.4.60.0030.03316.42
5.4.50.0000.03716.38
5.4.40.0100.03716.43
5.4.30.0000.04016.34
5.4.20.0070.03016.52
5.4.10.0030.03316.45
5.4.00.0000.03715.82
5.3.290.0070.08314.70
5.3.280.0100.05714.42
5.3.270.0000.05714.65
5.3.260.0100.07714.62
5.3.250.0070.05714.68
5.3.240.0000.07014.62
5.3.230.0070.06314.68
5.3.220.0130.04714.60
5.3.210.0070.07714.58
5.3.200.0070.06714.42
5.3.190.0100.03014.62
5.3.180.0030.03714.56
5.3.170.0070.03314.53
5.3.160.0030.03714.57
5.3.150.0030.03714.53
5.3.140.0000.04014.67
5.3.130.0030.03714.52
5.3.120.0070.03314.55
5.3.110.0030.04014.41
5.3.100.0000.03714.09
5.3.90.0030.03314.05
5.3.80.0000.03714.23
5.3.70.0000.03714.04
5.3.60.0030.03314.07
5.3.50.0000.03714.05
5.3.40.0100.03014.05
5.3.30.0030.04013.78
5.3.20.0030.03313.75
5.3.10.0070.03013.70
5.3.00.0000.03713.66
5.2.170.0000.03011.18
5.2.160.0070.02311.25
5.2.150.0000.03011.19
5.2.140.0000.03011.04
5.2.130.0000.03011.32
5.2.120.0000.03011.00
5.2.110.0070.02311.16
5.2.100.0030.03311.14
5.2.90.0030.02711.10
5.2.80.0070.02311.07
5.2.70.0000.03011.00
5.2.60.0000.03011.13
5.2.50.0070.02311.23
5.2.40.0070.02311.06
5.2.30.0030.02711.01
5.2.20.0030.02710.91
5.2.10.0070.02310.85
5.2.00.0100.02010.73
5.1.60.0000.02310.10
5.1.50.0000.0279.99
5.1.40.0030.0239.89
5.1.30.0030.02310.33
5.1.20.0000.02710.26
5.1.10.0000.02710.17
5.1.00.0030.02710.02
5.0.50.0030.0478.53
5.0.40.0030.0408.45
5.0.30.0000.0338.27
5.0.20.0130.0378.41
5.0.10.0000.0478.22
5.0.00.0070.0678.25
4.4.90.0000.0177.38
4.4.80.0000.0137.38
4.4.70.0000.0177.38
4.4.60.0030.0137.38
4.4.50.0030.0137.38
4.4.40.0000.0277.38
4.4.30.0000.0177.38
4.4.20.0070.0107.38
4.4.10.0000.0337.38
4.4.00.0000.0537.38
4.3.110.0000.0177.38
4.3.100.0030.0277.38
4.3.90.0000.0207.38
4.3.80.0000.0377.38
4.3.70.0030.0377.38
4.3.60.0070.0277.38
4.3.50.0000.0377.38
4.3.40.0070.0507.38
4.3.30.0000.0407.38
4.3.20.0000.0337.38
4.3.10.0000.0377.38
4.3.00.0030.0337.38

preferences:
51.91 ms | 401 KiB | 5 Q