3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait test{ public function __construct() { echo 'test'; } } abstract class myIntermediateClass{ use test; } class myClass extends myIntermediateClass{ public function __construct(){ echo 'myClass'; parent::__construct(); } } new myClass();

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.5.30.0110.00720.71
8.5.20.0120.00519.39
8.5.10.0170.00616.59
8.5.00.0120.00919.98
8.4.180.0100.01219.64
8.4.170.0140.00820.52
8.4.160.0120.01023.92
8.4.150.0080.00517.77
8.4.140.0140.00817.48
8.4.130.0120.00817.77
8.4.120.0110.00920.69
8.4.110.0080.01218.42
8.4.100.0060.00318.82
8.4.90.0120.00820.82
8.4.80.0090.01018.86
8.4.70.0100.00918.86
8.4.60.0030.00519.03
8.4.50.0110.00818.47
8.4.40.0130.00317.81
8.4.30.0090.00017.68
8.4.20.0090.00019.33
8.4.10.0000.00917.25
8.3.300.0110.01220.85
8.3.290.0090.01120.71
8.3.280.0120.00818.19
8.3.270.0140.00516.56
8.3.260.0050.00316.51
8.3.250.0050.00418.74
8.3.240.0110.00816.80
8.3.230.0150.00516.41
8.3.220.0110.00819.03
8.3.210.0100.01016.51
8.3.200.0120.00716.38
8.3.190.0050.00617.18
8.3.180.0100.00918.87
8.3.170.0150.00316.73
8.3.160.0120.00618.98
8.3.150.0110.00718.88
8.3.140.0080.00018.86
8.3.130.0110.00016.67
8.3.120.0110.00818.85
8.3.110.0110.00020.94
8.3.100.0050.00324.06
8.3.90.0050.00326.77
8.3.80.0000.00918.43
8.3.70.0070.01416.75
8.3.60.0070.00718.30
8.3.50.0070.00617.37
8.3.40.0140.00018.76
8.3.30.0040.01118.51
8.3.20.0080.00021.73
8.3.10.0080.00023.43
8.3.00.0000.00721.90
8.2.300.0130.00722.06
8.2.290.0110.00818.63
8.2.280.0090.01018.34
8.2.270.0070.01116.83
8.2.260.0090.00916.85
8.2.250.0000.01418.18
8.2.240.0160.00318.91
8.2.230.0030.00522.58
8.2.220.0030.00637.54
8.2.210.0080.00826.77
8.2.200.0070.00318.29
8.2.190.0110.00716.58
8.2.180.0120.00325.92
8.2.170.0140.00018.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00720.26
8.2.120.0040.00426.35
8.2.110.0070.00322.26
8.2.100.0080.00417.78
8.2.90.0030.00617.75
8.2.80.0040.00417.97
8.2.70.0000.00817.38
8.2.60.0040.00417.78
8.2.50.0080.00018.10
8.2.40.0070.00020.50
8.2.30.0000.00819.25
8.2.20.0000.00718.07
8.2.10.0000.00717.92
8.2.00.0030.00617.88
8.1.340.0170.00617.57
8.1.330.0090.01015.87
8.1.320.0110.00817.66
8.1.310.0060.00315.99
8.1.300.0160.00317.89
8.1.290.0030.00630.84
8.1.280.0100.00725.92
8.1.270.0080.00023.65
8.1.260.0040.00426.35
8.1.250.0030.00728.09
8.1.240.0030.00622.54
8.1.230.0130.00019.17
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00816.99
8.1.180.0000.00818.10
8.1.170.0030.00618.71
8.1.160.0040.00418.75
8.1.150.0040.00418.83
8.1.140.0000.00718.99
8.1.130.0050.00219.08
8.1.120.0000.00717.36
8.1.110.0050.00317.43
8.1.100.0000.00817.36
8.1.90.0070.00017.43
8.1.80.0040.00417.39
8.1.70.0070.00017.41
8.1.60.0050.00517.42
8.1.50.0000.00817.51
8.1.40.0000.00817.37
8.1.30.0000.00717.52
8.1.20.0030.00617.55
8.1.10.0000.00717.56
8.1.00.0040.00417.36
8.0.300.0000.00719.96
8.0.290.0030.00616.75
8.0.280.0050.00318.53
8.0.270.0040.00417.17
8.0.260.0000.00716.87
8.0.250.0070.00016.85
8.0.240.0030.00316.86
8.0.230.0000.00916.87
8.0.220.0050.00316.82
8.0.210.0070.00016.87
8.0.200.0100.00016.86
8.0.190.0040.00416.90
8.0.180.0080.00016.89
8.0.170.0060.00316.90
8.0.160.0030.00316.89
8.0.150.0000.00816.82
8.0.140.0040.00416.75
8.0.130.0030.00313.25
8.0.120.0030.00516.80
8.0.110.0000.00716.79
8.0.100.0000.00716.73
8.0.90.0030.00516.62
8.0.80.0090.00616.84
8.0.70.0000.00716.83
8.0.60.0050.00216.70
8.0.50.0000.00816.71
8.0.30.0100.00916.95
8.0.20.0090.01217.40
8.0.10.0000.00716.91
8.0.00.0070.01116.65
7.4.330.0060.00016.67
7.4.320.0000.00616.55
7.4.300.0040.00416.54
7.4.290.0050.00316.52
7.4.280.0080.00316.52
7.4.270.0040.00416.58
7.4.260.0040.00416.57
7.4.250.0030.00516.51
7.4.240.0040.00416.45
7.4.230.0030.00316.57
7.4.220.0000.00716.28
7.4.210.0130.00416.46
7.4.200.0040.00416.61
7.4.160.0100.00616.45
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0140.00416.61
7.4.120.0100.01016.46
7.4.110.0070.01116.46
7.4.100.0070.01016.44
7.4.90.0100.01316.41
7.4.80.0040.01419.39
7.4.70.0200.00316.29
7.4.60.0090.00916.43
7.4.50.0040.00916.48
7.4.40.0120.00916.45
7.4.30.0120.00316.51
7.4.00.0070.01014.72
7.3.330.0060.00013.23
7.3.320.0020.00213.36
7.3.310.0030.00316.20
7.3.300.0030.00316.16
7.3.290.0080.00816.26
7.3.280.0030.01316.28
7.3.270.0000.01717.40
7.3.260.0110.00816.44
7.3.250.0110.00716.38
7.3.240.0110.00916.41
7.3.230.0150.00316.48
7.3.210.0030.01316.31
7.3.200.0100.00616.52
7.3.190.0060.01016.46
7.3.180.0080.00816.54
7.3.170.0070.01016.20
7.3.160.0100.00716.46
7.3.120.0140.00014.81
7.3.110.0040.01414.91
7.3.100.0030.01614.58
7.3.90.0110.00714.63
7.3.80.0070.00714.67
7.3.70.0100.00714.71
7.3.60.0060.00914.51
7.3.50.0090.00314.83
7.3.40.0000.01514.28
7.3.30.0000.01514.68
7.3.20.0000.01516.55
7.3.10.0060.00616.66
7.3.00.0050.00816.60
7.2.330.0030.01516.54
7.2.320.0130.01016.73
7.2.310.0100.00716.39
7.2.300.0090.00616.28
7.2.290.0050.01116.63
7.2.250.0060.01015.15
7.2.240.0150.00614.78
7.2.230.0140.00714.99
7.2.220.0100.01015.10
7.2.210.0030.01314.61
7.2.200.0060.01315.01
7.2.190.0030.01314.82
7.2.180.0100.00614.90
7.2.170.0090.00615.03
7.2.130.0040.01216.75
7.2.120.0080.00616.65
7.2.110.0000.01216.69
7.2.100.0010.00916.58
7.2.90.0050.00916.81
7.2.80.0090.00516.73
7.2.70.0040.00716.77
7.2.60.0080.00816.77
7.2.50.0050.00516.81
7.2.40.0060.00816.73
7.2.30.0060.00716.84
7.2.20.0060.00916.67
7.2.10.0060.00316.68
7.2.00.0070.00717.71
7.1.330.0040.01115.77
7.1.320.0090.00315.65
7.1.310.0070.01015.88
7.1.300.0040.01515.39
7.1.290.0040.00815.75
7.1.280.0110.00415.47
7.1.270.0030.01415.67
7.1.260.0040.01115.74
7.1.250.0030.00815.67
7.1.200.0070.00715.81
7.1.120.0080.00518.70
7.1.110.0030.01118.16
7.1.100.0070.00718.09
7.1.90.0100.00318.00
7.1.80.0070.01417.59
7.1.70.0060.00617.05
7.1.60.0130.01335.02
7.1.50.0250.01334.52
7.1.40.0160.01334.16
7.1.30.0220.01234.22
7.1.20.0190.00934.31
7.1.10.0070.00716.63
7.1.00.0060.00916.45

preferences:
53.07 ms | 1555 KiB | 5 Q