3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestParent { public function execute(array $data) { return array( 'test' => 'test' ); } } trait TestTrait { public function execute(int $id) { return $id + 1; } } class TestClass extends TestParent { use TestTrait { execute as executeTrait; } } new TestClass();

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.0110.01118.43
8.3.50.0170.00921.19
8.3.40.0090.00618.62
8.3.30.0120.00618.59
8.3.20.0110.00320.34
8.3.10.0040.00423.65
8.3.00.0030.00617.62
8.2.180.0090.00925.92
8.2.170.0070.00718.96
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0060.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00017.75
8.2.110.0060.00320.95
8.2.100.0090.00317.72
8.2.90.0000.00817.50
8.2.80.0030.00617.97
8.2.70.0030.00517.80
8.2.60.0000.00817.80
8.2.50.0070.00318.10
8.2.40.0050.00320.62
8.2.30.0070.00420.69
8.2.20.0040.00417.62
8.2.10.0070.00018.00
8.2.00.0000.00918.04
8.1.280.0120.00925.92
8.1.270.0100.00323.88
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0070.01023.81
8.1.230.0080.00322.75
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.13
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0080.00018.59
8.1.160.0050.00322.01
8.1.150.0040.00418.82
8.1.140.0040.00417.39
8.1.130.0000.00717.64
8.1.120.0040.00417.37
8.1.110.0040.00417.45
8.1.100.0000.00717.44
8.1.90.0000.00717.30
8.1.80.0050.00317.39
8.1.70.0000.00717.41
8.1.60.0040.00417.54
8.1.50.0040.00417.43
8.1.40.0040.00417.39
8.1.30.0070.00317.45
8.1.20.0000.00817.48
8.1.10.0040.00417.43
8.1.00.0000.00817.28
8.0.300.0030.00619.90
8.0.290.0040.00416.75
8.0.280.0000.00718.34
8.0.270.0030.00317.18
8.0.260.0030.00317.11
8.0.250.0000.00716.97
8.0.240.0060.00016.89
8.0.230.0040.00417.05
8.0.220.0040.00416.88
8.0.210.0000.00816.82
8.0.200.0060.00016.95
8.0.190.0040.00416.99
8.0.180.0000.00716.94
8.0.170.0040.00416.91
8.0.160.0000.00916.75
8.0.150.0040.00416.93
8.0.140.0070.00016.75
8.0.130.0030.00313.28
8.0.120.0000.00816.76
8.0.110.0050.00316.96
8.0.100.0000.00716.75
8.0.90.0000.00716.96
8.0.80.0070.01416.85
8.0.70.0000.00716.68
8.0.60.0030.00516.73
8.0.50.0040.00416.75
8.0.30.0070.01017.02
8.0.20.0090.00917.40
8.0.10.0030.00316.83
8.0.00.0090.00916.75
7.4.330.0000.00515.08
7.4.320.0070.00016.55
7.4.300.0070.00016.55
7.4.290.0030.00316.46
7.4.280.0030.00316.45
7.4.270.0050.00216.43
7.4.260.0030.00316.54
7.4.250.0000.00716.40
7.4.240.0020.00516.49
7.4.230.0070.00016.34
7.4.220.0070.01016.42
7.4.210.0100.00916.57
7.4.200.0070.00016.34
7.4.160.0080.00816.63
7.4.150.0100.00717.40
7.4.140.0090.01117.86
7.4.130.0120.00716.40
7.4.120.0100.00616.60
7.4.110.0090.00916.48
7.4.100.0070.01616.42
7.4.90.0040.01216.45
7.4.80.0140.00719.39
7.4.70.0030.01316.57
7.4.60.0100.00716.49
7.4.50.0000.00816.53
7.4.40.0100.00716.36
7.4.30.0110.00616.54
7.4.10.0080.00815.07
7.4.00.0070.00914.81
7.3.330.0050.00013.16
7.3.320.0030.00313.26
7.3.310.0030.00316.39
7.3.300.0030.00316.31
7.3.290.0070.00916.28
7.3.280.0080.00716.30
7.3.270.0040.01217.40
7.3.260.0080.00816.59
7.3.250.0060.01216.43
7.3.240.0100.01316.13
7.3.230.0070.01016.48
7.3.210.0030.01316.27
7.3.200.0120.00916.27
7.3.190.0100.00616.33
7.3.180.0120.00316.34
7.3.170.0220.00016.43
7.3.160.0120.00616.30
7.3.130.0120.00614.84
7.3.120.0120.00514.88
7.3.110.0080.01014.77
7.3.100.0000.01614.81
7.3.90.0040.01014.72
7.3.80.0060.00614.66
7.3.70.0050.00814.67
7.3.60.0060.00614.71
7.3.50.0040.00714.73
7.3.40.0060.00614.76
7.3.30.0020.01114.76
7.3.20.0030.00916.61
7.3.10.0050.01016.54
7.3.00.0070.00816.48
7.2.330.0110.00716.49
7.2.320.0130.00916.58
7.2.310.0070.01016.64
7.2.300.0110.00716.39
7.2.290.0060.00916.50
7.2.260.0090.01215.07
7.2.250.0090.00914.82
7.2.240.0080.00814.95
7.2.230.0110.00514.81
7.2.220.0060.00614.92
7.2.210.0060.00814.73
7.2.200.0060.01114.91
7.2.190.0030.01114.81
7.2.180.0090.00214.76
7.2.170.0040.01114.86
7.2.160.0120.00614.93
7.2.150.0000.01716.92
7.2.140.0120.00016.57
7.2.130.0030.01016.28
7.2.120.0080.00816.65
7.2.110.0040.00616.60
7.2.100.0060.00816.50
7.2.90.0000.01516.62
7.2.80.0080.00516.51
7.2.70.0080.00616.53
7.2.60.0110.00316.50
7.2.50.0100.00416.58
7.2.40.0070.00616.51
7.2.30.0060.00816.69
7.2.20.0070.00616.40
7.2.10.0050.00916.52
7.2.00.0080.00616.66
7.1.330.0030.01115.67
7.1.320.0020.00815.71
7.1.310.0070.00515.64
7.1.300.0060.00615.49
7.1.290.0020.01015.69
7.1.280.0030.01115.56
7.1.270.0060.00915.54
7.1.260.0060.00715.55
7.1.250.0020.01215.59
7.1.240.0090.00615.71
7.1.230.0060.00915.86
7.1.220.0040.00715.43
7.1.210.0090.00615.68
7.1.200.0050.01115.74
7.1.190.0060.00815.51
7.1.180.0070.00715.61
7.1.170.0060.00615.78
7.1.160.0000.01415.82
7.1.150.0070.00715.64
7.1.140.0090.00615.53
7.1.130.0060.00315.65
7.1.120.0070.00715.74
7.1.110.0070.00715.61
7.1.100.0050.00716.83
7.1.90.0070.01015.49
7.1.80.0150.00315.42
7.1.70.0090.00316.13
7.1.60.0100.00617.50
7.1.50.0070.01216.05
7.1.40.0080.00415.45
7.1.30.0070.00715.72
7.1.20.0030.01315.61
7.1.10.0080.00015.61
7.1.00.0100.03818.94
7.0.330.0000.01114.99
7.0.320.0060.00615.21
7.0.310.0030.01015.05
7.0.300.0000.01015.14
7.0.290.0030.00915.47
7.0.280.0090.00315.23
7.0.270.0000.01415.36
7.0.260.0050.00715.16
7.0.250.0040.01115.40
7.0.240.0030.00615.06
7.0.230.0100.00715.03
7.0.220.0000.01415.30
7.0.210.0040.01115.39
7.0.200.0050.00716.05
7.0.190.0030.00815.39
7.0.180.0000.01715.25
7.0.170.0030.01215.09
7.0.160.0040.01115.44
7.0.150.0000.00715.19
7.0.140.0120.00315.46
7.0.130.0030.01315.41
7.0.120.0040.00715.45
7.0.110.0060.00915.36
7.0.100.0110.00415.43
7.0.90.0090.00615.36
7.0.80.0110.00615.23
7.0.70.0000.01315.54
7.0.60.0050.04217.54
7.0.50.0070.02216.56
7.0.40.0070.04016.73
7.0.30.0180.04216.71
7.0.20.0160.02316.82
7.0.10.0030.05116.80
7.0.00.0030.05016.68
5.6.400.0030.00514.18
5.6.390.0030.01314.42
5.6.380.0100.00714.29
5.6.370.0030.00914.45
5.6.360.0060.00614.28
5.6.350.0030.01014.13
5.6.340.0100.00714.34
5.6.330.0090.00314.45
5.6.320.0070.00414.20
5.6.310.0040.01413.95
5.6.300.0030.00913.79
5.6.290.0100.00714.22
5.6.280.0020.02317.65
5.6.270.0060.00314.40
5.6.260.0030.01014.43
5.6.250.0000.01514.08
5.6.240.0060.00914.53
5.6.230.0070.00714.30
5.6.220.0040.01414.59
5.6.210.0120.03517.47
5.6.200.0030.02616.11
5.6.190.0060.04017.38
5.6.180.0170.04217.29
5.6.170.0130.04917.44
5.6.160.0080.03617.29
5.6.150.0070.03616.17
5.6.140.0030.03816.28
5.6.130.0120.03516.19
5.6.120.0040.03017.64
5.6.110.0030.04917.73
5.6.100.0070.04517.52
5.6.90.0100.04017.72
5.6.80.0030.04517.29
5.6.70.0030.00714.17
5.6.60.0060.00614.02
5.6.50.0030.00914.21
5.6.40.0060.00314.07
5.6.30.0070.00714.21
5.6.20.0110.00314.31
5.6.10.0030.01214.21
5.6.00.0090.00614.22
5.5.380.0060.00913.91
5.5.370.0070.00714.12
5.5.360.0000.00914.59
5.5.350.0070.04017.26
5.5.340.0070.04415.92
5.5.330.0070.04817.04
5.5.320.1640.03117.33
5.5.310.0140.04617.34
5.5.300.0050.03016.20
5.5.290.0020.02516.09
5.5.280.0100.04417.50
5.5.270.0080.02617.52
5.5.260.0090.02017.46
5.5.250.0090.04817.42
5.5.240.0000.05017.32
5.5.230.0070.00713.92
5.5.220.0060.00314.29
5.5.210.0080.00514.18
5.5.200.0070.00413.85
5.5.190.0100.00014.05
5.5.180.0060.00614.27
5.5.170.0030.00713.96
5.5.160.0070.00714.19
5.5.150.0070.01014.03
5.5.140.0060.00314.20
5.5.130.0080.00413.88
5.5.120.0030.01014.21
5.5.110.0000.01414.09
5.5.100.0030.01414.27
5.5.90.0110.00414.16
5.5.80.0030.00914.04
5.5.70.0070.00414.24
5.5.60.0070.00714.08
5.5.50.0040.01213.90
5.5.40.0030.01414.07
5.5.30.0090.00613.96
5.5.20.0130.00013.77
5.5.10.0070.00714.19
5.5.00.0030.00714.03
5.4.450.0400.03015.30
5.4.440.0410.03115.30
5.4.430.0350.03515.26
5.4.420.0420.02815.22
5.4.410.0350.03615.27
5.4.400.0370.02915.18
5.4.390.0330.03014.99
5.4.380.0340.02915.17
5.4.370.0330.03015.20
5.4.360.0400.02915.09
5.4.350.0390.02715.12
5.4.340.0370.04515.09
5.4.330.0100.00011.18
5.4.320.0380.03215.13
5.4.310.0400.02615.10
5.4.300.0440.02915.00
5.4.290.0300.03015.14
5.4.280.0390.02714.99
5.4.270.0370.02815.15
5.4.260.0440.02815.13
5.4.250.0350.03015.06
5.4.240.0320.03315.05
5.4.230.0380.03015.06
5.4.220.0530.03315.03
5.4.210.0350.03915.06
5.4.200.0400.03015.17
5.4.190.0400.02615.10
5.4.180.0460.02615.06
5.4.170.0330.03214.99
5.4.160.0370.03214.91
5.4.150.0360.03914.90
5.4.140.0340.03213.79
5.4.130.0480.03113.67
5.4.120.0320.03313.74
5.4.110.0360.03013.82
5.4.100.0350.02713.74
5.4.90.0410.02313.77
5.4.80.0420.03013.80
5.4.70.0120.02413.79
5.4.60.0000.02113.81
5.4.50.0040.02913.73
5.4.40.0070.03513.77
5.4.30.0190.03513.78
5.4.20.0060.03513.61
5.4.10.0030.00710.98
5.4.00.0080.00010.98

preferences:
47.6 ms | 401 KiB | 5 Q