3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Products{ // Properties protected $_title; // Methods public function __construct($title){ $this->_title = $title; } public function getTitle(){ return $this->_title; } } class Order extends Products{ } class OrderDomestic extends Products{ } class OrderInternational extends Products{ public function __construct($title){ parent::__construct($title); } } $OI = new OrderInternational('DVD Blue'); echo $OI->getTitle(); class OrderInternationalFunky extends OrderInternational{ public function __construct($title){ parent::__construct($title); } } $OI = new OrderInternationalFunky('DVD Red'); echo $OI->getTitle();

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.40.0120.00318.93
8.3.30.0070.00718.66
8.3.20.0050.00318.78
8.3.10.0080.00018.57
8.3.00.0050.00319.26
8.2.170.0130.00718.96
8.2.160.0130.00322.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00320.56
8.2.110.0060.00320.86
8.2.100.0110.00017.91
8.2.90.0030.00619.27
8.2.80.0040.00419.30
8.2.70.0060.00317.38
8.2.60.0040.00417.80
8.2.50.0000.00918.07
8.2.40.0040.00418.22
8.2.30.0080.00018.03
8.2.20.0000.00717.57
8.2.10.0000.00717.75
8.2.00.0000.00817.50
8.1.270.0000.00724.66
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0060.00322.57
8.1.230.0040.00720.89
8.1.220.0040.00417.74
8.1.210.0060.00618.91
8.1.200.0060.00617.23
8.1.190.0000.00717.40
8.1.180.0030.00618.10
8.1.170.0080.00018.65
8.1.160.0000.00818.83
8.1.150.0000.00718.64
8.1.140.0070.00017.39
8.1.130.0030.00317.85
8.1.120.0000.00717.37
8.1.110.0040.00317.38
8.1.100.0000.00717.46
8.1.90.0080.00017.30
8.1.80.0030.00317.39
8.1.70.0000.00717.34
8.1.60.0040.00417.54
8.1.50.0000.00817.50
8.1.40.0000.00717.49
8.1.30.0000.00817.53
8.1.20.0070.00017.62
8.1.10.0040.00417.51
8.1.00.0040.00417.39
8.0.300.0000.00719.84
8.0.290.0050.00316.75
8.0.280.0080.00018.39
8.0.270.0000.00817.26
8.0.260.0040.00416.82
8.0.250.0080.00016.85
8.0.240.0000.00716.98
8.0.230.0030.00316.88
8.0.220.0070.00016.88
8.0.210.0000.00816.84
8.0.200.0000.00616.79
8.0.190.0040.00416.81
8.0.180.0000.00716.84
8.0.170.0000.00816.84
8.0.160.0030.00416.77
8.0.150.0040.00416.80
8.0.140.0040.00416.80
8.0.130.0000.00513.21
8.0.120.0070.00016.81
8.0.110.0000.00716.77
8.0.100.0040.00416.87
8.0.90.0040.00416.74
8.0.80.0060.00816.82
8.0.70.0050.00216.82
8.0.60.0000.00716.83
8.0.50.0040.00416.71
8.0.30.0210.00317.02
8.0.20.0070.01316.81
8.0.10.0000.00716.94
8.0.00.0110.01416.79
7.4.330.0050.00012.94
7.4.320.0040.00416.46
7.4.300.0030.00316.56
7.4.290.0030.00516.59
7.4.280.0060.00316.61
7.4.270.0030.00316.41
7.4.260.0030.00313.29
7.4.250.0080.00016.44
7.4.240.0070.00016.45
7.4.230.0000.00716.70
7.4.220.0090.00916.61
7.4.210.0050.01116.58
7.4.200.0030.00316.63
7.4.190.0040.00416.67
7.4.160.0140.00316.43
7.4.150.0060.01216.36
7.4.140.0050.01316.50
7.4.130.0100.00716.51
7.4.120.0150.00516.40
7.4.110.0060.01316.46
7.4.100.0140.00316.56
7.4.90.0070.01616.44
7.4.80.0060.01319.39
7.4.70.0080.00916.39
7.4.60.0170.00016.39
7.4.50.0070.00016.23
7.4.40.0070.01016.38
7.4.30.0060.01516.39
7.4.00.0120.00414.63
7.3.330.0060.00013.11
7.3.320.0030.00313.25
7.3.310.0000.00716.14
7.3.300.0030.00316.10
7.3.290.0100.00316.32
7.3.280.0060.01216.25
7.3.270.0070.01016.60
7.3.260.0110.00516.30
7.3.250.0130.00616.33
7.3.240.0100.00616.31
7.3.230.0140.00316.25
7.3.210.0070.01016.32
7.3.200.0130.00316.45
7.3.190.0120.00916.36
7.3.180.0060.00916.44
7.3.170.0030.01316.45
7.3.160.0140.00516.44
7.3.120.0070.01014.64
7.2.330.0070.01016.37
7.2.320.0000.01716.86
7.2.310.0090.01416.47
7.2.300.0030.01316.41
7.2.290.0100.00716.64
7.2.00.0060.00919.32
7.1.200.0030.00915.81
7.1.100.0070.00717.91
7.1.70.0000.01216.79
7.1.60.0140.01019.40
7.1.50.0070.01016.91
7.1.00.0030.07722.54
7.0.200.0150.00714.89
7.0.140.0030.07322.09
7.0.120.0100.06722.02
7.0.60.0030.05020.02
7.0.50.0000.09017.88
7.0.40.0100.07717.74
7.0.30.0200.04717.72
7.0.20.0070.04717.80
7.0.10.0070.08317.75
7.0.00.0030.08017.78
5.6.210.0030.04020.60
5.6.200.0170.07018.16
5.6.190.0070.06718.18
5.6.180.0100.05318.15
5.6.170.0000.08718.13
5.6.160.0130.07718.14
5.6.150.0070.06318.28
5.6.140.0030.04318.15
5.6.130.0030.04318.12
5.6.120.0030.08318.15
5.6.110.0000.06318.27
5.6.100.0130.07718.17
5.6.90.0030.09318.23
5.6.80.0000.04317.57
5.6.70.0070.08017.66
5.6.60.0170.05317.52
5.6.50.0130.06317.54
5.6.40.0030.08317.52
5.6.30.0130.07017.59
5.6.20.0170.07017.63
5.6.10.0030.08017.63
5.6.00.0070.04717.59
5.5.350.0100.07320.45
5.5.340.0170.05018.09
5.5.330.0070.06717.99
5.5.320.0070.04718.00
5.5.310.0130.05017.98
5.5.300.0070.04018.04
5.5.290.0100.04317.95
5.5.280.0030.08717.99
5.5.270.0070.08017.96
5.5.260.0100.08018.08
5.5.250.0130.07317.83
5.5.240.0070.08717.35
5.5.230.0130.06717.35
5.5.220.0100.04717.42
5.5.210.0030.07317.43
5.5.200.0100.07717.31
5.5.190.0100.08317.38
5.5.180.0030.08017.28
5.5.160.0000.04317.30
5.5.150.0070.08017.29
5.5.140.0130.07017.28
5.5.130.0030.07717.39
5.5.120.0030.06317.28
5.5.110.0030.05317.39
5.5.100.0100.07717.21
5.5.90.0000.05717.23
5.5.80.0100.06717.20
5.5.70.0130.06717.21
5.5.60.0070.07317.28
5.5.50.0070.03717.19
5.5.40.0170.06017.22
5.5.30.0070.07017.19
5.5.20.0130.06717.21
5.5.10.0170.06717.23
5.5.00.0130.07017.18
5.4.450.0130.06019.43
5.4.440.0100.07719.34
5.4.430.0030.07719.27
5.4.420.0070.08319.23
5.4.410.0100.06319.46
5.4.400.0070.06719.28
5.4.390.0170.07018.90
5.4.380.0070.05719.02
5.4.370.0100.03318.99
5.4.360.0100.07319.03
5.4.350.0070.08019.03
5.4.340.0000.07719.02
5.4.320.0130.05719.06
5.4.310.0030.05319.09
5.4.300.0000.05019.13
5.4.290.0000.07719.10
5.4.280.0070.06018.98
5.4.270.0070.07718.99
5.4.260.0000.08018.88
5.4.250.0130.06719.04
5.4.240.0100.07019.01
5.4.230.0070.07319.04
5.4.220.0100.04718.98
5.4.210.0130.07319.11
5.4.200.0000.04319.09
5.4.190.0100.06319.11
5.4.180.0070.06019.04
5.4.170.0070.05019.26
5.4.160.0070.07718.94
5.4.150.0030.05319.02
5.4.140.0170.05016.46
5.4.130.0000.08016.43
5.4.120.0030.04016.35
5.4.110.0030.07316.61
5.4.100.0130.06716.48
5.4.90.0000.06316.63
5.4.80.0100.06716.33
5.4.70.0000.06716.48
5.4.60.0030.04316.53
5.4.50.0070.03716.38
5.4.40.0100.06716.51
5.4.30.0100.04716.40
5.4.20.0000.04316.56
5.4.10.0070.06716.40
5.4.00.0030.03715.90
5.3.290.0030.04314.75
5.3.280.0030.07014.65
5.3.270.0070.07314.61
5.3.260.0170.07014.63
5.3.250.0030.05314.70
5.3.240.0070.07714.66
5.3.230.0000.08314.66
5.3.220.0030.07714.62
5.3.210.0030.08314.80
5.3.200.0070.07714.54
5.3.190.0030.06314.61
5.3.180.0000.07314.57
5.3.170.0030.07714.58
5.3.160.0100.03314.57
5.3.150.0030.06314.64
5.3.140.0030.04014.58
5.3.130.0030.06014.55
5.3.120.0070.07714.61
5.3.110.0030.07714.63
5.3.100.0030.07014.08
5.3.90.0000.04014.07
5.3.80.0070.03314.08
5.3.70.0070.03314.23
5.3.60.0000.03714.02
5.3.50.0170.06714.00
5.3.40.0000.04013.95
5.3.30.0000.04713.98
5.3.20.0030.04013.61
5.3.10.0070.04013.68
5.3.00.0030.07713.69
5.2.170.0070.02711.37
5.2.160.0030.03011.21
5.2.150.0000.06011.17
5.2.140.0030.07011.21
5.2.130.0100.04711.17
5.2.120.0000.04711.14
5.2.110.0030.05711.16
5.2.100.0070.03311.11
5.2.90.0000.03311.21
5.2.80.0000.03011.14
5.2.70.0130.03011.13
5.2.60.0130.05310.96
5.2.50.0070.03011.02
5.2.40.0000.06311.08
5.2.30.0000.04010.88
5.2.20.0030.03010.94
5.2.10.0070.05710.86
5.2.00.0030.03310.68
5.1.60.0030.04010.00
5.1.50.0030.0509.96
5.1.40.0030.0509.99
5.1.30.0030.05310.31
5.1.20.0030.05310.41
5.1.10.0000.02710.18
5.1.00.0030.02310.03
5.0.50.0030.0178.39
5.0.40.0030.0408.41
5.0.30.0030.0678.20
5.0.20.0000.0338.25
5.0.10.0000.0208.26
5.0.00.0030.0478.14
4.4.90.0000.0177.94
4.4.80.0000.0177.94
4.4.70.0000.0377.94
4.4.60.0030.0277.94
4.4.50.0000.0177.94
4.4.40.0000.0237.94
4.4.30.0030.0137.94
4.4.20.0000.0307.94
4.4.10.0030.0137.94
4.4.00.0030.0237.94
4.3.110.0000.0377.94
4.3.100.0000.0207.94
4.3.90.0000.0177.94
4.3.80.0000.0407.94
4.3.70.0030.0207.94
4.3.60.0000.0137.94
4.3.50.0000.0177.94
4.3.40.0000.0237.94
4.3.30.0000.0307.94
4.3.20.0000.0177.94
4.3.10.0030.0137.94
4.3.00.0000.0137.94

preferences:
46.4 ms | 400 KiB | 5 Q