3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CommonPage { protected function getContent() { return "default content"; } public function render() { return "<html>{$this->getContent()}</html>"; } } class OfferPage extends CommonPage { protected function getContent() { return "offer content"; } } class ProductPage extends OfferPage{ protected function getContent() { return "product content"; } } $hC = new ProductPage(); echo $hC->render(); // default content

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.0040.01118.68
8.3.30.0150.00018.71
8.3.20.0100.00021.90
8.3.10.0040.00423.65
8.3.00.0090.00021.91
8.2.170.0090.01222.96
8.2.160.0110.00419.07
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00819.30
8.2.120.0040.00426.35
8.2.110.0030.00619.39
8.2.100.0090.00318.09
8.2.90.0000.00917.63
8.2.80.0040.00418.88
8.2.70.0040.00417.93
8.2.60.0070.00018.03
8.2.50.0000.00818.10
8.2.40.0040.00419.34
8.2.30.0050.00319.22
8.2.20.0070.00018.09
8.2.10.0040.00418.05
8.2.00.0000.00818.35
8.1.270.0040.00422.06
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00320.39
8.1.230.0040.00718.86
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0080.00017.23
8.1.180.0070.00018.10
8.1.170.0040.00418.52
8.1.160.0040.00418.85
8.1.150.0040.00418.80
8.1.140.0040.00418.97
8.1.130.0030.00617.66
8.1.120.0030.00317.40
8.1.110.0040.00417.38
8.1.100.0040.00417.28
8.1.90.0000.00717.28
8.1.80.0050.00317.25
8.1.70.0000.00817.34
8.1.60.0050.00317.54
8.1.50.0040.00417.44
8.1.40.0070.00017.49
8.1.30.0030.00917.47
8.1.20.0000.00817.68
8.1.10.0060.00317.55
8.1.00.0000.00917.48
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0070.00017.26
8.0.260.0000.00717.25
8.0.250.0000.00716.93
8.0.240.0040.00416.99
8.0.230.0030.00416.99
8.0.220.0070.00016.89
8.0.210.0030.00516.86
8.0.200.0060.00016.98
8.0.190.0040.00416.90
8.0.180.0060.00316.93
8.0.170.0090.00016.89
8.0.160.0070.00016.84
8.0.150.0030.00616.82
8.0.140.0050.00316.84
8.0.130.0000.00513.31
8.0.120.0000.00716.74
8.0.110.0040.00416.72
8.0.100.0050.00316.71
8.0.90.0040.00416.86
8.0.80.0150.00016.86
8.0.70.0030.00516.88
8.0.60.0040.00416.83
8.0.50.0040.00417.00
8.0.30.0050.01516.93
8.0.20.0110.01517.40
8.0.10.0000.00816.98
8.0.00.0150.00616.64
7.4.330.0040.00015.55
7.4.320.0030.00316.40
7.4.300.0060.00016.41
7.4.290.0040.00416.58
7.4.280.0080.00016.62
7.4.270.0000.00716.42
7.4.260.0040.00416.57
7.4.250.0000.00816.54
7.4.240.0070.00016.53
7.4.230.0030.00316.38
7.4.220.0000.00816.39
7.4.210.0070.00816.50
7.4.200.0030.00316.49
7.4.160.0070.00916.54
7.4.150.0140.00417.40
7.4.140.0070.01117.86
7.4.130.0100.00816.42
7.4.120.0120.00916.49
7.4.110.0100.00716.58
7.4.100.0140.00416.41
7.4.90.0130.00316.66
7.4.80.0070.01119.39
7.4.70.0070.01016.65
7.4.60.0120.00916.49
7.4.50.0070.00816.22
7.4.40.0130.01016.64
7.4.00.0050.01215.05
7.3.330.0060.00013.20
7.3.320.0030.00313.10
7.3.310.0060.00016.13
7.3.300.0040.00416.25
7.3.290.0030.00516.09
7.3.280.0090.00916.19
7.3.270.0130.00517.40
7.3.260.0080.01316.27
7.3.250.0150.00616.42
7.3.240.0110.00816.23
7.3.230.0160.01316.47
7.3.210.0080.00816.36
7.3.200.0120.00316.31
7.3.190.0080.00816.23
7.3.180.0080.01116.48
7.3.170.0030.01816.38
7.3.160.0060.01016.20
7.3.120.0070.01014.69
7.3.110.0070.01014.75
7.3.100.0040.01114.54
7.3.90.0070.00714.75
7.3.80.0030.00714.67
7.3.70.0100.00614.84
7.3.60.0110.00414.59
7.3.50.0000.01514.77
7.3.40.0060.00914.54
7.3.30.0110.00414.75
7.3.20.0070.00416.64
7.3.10.0100.00216.46
7.3.00.0120.00216.51
7.2.330.0120.00616.60
7.2.320.0100.00616.23
7.2.310.0040.01416.75
7.2.300.0150.00816.59
7.2.290.0160.00616.45
7.2.250.0060.00915.24
7.2.240.0100.01015.28
7.2.230.0110.00415.34
7.2.220.0060.01014.84
7.2.210.0040.00814.63
7.2.200.0050.00515.13
7.2.190.0040.00815.03
7.2.180.0060.00915.13
7.2.170.0040.01115.09
7.2.130.0070.00316.66
7.2.120.0050.00516.54
7.2.110.0030.00716.89
7.2.100.0030.01016.77
7.2.90.0070.01216.86
7.2.80.0090.00916.79
7.2.70.0060.00616.52
7.2.60.0110.00516.76
7.2.50.0070.00716.75
7.2.40.0030.00716.82
7.2.30.0080.00517.04
7.2.20.0070.00716.93
7.2.10.0000.00916.84
7.2.00.0130.00917.19
7.1.330.0100.00315.78
7.1.320.0060.00915.46
7.1.310.0040.01115.61
7.1.300.0090.00915.58
7.1.290.0060.01015.66
7.1.280.0070.00715.81
7.1.270.0060.00315.65
7.1.260.0100.00315.49
7.1.250.0080.00415.49
7.1.200.0100.00315.41
7.1.120.0360.00816.88
7.1.110.0230.01015.92
7.1.100.0190.00916.17
7.1.90.0200.00715.71
7.1.80.0250.00316.00
7.1.70.0270.01014.93
7.1.60.0330.01033.14
7.1.50.0240.01832.72
7.1.40.0260.01332.32
7.1.30.0240.01432.58
7.1.20.0360.01132.63
7.1.10.0130.01314.54
7.1.00.0170.01014.69

preferences:
59.21 ms | 400 KiB | 5 Q