3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait TestTrait { public function execute(int $id) { return $id + 1; } } class TestClass { use TestTrait { execute as executeTrait; } function __construct() { var_dump($this->execute(1)); var_dump($this->executeTrait(2)); } } 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.0040.01116.75
8.3.50.0120.00317.93
8.3.40.0090.00618.71
8.3.30.0070.00718.68
8.3.20.0070.00020.34
8.3.10.0000.00723.53
8.3.00.0000.00917.68
8.2.180.0090.00918.54
8.2.170.0040.01418.82
8.2.160.0100.01022.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.63
8.2.110.0040.00820.35
8.2.100.0130.00017.92
8.2.90.0000.00719.05
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0080.00017.92
8.2.50.0070.00418.07
8.2.40.0040.00421.08
8.2.30.0060.00320.48
8.2.20.0050.00317.51
8.2.10.0040.00418.00
8.2.00.0030.00517.89
8.1.280.0160.00025.92
8.1.270.0100.01023.92
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00022.39
8.1.230.0060.00619.44
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0000.00820.50
8.1.160.0030.00621.95
8.1.150.0040.00418.86
8.1.140.0050.00218.93
8.1.130.0000.00817.70
8.1.120.0030.00317.29
8.1.110.0050.00317.36
8.1.100.0080.00017.43
8.1.90.0070.00017.35
8.1.80.0000.00717.38
8.1.70.0070.00017.43
8.1.60.0030.00617.40
8.1.50.0000.00817.47
8.1.40.0000.00717.48
8.1.30.0000.00817.45
8.1.20.0000.00817.62
8.1.10.0040.00417.52
8.1.00.0100.00017.39
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00818.45
8.0.270.0000.00716.82
8.0.260.0000.00617.25
8.0.250.0000.00716.96
8.0.240.0000.00716.84
8.0.230.0040.00416.76
8.0.220.0070.00016.78
8.0.210.0070.00016.80
8.0.200.0050.00216.92
8.0.190.0110.00016.90
8.0.180.0030.00516.75
8.0.170.0070.00016.83
8.0.160.0030.00516.87
8.0.150.0000.00716.71
8.0.140.0040.00416.64
8.0.130.0030.00313.28
8.0.120.0000.00716.84
8.0.110.0050.00216.66
8.0.100.0040.00416.61
8.0.90.0000.00716.66
8.0.80.0120.00316.81
8.0.70.0040.00416.88
8.0.60.0040.00416.79
8.0.50.0040.00416.85
8.0.30.0120.00916.83
8.0.20.0110.00817.40
8.0.10.0000.00716.94
8.0.00.0070.01116.66
7.4.330.0020.00215.08
7.4.320.0030.00316.54
7.4.300.0030.00316.38
7.4.290.0040.00416.57
7.4.280.0050.00316.43
7.4.270.0000.00616.53
7.4.260.0030.00316.50
7.4.250.0040.00416.54
7.4.240.0000.00716.46
7.4.230.0030.00316.32
7.4.220.0190.00416.45
7.4.210.0090.00616.52
7.4.200.0070.00016.32
7.4.160.0060.00916.36
7.4.150.0070.01117.40
7.4.140.0100.01017.86
7.4.130.0110.00816.56
7.4.120.0140.00316.49
7.4.110.0060.01216.34
7.4.100.0060.01216.51
7.4.90.0070.01116.41
7.4.80.0030.01419.39
7.4.70.0120.00616.36
7.4.60.0070.01016.55
7.4.50.0020.00216.57
7.4.40.0060.00916.36
7.4.30.0070.01016.57
7.4.00.0090.00814.82
7.3.330.0050.00013.17
7.3.320.0050.00213.22
7.3.310.0030.00316.05
7.3.300.0030.00316.25
7.3.290.0070.00616.22
7.3.280.0080.01016.25
7.3.270.0140.00317.40
7.3.260.0170.00916.48
7.3.250.0080.01016.41
7.3.240.0090.01116.24
7.3.230.0100.00716.45
7.3.210.0060.01516.57
7.3.200.0100.00716.24
7.3.190.0120.00316.36
7.3.180.0000.01716.52
7.3.170.0130.00316.27
7.3.160.0120.00316.24
7.3.120.0100.00314.98
7.3.110.0060.00614.50
7.3.100.0060.01214.57
7.3.90.0060.00614.88
7.3.80.0090.00314.61
7.3.70.0070.01014.64
7.3.60.0060.00914.55
7.3.50.0000.01314.63
7.3.40.0080.00014.61
7.3.30.0060.01214.89
7.3.20.0030.01316.43
7.3.10.0110.00516.43
7.3.00.0130.00816.35
7.2.330.0120.01516.77
7.2.320.0060.01316.69
7.2.310.0060.01116.66
7.2.300.0060.01116.64
7.2.290.0040.01316.45
7.2.250.0090.00914.67
7.2.240.0100.00714.86
7.2.230.0090.00614.87
7.2.220.0090.00614.83
7.2.210.0060.00615.08
7.2.200.0040.01215.11
7.2.190.0100.00615.05
7.2.180.0000.01415.04
7.2.170.0060.00915.12
7.2.160.0040.01114.81
7.2.150.0060.00616.57
7.2.140.0030.00916.99
7.2.130.0160.00016.63
7.2.120.0080.00916.54
7.2.110.0080.00816.76
7.2.100.0100.00716.49
7.2.90.0140.00716.75
7.2.80.0100.00616.65
7.2.70.0060.01116.57
7.2.60.0080.00716.70
7.2.50.0060.00916.67
7.2.40.0050.01116.32
7.2.30.0070.01116.76
7.2.20.0090.00416.43
7.2.10.0120.00916.68
7.2.00.0080.00917.48
7.1.330.0070.01015.86
7.1.320.0090.00615.86
7.1.310.0060.00615.59
7.1.300.0060.00915.53
7.1.290.0030.00615.74
7.1.280.0000.01215.55
7.1.270.0070.00715.52
7.1.260.0030.01015.69
7.1.250.0070.01115.53
7.1.240.0060.00315.66
7.1.230.0030.01015.77
7.1.220.0030.00915.46
7.1.210.0030.01015.75
7.1.200.0030.00815.79
7.1.190.0000.01015.64
7.1.180.0000.01215.63
7.1.170.0000.01015.79
7.1.160.0030.00915.73
7.1.150.0060.00615.68
7.1.140.0080.00315.46
7.1.130.0030.00615.72
7.1.120.0060.00915.80
7.1.110.0030.01515.71
7.1.100.0030.01016.79
7.1.90.0040.01115.54
7.1.80.0030.00615.86
7.1.70.0040.00816.22
7.1.60.0060.01017.55
7.1.50.0070.00616.16
7.1.40.0070.00715.42
7.1.30.0030.00615.49
7.1.20.0100.00015.78
7.1.10.0000.01315.71
7.1.00.0070.04019.07
7.0.330.0120.00315.41
7.0.320.0040.00415.32
7.0.310.0060.00315.43
7.0.300.0090.00315.28
7.0.290.0030.01015.35
7.0.280.0060.00615.42
7.0.270.0060.00615.39
7.0.260.0070.01015.36
7.0.250.0080.00815.46
7.0.240.0080.00415.24
7.0.230.0090.00315.24
7.0.220.0000.01415.56
7.0.210.0090.00615.10
7.0.200.0040.00915.20
7.0.190.0090.00615.27
7.0.180.0100.00315.30
7.0.170.0070.00715.50
7.0.160.0030.00915.23
7.0.150.0070.00415.34
7.0.140.0060.00615.47
7.0.130.0030.00615.42
7.0.120.0060.00315.17
7.0.110.0080.00315.45
7.0.100.0040.00815.43
7.0.90.0000.00815.51
7.0.80.0110.00315.09
7.0.70.0030.01315.50
7.0.60.0100.03517.55
7.0.50.0070.04516.58
7.0.40.0050.02516.76
7.0.30.0150.04216.94
7.0.20.0160.02816.88
7.0.10.0070.02616.91
7.0.00.0070.04316.85
5.6.400.0040.00814.43
5.6.390.0070.00714.21
5.6.380.0030.00714.55
5.6.370.0070.00414.18
5.6.360.0030.00714.48
5.6.350.0100.00714.37
5.6.340.0110.00014.22
5.6.330.0060.00914.48
5.6.320.0080.00514.21
5.6.310.0090.00914.54
5.6.300.0030.01214.41
5.6.290.0080.00014.36
5.6.280.0040.02217.84
5.6.270.0050.00413.95
5.6.260.0080.00814.25
5.6.250.0090.00613.99
5.6.240.0000.01114.31
5.6.230.0060.01214.45
5.6.220.0030.01414.27
5.6.210.0080.04217.46
5.6.200.0030.04016.21
5.6.190.0100.02317.35
5.6.180.0180.03617.30
5.6.170.0090.03417.47
5.6.160.0020.03017.45
5.6.150.0050.04816.26
5.6.140.0070.02816.26
5.6.130.0050.03716.25
5.6.120.0120.04317.50
5.6.110.0050.04417.72
5.6.100.0130.03817.80
5.6.90.0120.04217.58
5.6.80.0020.03917.27
5.6.70.0090.00014.10
5.6.60.0070.00714.34
5.6.50.0070.00713.95
5.6.40.0030.01013.98
5.6.30.0100.00314.14
5.6.20.0030.01614.12
5.6.10.0080.00614.14
5.6.00.0070.00714.34
5.5.380.0040.00414.25
5.5.370.0000.01514.41
5.5.360.0040.00814.04
5.5.350.0070.04217.39
5.5.340.0070.04316.05
5.5.330.0100.04817.32
5.5.320.1630.02317.16
5.5.310.0210.02817.28
5.5.300.0040.02116.08
5.5.290.0010.02416.11
5.5.280.0050.02417.58
5.5.270.0070.02517.33
5.5.260.0070.04517.58
5.5.250.0070.03717.25
5.5.240.0170.04017.24
5.5.230.0130.00013.80
5.5.220.0060.00813.98
5.5.210.0090.00314.08
5.5.200.0030.01014.34
5.5.190.0090.00614.22
5.5.180.0070.01013.92
5.5.170.0030.01313.92
5.5.160.0090.00414.23
5.5.150.0100.00314.04
5.5.140.0140.00313.96
5.5.130.0030.01013.73
5.5.120.0110.00413.96
5.5.110.0030.01014.00
5.5.100.0040.00714.38
5.5.90.0030.00614.10
5.5.80.0090.00614.30
5.5.70.0070.00714.21
5.5.60.0100.00614.08
5.5.50.0030.01214.13
5.5.40.0060.00614.22
5.5.30.0060.00613.93
5.5.20.0050.00514.16
5.5.10.0060.00614.22
5.5.00.0120.00414.16
5.4.450.0460.03316.59
5.4.440.0560.03316.51
5.4.430.0470.03016.58
5.4.420.0560.03816.56
5.4.410.0450.02816.42
5.4.400.0380.03816.27
5.4.390.0500.02416.35
5.4.380.0490.02916.35
5.4.370.0380.03316.41
5.4.360.0430.02816.42
5.4.350.0450.03116.42
5.4.340.0430.03216.42
5.4.330.0030.00513.55
5.4.320.0470.03316.34
5.4.310.0520.04016.41
5.4.300.0250.03516.32
5.4.290.0400.02316.43
5.4.280.0280.03216.21
5.4.270.0310.03316.27
5.4.260.0540.03516.27
5.4.250.0470.03516.42
5.4.240.0300.03016.35
5.4.230.0450.02216.43
5.4.220.0320.03216.40
5.4.210.0430.02316.39
5.4.200.0330.03616.35
5.4.190.0450.04016.34
5.4.180.0430.04116.19
5.4.170.0400.03916.42
5.4.160.0390.03416.35
5.4.150.0430.02516.27
5.4.140.0370.02614.95
5.4.130.0350.02615.05
5.4.120.0330.03414.98
5.4.110.0210.03415.10
5.4.100.0100.02515.06
5.4.90.0260.02515.10
5.4.80.0370.03015.01
5.4.70.0050.02315.00
5.4.60.0030.02514.99
5.4.50.0040.01914.90
5.4.40.0120.02514.90
5.4.30.0180.03814.95
5.4.20.0020.03114.89
5.4.10.0000.01013.55
5.4.00.0070.00313.55

preferences:
53.05 ms | 400 KiB | 5 Q