3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Interfaze { public function hello($name); } class Clazz implements Interfaze { public function __construct() { $this->hello(); } public function hello($name) { echo "Hello, $name!"; } } class ClazzChild extends Clazz { public function __construct() { echo "Loaded from the child class."; parent::__construct(); } } $childclass = new ChildClazz; $childclass;

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.70.0060.00918.68
8.3.60.0110.01116.59
8.3.50.0130.00721.98
8.3.40.0140.00718.71
8.3.30.0040.01122.96
8.3.20.0070.00722.96
8.2.180.0120.00618.41
8.2.170.0100.00722.96
8.2.160.0120.00319.95
8.2.150.0040.01119.02
8.1.280.0100.00725.92
7.4.10.0190.00816.24
7.4.00.0140.00715.81
7.3.130.0230.00516.25
7.3.120.0170.00916.44
7.3.110.0130.01616.26
7.3.100.0220.00716.20
7.3.90.0160.01216.34
7.3.80.0190.01016.29
7.3.70.0140.01416.23
7.3.60.0150.01316.33
7.3.50.0270.00516.31
7.3.40.0190.01016.33
7.3.30.0140.01116.29
7.3.20.0220.00718.20
7.3.10.0160.01018.04
7.3.00.0250.00717.99
7.2.260.0100.02016.39
7.2.250.0190.00416.27
7.2.240.0210.00916.57
7.2.230.0240.00516.17
7.2.220.0140.01416.43
7.2.210.0200.01116.24
7.2.200.0120.01616.37
7.2.190.0100.02116.56
7.2.180.0150.01216.43
7.2.170.0160.01316.30
7.2.160.0160.00916.51
7.2.150.0200.00318.17
7.2.140.0230.00918.21
7.2.130.0170.01018.30
7.2.120.0170.01418.20
7.2.110.0210.00918.21
7.2.100.0170.00718.19
7.2.90.0190.00918.25
7.2.80.0170.01418.35
7.2.70.0610.00413.45
7.2.60.0110.01017.33
7.2.50.0220.00918.13
7.2.40.0210.00313.62
7.2.30.0230.01018.48
7.2.20.0230.00918.21
7.2.10.0190.01618.15
7.2.00.0120.01118.63
7.1.330.0170.00917.16
7.1.320.0190.01017.18
7.1.310.0160.01117.34
7.1.300.0140.01117.09
7.1.290.0100.01617.25
7.1.280.0080.01917.15
7.1.270.0170.00517.11
7.1.260.0200.00817.14
7.1.250.0100.01617.16
7.1.240.0290.00717.06
7.1.230.0160.01317.17
7.1.220.0120.01517.13
7.1.210.0200.01217.13
7.1.200.0140.00616.52
7.1.190.0180.01317.12
7.1.180.0220.00417.07
7.1.170.0070.02017.24
7.1.160.0240.00617.27
7.1.150.0210.00917.09
7.1.140.0180.01217.20
7.1.130.0260.00317.32
7.1.120.0160.01017.15
7.1.110.0140.01417.17
7.1.100.0080.01317.70
7.1.90.0190.00817.06
7.1.80.0140.01417.18
7.1.70.0060.01217.16
7.1.60.0150.01118.13
7.1.50.0180.00917.04
7.1.40.0230.00617.21
7.1.30.0180.00517.33
7.1.20.0160.01317.20
7.1.10.0170.01417.14
7.1.00.0110.04419.83
7.0.330.0110.01517.05
7.0.320.0210.00716.87
7.0.310.0200.00516.78
7.0.300.0180.00916.88
7.0.290.0240.00216.96
7.0.280.0160.01216.96
7.0.270.0150.01616.92
7.0.260.0130.01816.90
7.0.250.0180.00817.07
7.0.240.0770.00317.13
7.0.230.0120.00817.09
7.0.220.0250.00616.72
7.0.210.0060.01416.84
7.0.200.0110.00616.99
7.0.190.0100.01616.92
7.0.180.0250.00517.13
7.0.170.0140.01417.07
7.0.160.0220.00916.86
7.0.150.0110.01416.83
7.0.140.0100.01717.02
7.0.130.0140.01417.18
7.0.120.0140.01417.07
7.0.110.0170.01016.91
7.0.100.0190.00816.92
7.0.90.0190.00817.02
7.0.80.0190.00916.82
7.0.70.0080.01917.18
7.0.60.0140.04519.33
7.0.50.0120.03415.42
7.0.40.0120.04416.35
7.0.30.0200.02817.54
7.0.20.0270.04117.48
7.0.10.0200.03217.62
7.0.00.0080.03217.55
5.6.400.0060.02215.61
5.6.390.0190.00915.85
5.6.380.0120.01515.86
5.6.370.0200.00815.45
5.6.360.0120.01215.83
5.6.350.0070.02015.86
5.6.340.0150.01215.73
5.6.330.0230.00815.57
5.6.320.0210.01016.07
5.6.310.0170.01115.82
5.6.300.0190.01215.90
5.6.290.0180.00715.83
5.6.280.0110.03918.44
5.6.270.0100.01715.84
5.6.260.0180.01315.65
5.6.250.0130.01615.81
5.6.240.0180.01115.82
5.6.230.0190.00815.84
5.6.220.0180.01115.57
5.6.210.0110.04218.12
5.6.200.0120.03616.95
5.6.190.0120.03218.23
5.6.180.0130.03318.15
5.6.170.0190.02618.01
5.6.160.0130.03518.24
5.6.150.0060.05317.02
5.6.140.0080.04816.89
5.6.130.0080.04516.94
5.6.120.0110.02618.35
5.6.110.0070.02818.48
5.6.100.0120.03118.46
5.6.90.0150.04818.27
5.6.80.0100.04817.90
5.6.70.0140.01115.53
5.6.60.0100.01012.73
5.6.50.0080.01112.73
5.6.40.0110.01815.91
5.6.30.0120.01615.80
5.6.20.0140.01115.75
5.6.10.0160.00815.57
5.6.00.0040.02115.57
5.5.380.0190.01015.68
5.5.370.0040.02515.68
5.5.360.0210.00915.53
5.5.350.1670.01918.08
5.5.340.0140.04616.87
5.5.330.0200.02918.05
5.5.320.0090.04418.02
5.5.310.0240.03417.93
5.5.300.0050.02816.89
5.5.290.0080.02616.83
5.5.280.0160.04118.07
5.5.270.0130.04718.28
5.5.260.0090.04218.32
5.5.250.0080.02518.11
5.5.240.0120.04017.91
5.5.230.0140.01415.56
5.5.220.0110.01815.66
5.5.210.0210.00815.69
5.5.200.0150.01015.50
5.5.190.0130.01315.58
5.5.180.0190.01015.62
5.5.170.0100.01315.62
5.5.160.0220.00415.62
5.5.150.0170.00715.52
5.5.140.0180.00815.68
5.5.130.0180.00915.64
5.5.120.0190.00915.72
5.5.110.0240.00015.54
5.5.100.0180.01115.41
5.5.90.0160.01115.73
5.5.80.0150.01115.66
5.5.70.0190.00615.63
5.5.60.0200.00815.52
5.5.50.0190.00915.49
5.5.40.0130.01315.64
5.5.30.0140.01415.57
5.5.20.0180.00915.61
5.5.10.0190.00715.61
5.5.00.0120.01215.23
5.4.450.0120.02515.96
5.4.440.0120.02416.15
5.4.430.0170.01816.07
5.4.420.0160.02016.01
5.4.410.0180.02016.07
5.4.400.0160.02416.02
5.4.390.0160.02015.94
5.4.380.0140.02115.96
5.4.370.0150.02515.85
5.4.360.0220.03215.90
5.4.350.0170.01615.96
5.4.340.0090.02615.81
5.4.330.0030.01512.73
5.4.320.0100.04315.85
5.4.310.0230.03515.85
5.4.300.0220.03616.03
5.4.290.0160.03715.80
5.4.280.0120.02715.97
5.4.270.0200.03815.97
5.4.260.0200.02315.91
5.4.250.0170.04115.85
5.4.240.0160.03715.85
5.4.230.0170.02915.93
5.4.220.0150.03015.83
5.4.210.0120.02615.89
5.4.200.0140.02315.86
5.4.190.0170.04215.92
5.4.180.0160.04215.83
5.4.170.0180.04015.79
5.4.160.0190.03015.89
5.4.150.0170.02815.92
5.4.140.0170.03814.60
5.4.130.0220.03314.64
5.4.120.0190.02714.64
5.4.110.0120.04514.56
5.4.100.0150.03914.48
5.4.90.0220.03014.57
5.4.80.0100.00612.73
5.4.70.0090.00612.73
5.4.60.0090.01012.73
5.4.50.0100.01012.73
5.4.40.0080.00812.73
5.4.30.0140.00312.73
5.4.20.0070.00712.73
5.4.10.0090.00912.73
5.4.00.0100.00412.73

preferences:
41.42 ms | 401 KiB | 5 Q