3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Chicken { public static function x() { echo "Turducken"; } } trait Turkey { public static function x() { Chicken::x(); } } class Duck { use Turkey; } $duck = new Duck(); $duck->x(); Chicken::x();

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.0090.00618.38
8.3.50.0080.01022.07
8.3.40.0110.00418.59
8.3.30.0070.01419.01
8.3.20.0040.00420.16
8.3.10.0000.00723.66
8.3.00.0040.00420.94
8.2.180.0120.00616.50
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0000.00820.73
8.2.110.0030.00619.22
8.2.100.0030.00917.91
8.2.90.0080.00017.75
8.2.80.0000.00818.61
8.2.70.0040.00417.46
8.2.60.0080.00017.63
8.2.50.0070.00017.93
8.2.40.0040.00419.51
8.2.30.0060.00318.20
8.2.20.0080.00017.66
8.2.10.0080.00018.03
8.2.00.0040.00417.70
8.1.280.0140.00725.92
8.1.270.0080.00023.82
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.01017.70
8.1.230.0110.00018.86
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00417.53
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0040.00417.62
8.1.160.0000.00822.00
8.1.150.0060.00318.54
8.1.140.0000.00817.48
8.1.130.0040.00417.82
8.1.120.0040.00417.46
8.1.110.0040.00417.49
8.1.100.0050.00217.34
8.1.90.0050.00317.36
8.1.80.0070.00017.34
8.1.70.0070.00017.36
8.1.60.0000.00817.47
8.1.50.0060.00317.48
8.1.40.0040.00417.47
8.1.30.0030.00517.54
8.1.20.0040.00417.55
8.1.10.0080.00017.61
8.1.00.0070.00017.41
8.0.300.0080.00018.77
8.0.290.0000.00716.63
8.0.280.0070.00018.43
8.0.270.0000.00817.17
8.0.260.0030.00317.21
8.0.250.0030.00316.85
8.0.240.0070.00016.95
8.0.230.0080.00016.91
8.0.220.0040.00416.80
8.0.210.0000.00716.81
8.0.200.0000.00616.89
8.0.190.0040.00416.85
8.0.180.0000.00816.81
8.0.170.0000.00816.97
8.0.160.0000.00716.83
8.0.150.0050.00216.78
8.0.140.0090.00316.76
8.0.130.0000.00513.32
8.0.120.0050.00316.79
8.0.110.0000.00816.89
8.0.100.0040.00416.95
8.0.90.0050.00216.92
8.0.80.0120.00416.94
8.0.70.0050.00216.69
8.0.60.0050.00216.78
8.0.50.0000.00716.93
8.0.30.0160.00517.00
8.0.20.0110.00817.40
8.0.10.0050.00216.90
8.0.00.0090.00916.69
7.4.330.0050.00015.07
7.4.320.0030.00316.40
7.4.300.0030.00316.44
7.4.290.0000.00716.50
7.4.280.0030.00616.50
7.4.270.0050.00216.52
7.4.260.0020.00516.48
7.4.250.0050.00216.48
7.4.240.0050.00216.60
7.4.230.0030.00316.68
7.4.220.0070.01016.56
7.4.210.0070.00716.46
7.4.200.0030.00316.58
7.4.160.0140.00416.52
7.4.150.0050.01417.40
7.4.140.0100.00717.86
7.4.130.0050.01116.52
7.4.120.0130.00516.49
7.4.110.0120.01016.48
7.4.100.0160.00016.41
7.4.90.0100.00616.49
7.4.80.0090.01219.39
7.4.70.0110.00516.48
7.4.60.0120.00916.44
7.4.50.0050.00016.57
7.4.40.0030.01216.57
7.4.30.0100.01316.59
7.4.10.0030.01315.13
7.4.00.0110.00614.95
7.3.330.0000.00513.26
7.3.320.0000.00513.23
7.3.310.0000.00716.08
7.3.300.0040.00416.27
7.3.290.0090.00916.19
7.3.280.0090.00616.22
7.3.270.0090.00917.40
7.3.260.0090.00916.50
7.3.250.0090.00916.39
7.3.240.0060.01216.57
7.3.230.0150.00416.39
7.3.210.0060.01416.16
7.3.200.0060.00919.39
7.3.190.0140.00316.48
7.3.180.0040.01116.25
7.3.170.0100.00716.35
7.3.160.0090.01216.45
7.3.130.0070.01114.45
7.3.120.0050.01214.75
7.3.110.0120.00614.76
7.3.100.0080.00714.80
7.3.90.0050.00814.69
7.3.80.0070.00714.79
7.3.70.0070.01114.71
7.3.60.0050.00714.63
7.3.50.0050.01114.53
7.3.40.0100.00714.65
7.3.30.0110.00314.77
7.3.20.0020.00816.52
7.3.10.0070.00816.25
7.3.00.0120.00716.52
7.2.330.0120.01016.62
7.2.320.0030.01416.51
7.2.310.0080.00816.65
7.2.300.0120.00616.28
7.2.290.0110.00616.62
7.2.260.0040.01515.21
7.2.250.0090.00915.09
7.2.240.0030.01414.88
7.2.230.0070.00914.95
7.2.220.0060.01015.12
7.2.210.0060.00915.19
7.2.200.0030.00915.08
7.2.190.0070.00715.03
7.2.180.0060.00914.99
7.2.170.0100.00715.01
7.2.160.0060.00614.95
7.2.150.0070.00716.85
7.2.140.0120.00316.84
7.2.130.0140.00316.72
7.2.120.0160.00716.69
7.2.110.0100.00816.72
7.2.100.0150.00816.78
7.2.90.0140.00716.48
7.2.80.0120.00716.62
7.2.70.0250.00916.77
7.2.60.0110.00916.70
7.2.50.0060.01016.79
7.2.40.0230.01416.87
7.2.30.0100.00616.73
7.2.20.0070.00716.67
7.2.10.0130.00416.95
7.2.00.0050.00817.60
7.1.330.0080.00715.74
7.1.320.0070.00715.57
7.1.310.0070.00715.77
7.1.300.0050.00615.58
7.1.290.0090.00515.56
7.1.280.0100.00415.56
7.1.270.0060.00915.59
7.1.260.0050.00815.70
7.1.250.0150.00815.41
7.1.240.0030.01015.67
7.1.230.0090.00615.80
7.1.220.0090.00615.68
7.1.210.0050.00515.63
7.1.200.0030.00615.46
7.1.190.0070.00315.67
7.1.180.0060.00315.72
7.1.170.0030.00615.48
7.1.160.0000.01615.84
7.1.150.0120.00015.66
7.1.140.0000.01715.75
7.1.130.0000.01415.89
7.1.120.0000.01715.64
7.1.110.0060.00615.57
7.1.100.0150.00315.80
7.1.90.0000.01315.49
7.1.80.0050.00515.80
7.1.70.0050.00416.47
7.1.60.0020.01317.68
7.1.50.0110.00816.30
7.1.40.0040.00715.70
7.1.30.0070.00715.58
7.1.20.0030.00615.64
7.1.10.0090.00615.49
7.1.00.0040.04219.01
7.0.330.0040.00415.46
7.0.320.0080.00415.16
7.0.310.0040.00815.39
7.0.300.0030.01015.30
7.0.290.0030.00815.28
7.0.280.0070.00315.30
7.0.270.0000.01515.48
7.0.260.0030.00715.09
7.0.250.0040.00715.27
7.0.240.0070.00715.41
7.0.230.0090.00015.30
7.0.220.0090.00315.34
7.0.210.0030.01015.21
7.0.200.0020.00915.93
7.0.190.0060.00315.22
7.0.180.0040.00715.31
7.0.170.0080.00415.32
7.0.160.0040.01114.98
7.0.150.0060.00615.35
7.0.140.0070.03718.79
7.0.130.0070.00715.23
7.0.120.0070.00715.08
7.0.110.0000.01515.16
7.0.100.0060.00315.29
7.0.90.0070.00715.21
7.0.80.0100.00315.29
7.0.70.0080.00315.13
7.0.60.0080.04017.71
7.0.50.0090.01916.56
7.0.40.0110.03016.79
7.0.30.0190.04216.73
7.0.20.0160.02016.79
7.0.10.0040.02716.79
7.0.00.0020.03816.64
5.6.400.0000.01414.50
5.6.390.0000.00814.40
5.6.380.0060.00314.11
5.6.370.0060.01014.18
5.6.360.0060.00914.51
5.6.350.0100.00614.50
5.6.340.0130.00014.09
5.6.330.0090.00314.16
5.6.320.0030.01014.42
5.6.310.0040.01114.56
5.6.300.0030.00914.50
5.6.290.0000.01214.38
5.6.280.0070.03717.77
5.6.270.0040.01414.55
5.6.260.0030.00614.47
5.6.250.0000.01114.65
5.6.240.0040.01114.26
5.6.230.0090.00614.43
5.6.220.0030.00814.67
5.6.210.0070.04217.36
5.6.200.0030.03316.15
5.6.190.0050.04617.27
5.6.180.0140.04017.71
5.6.170.0170.02017.56
5.6.160.0050.02617.54
5.6.150.0040.02316.25
5.6.140.0040.02216.18
5.6.130.0050.03216.38
5.6.120.0060.04317.69
5.6.110.0050.03017.70
5.6.100.0060.04617.56
5.6.90.0110.04017.70
5.6.80.0110.03917.19
5.6.70.0060.00614.23
5.6.60.0030.01014.11
5.6.50.0060.01014.37
5.6.40.0040.00414.19
5.6.30.0040.00814.12
5.6.20.0030.00914.16
5.6.10.0030.00914.24
5.6.00.0060.00314.18
5.5.380.0090.00314.51
5.5.370.0070.00714.05
5.5.360.0080.00414.21
5.5.350.0100.02117.33
5.5.340.0050.04815.99
5.5.330.0080.02217.28
5.5.320.0170.04217.43
5.5.310.0120.02717.41
5.5.300.0010.03215.92
5.5.290.0030.04616.21
5.5.280.0020.02617.61
5.5.270.0060.04317.49
5.5.260.0050.02317.63
5.5.250.0170.03517.50
5.5.240.0180.02517.18
5.5.230.0030.01114.24
5.5.220.0040.00414.11
5.5.210.0030.01314.17
5.5.200.0050.00514.38
5.5.190.0060.00313.91
5.5.180.0030.01014.29
5.5.170.0000.00914.39
5.5.160.0060.00614.15
5.5.150.0100.00714.20
5.5.140.0050.00514.21
5.5.130.0100.00314.34
5.5.120.0000.00914.27
5.5.110.0060.00614.22
5.5.100.0060.00913.88
5.5.90.0030.01014.08
5.5.80.0040.00814.30
5.5.70.0060.00314.10
5.5.60.0030.01013.91
5.5.50.0100.00714.27
5.5.40.0040.00714.03
5.5.30.0030.00914.32
5.5.20.0030.00614.23
5.5.10.0030.00713.96
5.5.00.0030.00913.93
5.4.450.0130.02821.56
5.4.440.0280.03022.09
5.4.430.0130.02622.09
5.4.420.0460.02322.09
5.4.410.0280.02322.09
5.4.400.0200.02222.08
5.4.390.0200.02622.08
5.4.380.0180.02815.83
5.4.370.0300.03615.86
5.4.360.0150.04215.69
5.4.350.0170.04015.85
5.4.340.0230.02515.79
5.4.330.0000.00712.97
5.4.320.0030.02212.73
5.4.310.0030.02512.73
5.4.300.0030.02312.74
5.4.290.0040.02212.73
5.4.280.0080.02112.67
5.4.270.0070.02012.67
5.4.260.0060.03012.67
5.4.250.0050.03312.67
5.4.240.0070.02912.67
5.4.230.0060.03212.66
5.4.220.0090.02812.66
5.4.210.0040.02912.67
5.4.200.0050.03212.66
5.4.190.0070.02812.66
5.4.180.0060.03012.66
5.4.170.0100.03212.67
5.4.160.0110.02812.67
5.4.150.0070.02812.66
5.4.140.0100.03112.51
5.4.130.0070.03512.50
5.4.120.0050.02512.48
5.4.110.0060.02112.48
5.4.100.0070.02312.48
5.4.90.0060.02512.47
5.4.80.0070.02812.48
5.4.70.0060.02412.47
5.4.60.0060.02212.47
5.4.50.0060.02212.47
5.4.40.0080.02112.47
5.4.30.0100.01912.47
5.4.20.0060.02112.47
5.4.10.0070.02112.47
5.4.00.0070.02512.21
5.3.290.0040.02512.88
5.3.280.0050.03212.84
5.3.270.0070.02912.85
5.3.260.0090.03712.85
5.3.250.0140.03912.85
5.3.240.0120.03712.84
5.3.230.0050.03712.84
5.3.220.0090.03212.82
5.3.210.0080.02612.83
5.3.200.0060.02712.82
5.3.190.0080.02012.82
5.3.180.0080.02512.82
5.3.170.0040.02512.82
5.3.160.0060.02612.82
5.3.150.0070.03012.82
5.3.140.0080.02712.81
5.3.130.0080.02312.81
5.3.120.0080.02312.81
5.3.110.0060.02812.81
5.3.100.0040.02912.54
5.3.90.0060.02012.53
5.3.80.0040.02412.52
5.3.70.0040.02512.52
5.3.60.0060.02012.52
5.3.50.0070.02812.48
5.3.40.0090.02512.48
5.3.30.0040.02212.45
5.3.20.0020.02412.33
5.3.10.0060.02312.32
5.3.00.0070.02112.31
5.2.170.0070.0319.15
5.2.160.0070.0309.15
5.2.150.0090.0349.16
5.2.140.0070.0439.15
5.2.130.0090.0349.10
5.2.120.0060.0339.11
5.2.110.0060.0319.11
5.2.100.0080.0319.11
5.2.90.0040.0459.11
5.2.80.0060.0429.11
5.2.70.0060.0339.11
5.2.60.0060.0349.06
5.2.50.0070.0329.03
5.2.40.0080.0289.00
5.2.30.0150.0448.99
5.2.20.0090.0488.97
5.2.10.0100.0468.90
5.2.00.0070.0458.76
5.1.60.0060.0388.05
5.1.50.0090.0408.04
5.1.40.0070.0348.03
5.1.30.0070.0288.38
5.1.20.0060.0278.40
5.1.10.0090.0438.12
5.1.00.0050.0468.12
5.0.50.0050.0296.60
5.0.40.0060.0316.45
5.0.30.0050.0486.27
5.0.20.0070.0326.25
5.0.10.0060.0316.22
5.0.00.0100.0436.21
4.4.90.0080.0224.78
4.4.80.0130.0244.76
4.4.70.0080.0364.75
4.4.60.0050.0154.75
4.4.50.0050.0154.77
4.4.40.0030.0264.71
4.4.30.0030.0164.76
4.4.20.0010.0184.84
4.4.10.0040.0154.85
4.4.00.0040.0244.76
4.3.110.0030.0164.67
4.3.100.0050.0134.67
4.3.90.0020.0164.63
4.3.80.0030.0244.59
4.3.70.0040.0224.63
4.3.60.0040.0214.63
4.3.50.0020.0244.63
4.3.40.0080.0504.54
4.3.30.0100.0413.27
4.3.20.0100.0453.25
4.3.10.0040.0233.22
4.3.00.0030.01731.20

preferences:
45.96 ms | 401 KiB | 5 Q