3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function __construct() { $this->something(); } public function something() { echo __CLASS__ . PHP_EOL; // foo } } class foo_bar extends foo { public function __construct() { parent::something(); $this->something(); } public function something() { echo __CLASS__ . PHP_EOL; // foo_bar } } class foo_bar_baz extends foo_bar { public function __construct() { //foo::something(); parent::something(); $this->something(); } public function something() { echo __CLASS__ . PHP_EOL; // foo_bar_baz } } $obj = new foo_bar_baz();

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.0070.00718.39
8.3.50.0080.01121.98
8.3.40.0120.00618.68
8.3.30.0120.00318.67
8.3.20.0070.00718.64
8.3.10.0060.00321.04
8.3.00.0000.00823.69
8.2.180.0130.00316.75
8.2.170.0140.00722.96
8.2.160.0070.01120.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.94
8.2.110.0060.00320.29
8.2.100.0110.00017.78
8.2.90.0070.00019.21
8.2.80.0000.00719.46
8.2.70.0030.00617.49
8.2.60.0080.00017.80
8.2.50.0000.00818.07
8.2.40.0040.00418.05
8.2.30.0030.00319.33
8.2.20.0040.00417.47
8.2.10.0050.00317.62
8.2.00.0080.00317.55
8.1.280.0030.01025.92
8.1.270.0040.00423.99
8.1.260.0090.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00622.59
8.1.230.0050.00520.95
8.1.220.0040.00418.77
8.1.210.0040.00718.87
8.1.200.0070.00317.23
8.1.190.0070.00017.41
8.1.180.0000.00818.10
8.1.170.0040.00418.68
8.1.160.0000.00918.82
8.1.150.0080.00018.57
8.1.140.0040.00417.40
8.1.130.0000.00717.83
8.1.120.0050.00217.32
8.1.110.0070.00017.28
8.1.100.0030.00417.43
8.1.90.0020.00517.36
8.1.80.0040.00417.39
8.1.70.0030.00317.35
8.1.60.0110.00017.60
8.1.50.0000.00717.49
8.1.40.0040.00417.36
8.1.30.0040.00417.56
8.1.20.0030.00517.61
8.1.10.0000.00717.59
8.1.00.0040.00717.37
8.0.300.0040.00419.82
8.0.290.0040.00416.93
8.0.280.0000.00718.44
8.0.270.0070.00017.18
8.0.260.0030.00316.73
8.0.250.0040.00416.86
8.0.240.0000.00816.86
8.0.230.0030.00316.79
8.0.220.0000.00716.80
8.0.210.0070.00016.71
8.0.200.0030.00316.89
8.0.190.0000.00716.88
8.0.180.0000.00816.77
8.0.170.0040.00416.76
8.0.160.0070.00016.86
8.0.150.0050.00216.74
8.0.140.0020.00516.70
8.0.130.0000.00613.26
8.0.120.0000.00716.82
8.0.110.0090.00016.70
8.0.100.0050.00316.79
8.0.90.0030.00616.78
8.0.80.0120.00916.80
8.0.70.0000.00816.71
8.0.60.0080.00016.77
8.0.50.0030.00616.89
8.0.30.0090.00917.13
8.0.20.0090.01717.40
8.0.10.0000.00716.77
8.0.00.0090.01216.86
7.4.330.0020.00216.79
7.4.320.0050.00216.36
7.4.300.0070.00016.53
7.4.290.0030.00516.59
7.4.280.0050.00216.46
7.4.270.0040.00416.62
7.4.260.0030.00313.33
7.4.250.0030.00616.50
7.4.240.0000.00716.51
7.4.230.0000.00616.67
7.4.220.0110.01516.38
7.4.210.0060.00916.53
7.4.200.0000.00716.64
7.4.190.0000.00716.57
7.4.160.0090.00616.61
7.4.150.0120.00617.40
7.4.140.0050.01217.86
7.4.130.0200.01016.52
7.4.120.0110.00616.44
7.4.110.0100.00716.49
7.4.100.0030.01516.50
7.4.90.0040.01716.58
7.4.80.0090.01219.39
7.4.70.0090.01216.55
7.4.60.0030.01316.35
7.4.50.0040.00416.39
7.4.40.0070.01022.77
7.4.30.0100.00716.55
7.4.10.0040.01414.94
7.4.00.0100.00715.06
7.3.330.0000.00513.22
7.3.320.0060.00013.20
7.3.310.0050.00216.14
7.3.300.0000.00716.16
7.3.290.0030.01416.35
7.3.280.0100.00716.27
7.3.270.0060.01217.40
7.3.260.0110.00918.24
7.3.250.0090.00816.34
7.3.240.0100.00716.31
7.3.230.0110.01116.44
7.3.210.0120.00916.39
7.3.200.0070.01019.39
7.3.190.0150.00616.18
7.3.180.0130.00316.29
7.3.170.0180.00316.47
7.3.160.0070.01016.26
7.3.130.0090.00914.98
7.3.120.0090.00514.82
7.3.110.0130.00414.75
7.3.100.0090.00514.79
7.3.90.0050.01014.87
7.3.80.0050.00914.43
7.3.70.0050.01114.77
7.3.60.0110.00314.72
7.3.50.0080.00614.79
7.3.40.0080.00714.63
7.3.30.0050.00614.59
7.3.20.0060.00816.62
7.3.10.0050.00816.62
7.3.00.0020.01016.51
7.2.330.0100.01016.78
7.2.320.0100.00716.34
7.2.310.0090.00916.73
7.2.300.0130.00316.73
7.2.290.0040.01216.57
7.2.260.0110.00715.05
7.2.250.0100.00814.91
7.2.240.0050.01014.99
7.2.230.0080.01015.04
7.2.220.0070.00914.99
7.2.210.0040.00814.90
7.2.200.0050.01015.04
7.2.190.0020.01114.84
7.2.180.0090.00615.04
7.2.170.0050.00414.70
7.2.160.0030.00714.78
7.2.150.0030.01017.02
7.2.140.0050.00516.83
7.2.130.0100.00616.80
7.2.120.0090.00616.78
7.2.110.0060.00317.06
7.2.100.0030.01417.00
7.2.90.0000.01316.67
7.2.80.0060.00916.73
7.2.70.0030.00916.73
7.2.60.0060.00616.65
7.2.50.0030.01016.77
7.2.40.0100.00316.88
7.2.30.0000.01516.86
7.2.20.0000.00917.07
7.2.10.0040.00816.92
7.2.00.0100.00316.84
7.1.330.0030.01115.62
7.1.320.0100.00715.45
7.1.310.0060.00515.67
7.1.300.0050.00915.63
7.1.290.0080.00815.78
7.1.280.0050.00515.37
7.1.270.0030.00915.56
7.1.260.0000.01315.61
7.1.250.0030.00515.65
7.1.240.0000.01115.70
7.1.230.0080.00615.63
7.1.220.0040.01115.59
7.1.210.0030.01015.35
7.1.200.0040.01115.61
7.1.190.0030.01015.33
7.1.180.0060.00615.63
7.1.170.0030.01215.75
7.1.160.0030.00715.82
7.1.150.0070.00715.78
7.1.140.0090.00315.28
7.1.130.0070.00715.57
7.1.120.0030.00515.58
7.1.110.0040.00815.73
7.1.100.0060.00615.64
7.1.90.0030.00715.58
7.1.80.0060.00915.71
7.1.70.0030.00616.32
7.1.60.0020.01116.42
7.1.50.0050.01416.03
7.1.40.0130.00315.64
7.1.30.0060.00615.60
7.1.20.0090.00315.43
7.1.10.0000.01715.82
7.1.00.0050.01819.03
7.0.330.0070.00715.17
7.0.320.0080.00815.31
7.0.310.0070.00715.39
7.0.300.0040.01115.35
7.0.290.0060.00615.09
7.0.280.0060.00615.24
7.0.270.0000.00915.40
7.0.260.0060.00615.09
7.0.250.0060.00315.25
7.0.240.0100.00315.43
7.0.230.0030.00715.51
7.0.220.0120.00315.13
7.0.210.0100.00315.37
7.0.200.0060.00816.08
7.0.190.0030.01215.36
7.0.180.0090.00015.49
7.0.170.0040.01115.20
7.0.160.0060.00915.30
7.0.150.0110.00415.33
7.0.140.0010.03918.66
7.0.130.0060.00615.35
7.0.120.0030.00915.42
7.0.110.0090.00615.25
7.0.100.0000.01015.30
7.0.90.0040.00815.41
7.0.80.0110.00315.25
7.0.70.0070.02817.82
7.0.60.0050.03517.67
7.0.50.0100.04217.88
7.0.40.0070.03016.92
7.0.30.0080.04616.95
7.0.20.0080.04016.96
7.0.10.0050.04116.93
7.0.00.0050.02216.95
5.6.400.0030.00614.20
5.6.390.0040.01214.32
5.6.380.0040.01114.58
5.6.370.0030.01014.57
5.6.360.0090.00614.23
5.6.350.0030.01014.11
5.6.340.0030.01014.41
5.6.330.0030.01014.36
5.6.320.0080.00314.56
5.6.310.0000.01714.36
5.6.300.0040.01114.36
5.6.290.0060.00914.10
5.6.280.0090.03317.76
5.6.270.0030.00914.66
5.6.260.0090.00614.40
5.6.250.0040.01114.23
5.6.240.0000.01414.05
5.6.230.0030.01014.25
5.6.220.0100.04017.64
5.6.210.0050.03817.48
5.6.200.0070.04217.72
5.6.190.0180.03517.63
5.6.180.0050.04517.68
5.6.170.0080.04617.75
5.6.160.0050.04817.72
5.6.150.0110.04217.66
5.6.140.0050.03317.79
5.6.130.0080.04117.76
5.6.120.0100.04517.62
5.6.110.0060.05017.58
5.6.100.0050.03117.59
5.6.90.0070.04517.63
5.6.80.0080.04317.27
5.6.70.0050.04117.28
5.6.60.0110.04217.32
5.6.50.0110.04317.33
5.6.40.0060.04317.36
5.6.30.0050.03517.34
5.6.20.0050.04117.27
5.6.10.0080.04017.25
5.6.00.0120.03817.38
5.5.380.0000.00814.29
5.5.370.0000.01114.31
5.5.360.0100.04317.30
5.5.350.0140.02717.50
5.5.340.0080.04317.51
5.5.330.0150.03517.53
5.5.320.0100.04417.48
5.5.310.0100.04017.48
5.5.300.0080.04017.67
5.5.290.0060.04417.41
5.5.280.0070.02917.67
5.5.270.0070.04417.53
5.5.260.0050.04817.41
5.5.250.0100.04217.46
5.5.240.0080.03017.21
5.5.230.0090.04317.17
5.5.220.0030.04617.27
5.5.210.0070.04317.28
5.5.200.0070.03817.06
5.5.190.0000.05017.29
5.5.180.0090.04317.29
5.5.170.0000.01314.46
5.5.160.0070.03417.29
5.5.150.0020.03917.23
5.5.140.0040.04217.30
5.5.130.0070.03917.11
5.5.120.0080.02317.28
5.5.110.0070.04217.26
5.5.100.0100.04517.26
5.5.90.0060.03617.02
5.5.80.0050.03817.11
5.5.70.0070.03317.17
5.5.60.0070.04517.15
5.5.50.0120.03817.13
5.5.40.0120.03217.22
5.5.30.0090.02817.13
5.5.20.0070.04517.16
5.5.10.0050.02317.00
5.5.00.0030.03716.91
5.4.450.0070.03116.64
5.4.440.0100.03816.65
5.4.430.0120.03716.58
5.4.420.0080.04016.51
5.4.410.0120.03916.60
5.4.400.0080.04016.42
5.4.390.0080.04016.44
5.4.380.0050.03716.35
5.4.370.0030.04016.44
5.4.360.0020.03516.37
5.4.350.0080.04116.34
5.4.340.0000.05016.51
5.4.330.0030.00313.80
5.4.320.0010.03316.47
5.4.310.0030.04216.41
5.4.300.0080.03716.33
5.4.290.0030.02716.43
5.4.280.0050.02216.41
5.4.270.0100.03216.48
5.4.260.0050.04216.44
5.4.250.0100.03516.48
5.4.240.0020.04716.35
5.4.230.0030.04716.44
5.4.220.0030.03316.33
5.4.210.0130.03816.33
5.4.200.0100.03816.43
5.4.190.0020.04416.35
5.4.180.0040.04416.47
5.4.170.0070.03416.34
5.4.160.0060.02616.40
5.4.150.0050.04116.40
5.4.140.0080.03515.14
5.4.130.0070.04215.15
5.4.120.0070.03515.14
5.4.110.0050.02615.12
5.4.100.0060.03815.14
5.4.90.0050.03515.17
5.4.80.0070.03715.05
5.4.70.0080.03815.13
5.4.60.0080.03615.08
5.4.50.0070.03515.08
5.4.40.0070.03015.08
5.4.30.0050.02515.02
5.4.20.0090.02815.04
5.4.10.0070.04115.13
5.4.00.0060.04014.79
5.3.290.0090.04214.25
5.3.280.0040.03314.20
5.3.270.0050.03014.21
5.3.260.0070.03914.17
5.3.250.0060.04314.25
5.3.240.0000.04314.20
5.3.230.0100.02814.18
5.3.220.0080.02514.19
5.3.210.0060.02014.15
5.3.200.0080.02314.21
5.3.190.0030.03814.21
5.3.180.0050.03514.14
5.3.170.0060.04314.21
5.3.160.0030.04014.17
5.3.150.0080.03814.15
5.3.140.0030.03314.15
5.3.130.0030.04314.14
5.3.120.0070.03014.19
5.3.110.0020.04714.19
5.3.100.0050.04113.95
5.3.90.0020.03813.96
5.3.80.0000.04413.87
5.3.70.0040.03713.86
5.3.60.0090.03413.96
5.3.50.0050.03713.93
5.3.40.0050.04013.90
5.3.30.0050.04313.91
5.3.20.0050.02013.79
5.3.10.0050.03213.75
5.3.00.0070.03713.67
5.2.170.0070.04013.30
5.2.160.0000.04013.30
5.2.150.0000.05013.30
5.2.140.0070.03313.30
5.2.130.0070.03313.30
5.2.120.0070.03313.30
5.2.110.0030.06013.30
5.2.100.0130.02013.30
5.2.90.0070.03313.30
5.2.80.0030.06013.30
5.2.70.0070.06713.30
5.2.60.0070.05313.30
5.2.50.0030.05313.30
5.2.40.0030.06313.30
5.2.30.0130.05313.30
5.2.20.0100.05713.30
5.2.10.0100.05013.30
5.2.00.0000.06013.30
5.1.60.0000.04013.30
5.1.50.0030.05713.30
5.1.40.0030.05713.30
5.1.30.0030.05713.30
5.1.20.0030.05713.30
5.1.10.0100.05313.30
5.1.00.0100.05313.30
5.0.50.0030.04313.30
5.0.40.0030.04313.30
5.0.30.0070.06313.30
5.0.20.0070.03013.30
5.0.10.0100.04013.30
5.0.00.0030.06013.30
4.4.90.0000.03313.30
4.4.80.0000.02713.30
4.4.70.0070.02313.30
4.4.60.0030.03013.30
4.4.50.0000.03713.30
4.4.40.0000.06013.30
4.4.30.0000.04013.30
4.4.20.0000.03313.30
4.4.10.0030.03713.30
4.4.00.0030.05713.30
4.3.110.0030.03713.30
4.3.100.0070.03313.30
4.3.90.0000.02713.30
4.3.80.0000.05313.30
4.3.70.0030.03313.30
4.3.60.0000.02713.30
4.3.50.0070.03013.30
4.3.40.0000.05713.30
4.3.30.0070.03313.30
4.3.20.0000.02313.30
4.3.10.0030.03713.30
4.3.00.0070.03013.30

preferences:
42.11 ms | 400 KiB | 5 Q