3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('GOLF_PLATFORM', 333); /** * this is the CHILD class */ class CustomCourse extends BaseContact/*BaseCourse*/ { public function toArray($platform = GOLF_PLATFORM) { $values = parent::toArray(platform); // do some more with $values here return $values; } } /** * this is the PARENT class */ class BaseContact /*extends Course*/ { public function toArray($platform = GOLF_PLATFORM) { $values = array(); $values['user_id'] = $this->getUserId(); // do some more in here return $values; } }

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.0100.00716.50
8.3.50.0100.00718.29
8.3.40.0150.00318.54
8.3.30.0120.00618.53
8.3.20.0050.00318.52
8.3.10.0090.00020.31
8.3.00.0040.00419.13
8.2.180.0180.00316.63
8.2.170.0070.00722.96
8.2.160.0030.01418.68
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00620.50
8.2.110.0030.00621.05
8.2.100.0080.00417.72
8.2.90.0060.00319.40
8.2.80.0050.00319.40
8.2.70.0000.00817.48
8.2.60.0030.00617.80
8.2.50.0000.01019.21
8.2.40.0050.00218.22
8.2.30.0040.00417.90
8.2.20.0060.00317.54
8.2.10.0040.00417.63
8.2.00.0000.00817.60
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00820.56
8.1.230.0040.00821.02
8.1.220.0040.00417.74
8.1.210.0030.00618.89
8.1.200.0060.00317.00
8.1.190.0000.00817.39
8.1.180.0000.00818.10
8.1.170.0080.00018.88
8.1.160.0000.00718.83
8.1.150.0000.00818.45
8.1.140.0000.00717.27
8.1.130.0000.00617.61
8.1.120.0040.00417.44
8.1.110.0040.00417.40
8.1.100.0040.00417.44
8.1.90.0080.00017.43
8.1.80.0000.00717.41
8.1.70.0000.00617.36
8.1.60.0040.00417.48
8.1.50.0000.00717.40
8.1.40.0080.00017.44
8.1.30.0000.00817.50
8.1.20.0030.00617.54
8.1.10.0000.00717.39
8.1.00.0050.00217.29
8.0.300.0050.00219.90
8.0.290.0040.00416.63
8.0.280.0030.00318.40
8.0.270.0000.00717.25
8.0.260.0000.00716.68
8.0.250.0040.00416.93
8.0.240.0000.00816.88
8.0.230.0040.00416.78
8.0.220.0030.00516.86
8.0.210.0070.00016.76
8.0.200.0000.00616.88
8.0.190.0050.00316.78
8.0.180.0040.00416.75
8.0.170.0030.00616.71
8.0.160.0000.00716.77
8.0.150.0000.00816.67
8.0.140.0050.00316.68
8.0.130.0000.00613.25
8.0.120.0030.00516.90
8.0.110.0050.00216.71
8.0.100.0070.00016.80
8.0.90.0040.00416.71
8.0.80.0130.00816.78
8.0.70.0050.00316.86
8.0.60.0070.00016.82
8.0.50.0070.00016.66
8.0.30.0040.01516.90
8.0.20.0130.01116.96
8.0.10.0040.00416.99
8.0.00.0070.01216.68
7.4.330.0030.00312.93
7.4.320.0030.00316.59
7.4.300.0070.00016.55
7.4.290.0070.00016.53
7.4.280.0070.00016.37
7.4.270.0070.00016.43
7.4.260.0000.00513.23
7.4.250.0080.00016.58
7.4.240.0070.00016.37
7.4.230.0000.00716.52
7.4.220.0180.02116.40
7.4.210.0040.01516.48
7.4.200.0000.00716.56
7.4.190.0000.00716.63
7.4.160.0090.00616.27
7.4.150.0070.01116.41
7.4.140.0140.00816.30
7.4.130.0070.01016.42
7.4.120.0170.00016.64
7.4.110.0070.01016.25
7.4.100.0070.01016.49
7.4.90.0040.01816.30
7.4.80.0100.00619.39
7.4.70.0160.00316.50
7.4.60.0040.01116.49
7.4.50.0040.00016.39
7.4.40.0130.00316.18
7.4.30.0090.01216.08
7.4.00.0030.00714.76
7.3.330.0030.00313.07
7.3.320.0030.00312.99
7.3.310.0070.00016.30
7.3.300.0070.00016.25
7.3.290.0070.00916.26
7.3.280.0110.01116.22
7.3.270.0070.01016.34
7.3.260.0050.01116.36
7.3.250.0120.00616.21
7.3.240.0130.00316.50
7.3.230.0080.00816.41
7.3.210.0060.01116.52
7.3.200.0060.01516.42
7.3.190.0070.01416.45
7.3.180.0120.00316.35
7.3.170.0090.00616.26
7.3.160.0030.01516.19
7.3.120.0120.00014.76
7.3.10.0030.01416.36
7.3.00.0060.00916.54
7.2.330.0170.00316.22
7.2.320.0070.01416.40
7.2.310.0150.00316.39
7.2.300.0130.00616.61
7.2.290.0170.00016.35
7.2.130.0070.00716.86
7.2.120.0030.00916.61
7.2.110.0000.01116.40
7.2.100.0040.00916.41
7.2.90.0070.00716.87
7.2.80.0000.01116.99
7.2.70.0060.00916.73
7.2.60.0070.01016.89
7.2.50.0040.00816.67
7.2.40.0100.00716.83
7.2.30.0090.00616.68
7.2.20.0060.00616.96
7.2.10.0100.00716.62
7.2.00.0070.00817.95
7.1.250.0030.00915.91
7.1.70.0050.00217.09
7.1.60.0150.00919.31
7.1.50.0040.01416.78
7.1.00.0070.03022.45
7.0.200.0030.00316.72
7.0.140.0070.07022.21
7.0.120.0030.06722.04
7.0.60.0000.05719.79
7.0.50.0000.04017.97
7.0.40.0100.05720.23
7.0.30.0330.06320.23
7.0.20.0230.05720.27
7.0.10.0130.08020.15
7.0.00.0070.07720.16
5.6.280.0030.07321.07
5.6.210.0100.07320.55
5.6.200.0070.04018.16
5.6.190.0170.08020.39
5.6.180.0270.07020.67
5.6.170.0230.08320.57
5.6.160.0100.08720.55
5.6.150.0100.06018.28
5.6.140.0070.04018.16
5.6.130.0070.08318.14
5.6.120.0070.03721.04
5.6.110.0030.07021.07
5.6.100.0230.04720.89
5.6.90.0000.04321.11
5.6.80.0130.05720.36
5.5.350.0300.07320.54
5.5.340.0030.08318.04
5.5.330.0070.04020.32
5.5.320.0200.04320.27
5.5.310.0230.04320.19
5.5.300.0000.04318.07
5.5.290.0030.06017.98
5.5.280.0170.05020.81
5.5.270.0030.04020.88
5.5.260.0100.04020.65
5.5.250.0030.09320.62
5.5.240.0070.07320.24
5.4.450.3530.03719.52
5.4.440.2970.04019.45
5.4.430.3030.03019.55
5.4.420.3270.03019.52
5.4.410.3630.03019.16
5.4.400.3500.03719.23
5.4.390.4300.03719.14
5.4.380.4330.03719.13
5.4.370.0170.06319.13
5.4.360.4470.03719.16
5.4.350.4270.04319.13
5.4.340.3830.03319.23
5.4.320.3470.04019.19
5.4.310.2800.03319.25
5.4.300.3730.04018.92
5.4.290.3130.03319.13
5.4.280.0000.04319.18
5.4.270.0070.06719.22
5.4.260.4030.04019.13
5.4.250.3770.04019.24
5.4.240.3970.03019.14
5.4.230.3600.03318.92
5.4.220.3970.05019.12
5.4.210.3870.03719.14
5.4.200.3100.02719.13
5.4.190.3600.03318.92
5.4.180.3330.03719.12
5.4.170.3470.03718.91
5.4.160.3100.03719.04
5.4.150.4430.02318.95
5.4.140.3270.03716.45
5.4.130.3770.03316.54
5.4.120.3100.03316.36
5.4.110.3700.03716.50
5.4.100.3530.03316.53
5.4.90.3570.03016.49
5.4.80.3100.04316.29
5.4.70.3570.03716.55
5.4.60.2900.03716.61
5.4.50.3600.03316.54
5.4.40.3800.03716.33
5.4.30.3270.03316.32
5.4.20.3600.03316.19
5.4.10.3970.04316.32
5.4.00.3570.03715.88
5.3.290.2970.03714.71
5.3.280.3300.04714.65
5.3.270.3570.04014.67
5.3.260.2630.03714.75
5.3.250.2930.03314.50
5.3.240.3470.03314.68
5.3.230.2970.04014.60
5.3.220.3500.03714.58
5.3.210.3530.04014.57
5.3.200.2700.03314.73
5.3.190.3770.04014.57
5.3.180.3470.04014.61
5.3.170.3500.03314.57
5.3.160.3600.03714.56
5.3.150.3230.03714.73
5.3.140.3530.04014.57
5.3.130.3470.03714.57
5.3.120.3130.03714.62
5.3.110.2970.03314.55
5.3.100.3030.03314.03
5.3.90.3470.03314.04
5.3.80.3470.03014.17
5.3.70.3200.03713.97
5.3.60.3730.03314.16
5.3.50.3630.04014.02
5.3.40.3230.04013.97
5.3.30.3930.03013.96
5.3.20.3530.03313.69
5.3.10.1470.04013.67
5.3.00.2270.03313.61
5.2.170.2630.03011.31
5.2.160.3070.03011.21
5.2.150.3000.03011.16
5.2.140.3230.02311.14
5.2.130.3100.03011.11
5.2.120.1030.02711.11
5.2.110.1030.03011.11
5.2.100.0370.04311.00
5.2.90.0300.03011.20
5.2.80.0500.05711.07
5.2.70.0470.03011.25
5.2.60.0200.03711.13
5.2.50.0230.02710.97
5.2.40.0230.04711.04
5.2.30.0200.04010.93
5.2.20.0170.02711.11
5.2.10.0170.03310.78
5.2.00.0200.03710.72
5.1.60.0200.03010.06
5.1.50.0230.04310.04
5.1.40.0270.04710.03
5.1.30.0230.05010.23
5.1.20.0170.03010.28
5.1.10.0300.0479.98
5.1.00.0230.05010.05
5.0.50.0130.0438.62
5.0.40.0030.0208.32
5.0.30.0030.0338.18
5.0.20.0100.0178.21
5.0.10.0100.0338.22
5.0.00.0100.0638.22
4.4.90.0130.0336.44
4.4.80.0100.0176.44
4.4.70.0170.0136.44
4.4.60.0130.0336.44
4.4.50.0130.0236.44
4.4.40.0230.0406.44
4.4.30.0100.0176.44
4.4.20.0100.0176.44
4.4.10.0130.0306.44
4.4.00.0070.0336.44
4.3.110.0100.0236.44
4.3.100.0070.0206.44
4.3.90.0100.0306.44
4.3.80.0130.0436.44
4.3.70.0130.0206.44
4.3.60.0130.0176.44
4.3.50.0170.0176.44
4.3.40.0100.0306.44
4.3.30.0070.0376.44
4.3.20.0000.0276.44
4.3.10.0070.0306.44
4.3.00.0030.0206.44

preferences:
38.95 ms | 401 KiB | 5 Q