3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class EventSourcedEntity { protected function test() { echo 'this'; } } abstract class AggregateRoot { protected function test() { parent::test(); echo 'works'; } } class Game extends AggregateRoot { public function __construct(Member $member) { $member->test(); } } class Member extends EventSourcedEntity { } $member = new Member(); new Game($member);

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.0060.01218.54
8.3.50.0130.00721.88
8.3.40.0120.00918.84
8.3.30.0070.01118.84
8.3.20.0020.00520.24
8.3.10.0070.00021.96
8.3.00.0060.00319.18
8.2.180.0100.00618.41
8.2.170.0140.00022.96
8.2.160.0090.00620.53
8.2.150.0120.00324.18
8.2.140.0060.01224.66
8.2.130.0070.01126.16
8.2.120.0030.00619.25
8.2.110.0090.00319.39
8.2.100.0060.00617.72
8.2.90.0030.00517.83
8.2.80.0060.00317.97
8.2.70.0070.00317.38
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0070.00018.16
8.2.30.0050.00217.95
8.2.20.0040.00417.43
8.2.10.0000.00817.80
8.2.00.0050.00317.43
8.1.280.0100.01025.92
8.1.270.0030.00518.75
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0110.00722.39
8.1.230.0040.00820.75
8.1.220.0040.00417.74
8.1.210.0050.00318.91
8.1.200.0080.00417.13
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0030.00518.52
8.1.160.0060.00321.94
8.1.150.0000.00818.79
8.1.140.0050.00319.17
8.1.130.0070.00017.82
8.1.120.0070.00017.41
8.1.110.0040.00417.25
8.1.100.0000.00717.21
8.1.90.0030.00417.23
8.1.80.0040.00417.26
8.1.70.0000.00717.24
8.1.60.0080.00017.36
8.1.50.0040.00717.28
8.1.40.0040.00417.27
8.1.30.0030.00517.52
8.1.20.0030.00517.49
8.1.10.0050.00317.46
8.1.00.0030.00517.31
8.0.300.0000.00819.75
8.0.290.0070.00016.75
8.0.280.0070.00018.31
8.0.270.0030.00316.99
8.0.260.0040.00417.04
8.0.250.0030.00316.93
8.0.240.0070.00016.84
8.0.230.0050.00316.87
8.0.220.0050.00316.83
8.0.210.0000.00816.80
8.0.200.0050.00516.75
8.0.190.0030.00516.78
8.0.180.0070.00016.79
8.0.170.0070.00016.89
8.0.160.0000.00716.81
8.0.150.0030.00316.72
8.0.140.0040.00416.77
8.0.130.0070.00013.21
8.0.120.0000.00816.80
8.0.110.0090.00016.69
8.0.100.0000.00816.70
8.0.90.0040.00416.81
8.0.80.0110.00716.85
8.0.70.0000.00716.80
8.0.60.0040.00416.86
8.0.50.0040.00416.93
8.0.30.0110.01316.78
8.0.20.0100.00917.40
8.0.10.0040.00416.89
8.0.00.0110.00716.57
7.4.330.0000.00515.03
7.4.320.0030.00316.36
7.4.300.0000.00616.54
7.4.290.0030.00316.56
7.4.280.0000.00716.58
7.4.270.0000.00816.60
7.4.260.0060.00316.64
7.4.250.0000.00716.44
7.4.240.0020.00616.58
7.4.230.0080.00016.69
7.4.220.0040.01416.66
7.4.210.0070.00716.42
7.4.200.0040.00416.70
7.4.160.0090.00616.50
7.4.150.0030.01317.40
7.4.140.0140.00517.86
7.4.130.0100.00816.51
7.4.120.0080.00916.57
7.4.110.0070.01716.47
7.4.100.0040.01416.43
7.4.90.0100.00716.50
7.4.80.0130.00919.39
7.4.70.0060.01216.60
7.4.60.0120.00416.52
7.4.50.0050.00316.57
7.4.40.0090.00616.71
7.4.30.0140.00916.71
7.4.00.0070.00714.75
7.3.330.0000.00613.36
7.3.320.0000.00513.38
7.3.310.0000.00616.40
7.3.300.0000.00616.41
7.3.290.0060.00716.31
7.3.280.0070.01016.37
7.3.270.0140.00517.40
7.3.260.0070.01016.38
7.3.250.0150.00216.29
7.3.240.0090.01216.27
7.3.230.0120.01216.39
7.3.210.0070.01016.60
7.3.200.0170.00016.59
7.3.190.0090.00616.46
7.3.180.0110.00416.21
7.3.170.0040.01816.60
7.3.160.0000.01716.52
7.3.10.0100.00516.28
7.3.00.0110.00616.57
7.2.330.0100.00716.70
7.2.320.0120.00416.68
7.2.310.0090.00916.34
7.2.300.0100.00716.64
7.2.290.0110.01416.64
7.2.130.0030.00916.75
7.2.120.0080.00316.66
7.2.110.0060.00516.79
7.2.100.0050.00816.77
7.2.90.0050.01116.92
7.2.80.0070.00616.83
7.2.70.0030.01016.66
7.2.60.0090.00516.70
7.2.50.0140.01016.96
7.2.40.0150.00416.90
7.2.30.0080.01116.68
7.2.20.0100.00816.86
7.2.10.0140.00716.78
7.2.00.0080.00717.64
7.1.250.0090.00515.69
7.1.240.0130.00015.38
7.1.230.0110.00415.53
7.1.220.0100.00315.63
7.1.210.0100.00715.63
7.1.200.0080.00515.44
7.1.190.0030.00915.51
7.1.180.0160.00315.52
7.1.170.0200.00815.46
7.1.160.0100.01715.71
7.1.150.0160.01215.62
7.1.140.0260.00315.63
7.1.130.0190.00615.67
7.1.120.0170.00815.63
7.1.110.0120.00615.52
7.1.100.0080.00716.84
7.1.90.0150.00415.33
7.1.80.0110.00415.46
7.1.70.0060.00516.02
7.1.60.0080.01117.59
7.1.50.0080.00916.28
7.1.40.0110.00315.68
7.1.30.0070.00715.78
7.1.20.0030.01415.37
7.1.10.0150.01215.77
7.1.00.0120.03819.16
7.0.330.0120.00014.96
7.0.320.0060.00615.34
7.0.310.0040.01115.37
7.0.300.0060.00915.47
7.0.290.0100.00715.25
7.0.280.0140.00715.07
7.0.270.0080.00815.11
7.0.260.0120.00315.09
7.0.250.0110.00715.39
7.0.240.0140.00415.13
7.0.230.0100.01015.50
7.0.220.0100.01015.44
7.0.210.0100.00715.56
7.0.200.0090.00514.88
7.0.190.0070.01015.41
7.0.180.0100.00315.07
7.0.170.0120.00315.21
7.0.160.0090.00615.21
7.0.150.0140.00315.47
7.0.140.0050.03818.73
7.0.130.0190.00615.13
7.0.120.0080.01115.38
7.0.110.0170.00015.21
7.0.100.0200.00315.33
7.0.90.0100.01715.19
7.0.80.0140.00415.35
7.0.70.0150.00715.33
7.0.60.0080.02417.60
7.0.50.0080.04516.63
7.0.40.0090.02216.81
7.0.30.0170.04516.71
7.0.20.0120.02516.82
7.0.10.0150.02816.73
7.0.00.0080.03316.72
5.6.380.0030.01014.32
5.6.370.0030.00614.38
5.6.360.0000.01214.27
5.6.350.0110.00314.37
5.6.340.0090.00314.38
5.6.330.0030.01014.43
5.6.320.0150.00014.41
5.6.310.0060.00614.37
5.6.300.0050.00814.35
5.6.290.0070.00714.38
5.6.280.0060.03917.58
5.6.270.0070.00714.38
5.6.260.0030.00614.40
5.6.250.0100.00314.20
5.6.240.0000.01414.21
5.6.230.0050.00514.20
5.6.220.0110.01114.16
5.6.210.0050.03317.25
5.6.200.0100.04016.36
5.6.190.0070.02217.52
5.6.180.0210.02417.30
5.6.170.0370.01917.14
5.6.160.0090.02317.24
5.6.150.0050.04616.05
5.6.140.0110.03016.37
5.6.130.0090.04416.18
5.6.120.0080.02417.65
5.6.110.0100.02217.51
5.6.100.0150.02917.81
5.6.90.0050.02517.67
5.6.80.0060.03817.17
5.6.70.0040.01114.19
5.6.60.0070.00714.11
5.6.50.0040.00714.10
5.6.40.0110.00314.38
5.6.30.0070.00314.27
5.6.20.0070.00714.25
5.6.10.0070.00714.05
5.6.00.0030.01013.83
5.5.380.0040.00710.87
5.5.370.0070.00311.15
5.5.360.0060.00611.05
5.5.350.0130.04115.68
5.5.340.0000.02414.61
5.5.330.0080.04015.60
5.5.320.0130.04015.81
5.5.310.0150.03115.71
5.5.300.0020.03214.59
5.5.290.0030.04314.53
5.5.280.0100.04116.02
5.5.270.0030.04615.93
5.5.260.0030.04515.97
5.5.250.0030.03815.78
5.5.240.0080.04215.54
5.5.230.0080.00410.86
5.5.220.0060.00010.96
5.5.210.0040.00711.32
5.5.200.0040.00711.13
5.5.190.0030.00510.92
5.5.180.0030.00911.01
5.5.170.0000.01211.16
5.5.160.0000.00610.89
5.5.150.0030.00511.13
5.5.140.0060.00611.07
5.5.130.0030.00610.85
5.5.120.0030.00810.63
5.5.110.0030.00310.78
5.5.100.0060.00610.83
5.5.90.0030.00710.63
5.5.80.0060.00610.68
5.5.70.0060.00310.81
5.5.60.0060.00010.72
5.5.50.0060.00311.15
5.5.40.0070.00410.82
5.5.30.0040.00410.84
5.5.20.0030.00910.94
5.5.10.0000.00811.16
5.5.00.0080.00310.52
5.4.450.0380.02815.16
5.4.440.0230.03314.98
5.4.430.0070.02814.97
5.4.420.0100.02815.16
5.4.410.0140.03215.08
5.4.400.0040.03614.96
5.4.390.0140.02914.79
5.4.380.0170.03014.64
5.4.370.0150.02814.85
5.4.360.0140.03014.73
5.4.350.0120.03414.77
5.4.340.0080.03314.55
5.4.330.0100.00010.95
5.4.320.0250.02214.63
5.4.310.0200.03014.87
5.4.300.0080.03514.63
5.4.290.0100.03514.74
5.4.280.0120.03314.50
5.4.270.0130.03714.80
5.4.260.0180.02614.67
5.4.250.0130.03214.58
5.4.240.0110.03414.54
5.4.230.0130.03114.83
5.4.220.0180.03014.72
5.4.210.0100.03714.75
5.4.200.0190.02213.70
5.4.190.0140.02914.73
5.4.180.0170.02814.50
5.4.170.0170.02814.75
5.4.160.0200.02214.83
5.4.150.0150.02914.89
5.4.140.0130.03213.85
5.4.130.0150.02513.54
5.4.120.0120.03013.34
5.4.110.0110.02813.63
5.4.100.0130.03013.50
5.4.90.0120.03113.41
5.4.80.0100.03313.68
5.4.70.0180.02513.75
5.4.60.0120.02913.53
5.4.50.0160.02513.52
5.4.40.0140.02913.63
5.4.30.0240.01913.58
5.4.20.0180.02613.62
5.4.10.0140.03013.68
5.4.00.0150.02813.32
5.3.290.0170.02712.82
5.3.280.0170.02712.46
5.3.270.0160.02612.60
5.3.260.0150.02812.55
5.3.250.0120.03212.66
5.3.240.0150.02812.57
5.3.230.0190.02512.47
5.3.220.0130.03012.44
5.3.210.0170.02712.47
5.3.200.0180.03112.65
5.3.190.0100.03112.63
5.3.180.0160.02512.66
5.3.170.0120.03012.64
5.3.160.0170.02712.68
5.3.150.0130.02612.52
5.3.140.0110.03012.50
5.3.130.0140.03212.63
5.3.120.0080.03712.59
5.3.110.0140.02512.63
5.3.100.0140.02812.22
5.3.90.0130.03012.30
5.3.80.0130.03112.25
5.3.70.0150.02712.23
5.3.60.0150.02912.26
5.3.50.0130.02912.33
5.3.40.0150.02812.26
5.3.30.0150.02712.24
5.3.20.0180.02212.10
5.3.10.0130.02812.01
5.3.00.0150.02811.95
5.2.170.0130.02310.57
5.2.160.0130.02110.56
5.2.150.0120.02310.59
5.2.140.0170.02110.55
5.2.130.0120.02410.54
5.2.120.0130.02210.53
5.2.110.0130.02210.54
5.2.100.0140.02410.57
5.2.90.0100.02410.58
5.2.80.0100.02610.61
5.2.70.0120.02510.61
5.2.60.0130.02110.48
5.2.50.0140.02210.47
5.2.40.0120.02510.57
5.2.30.0130.01910.55
5.2.20.0070.02510.49
5.2.10.0110.02210.52
5.2.00.0090.02310.42
5.1.60.0100.02310.05
5.1.50.0080.02010.03
5.1.40.0100.01810.02
5.1.30.0130.01810.10
5.1.20.0080.02210.16
5.1.10.0100.02010.07
5.1.00.0080.02110.00
5.0.50.0090.0149.34
5.0.40.0070.0189.23
5.0.30.0050.0249.14
5.0.20.0070.0159.12
5.0.10.0090.0159.07
5.0.00.0080.0199.06
4.4.90.0030.0157.88
4.4.80.0020.0157.92
4.4.70.0020.0167.89
4.4.60.0050.0127.87
4.4.50.0030.0177.94
4.4.40.0080.0177.89
4.4.30.0070.0107.90
4.4.20.0080.0127.90
4.4.10.0060.0137.95
4.4.00.0050.0207.93
4.3.110.0100.0127.87
4.3.100.0020.0157.87
4.3.90.0050.0187.90
4.3.80.0020.0227.86
4.3.70.0080.0127.86
4.3.60.0070.0127.86
4.3.50.0070.0127.87
4.3.40.0070.0187.88
4.3.30.0030.0137.24
4.3.20.0120.0127.25
4.3.10.0050.0137.23
4.3.00.0020.0168.56

preferences:
46.5 ms | 401 KiB | 5 Q