3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T1 { public function __construct(){ echo "t1 trait"; parent::__construct(); } } trait T2 { public function __construct(){ echo "t2 trait"; parent::__construct(); } } class Test { use T1, T2; public function __construct(){ echo "test class"; } } $t = new Test();

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.0150.00616.75
8.3.50.0130.00822.05
8.3.40.0080.00618.89
8.3.30.0030.01418.71
8.3.20.0040.00420.34
8.3.10.0000.00723.48
8.3.00.0050.00319.26
8.2.180.0100.01018.28
8.2.170.0070.00722.96
8.2.160.0070.00720.51
8.2.150.0040.00424.18
8.2.140.0140.00024.66
8.2.130.0000.00917.50
8.2.120.0040.00426.35
8.2.110.0040.00420.49
8.2.100.0040.00817.80
8.2.90.0000.00819.13
8.2.80.0000.00817.97
8.2.70.0040.00417.25
8.2.60.0110.00017.79
8.2.50.0040.00418.07
8.2.40.0040.00419.53
8.2.30.0070.00020.62
8.2.20.0030.00717.75
8.2.10.0000.00717.93
8.2.00.0000.00917.99
8.1.280.0070.00725.92
8.1.270.0040.00423.92
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00323.84
8.1.230.0000.01019.42
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0000.00718.10
8.1.170.0040.00418.63
8.1.160.0040.00421.99
8.1.150.0000.00718.86
8.1.140.0080.00019.57
8.1.130.0030.00317.70
8.1.120.0000.00717.44
8.1.110.0040.00417.48
8.1.100.0040.00417.44
8.1.90.0050.00317.49
8.1.80.0030.00617.48
8.1.70.0000.00817.38
8.1.60.0060.00317.48
8.1.50.0050.00517.55
8.1.40.0040.00417.46
8.1.30.0080.00017.75
8.1.20.0030.00617.48
8.1.10.0050.00317.48
8.1.00.0060.00317.53
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0000.00717.25
8.0.260.0060.00017.33
8.0.250.0020.00516.85
8.0.240.0000.00816.98
8.0.230.0000.00716.94
8.0.220.0000.00716.76
8.0.210.0070.00416.87
8.0.200.0000.00816.97
8.0.190.0070.00016.93
8.0.180.0070.00016.91
8.0.170.0040.00416.92
8.0.160.0030.00316.81
8.0.150.0000.00716.87
8.0.140.0030.00616.70
8.0.130.0030.00313.38
8.0.120.0040.00416.77
8.0.110.0030.00516.87
8.0.100.0070.00016.79
8.0.90.0070.00016.84
8.0.80.0040.01116.92
8.0.70.0040.00416.77
8.0.60.0040.00416.75
8.0.50.0050.00316.84
8.0.30.0090.00916.97
8.0.20.0080.01117.40
8.0.10.0040.00416.86
8.0.00.0080.00816.70
7.4.330.0020.00216.84
7.4.320.0000.00616.49
7.4.300.0000.00716.54
7.4.290.0070.00016.46
7.4.280.0040.00416.62
7.4.270.0030.00316.38
7.4.260.0000.00716.63
7.4.250.0040.00416.42
7.4.240.0020.00516.63
7.4.230.0030.00316.34
7.4.220.0120.01316.55
7.4.210.0120.00916.55
7.4.200.0030.00316.36
7.4.160.0030.01216.46
7.4.150.0130.00317.40
7.4.140.0150.00517.86
7.4.130.0190.00616.44
7.4.120.0130.00416.55
7.4.110.0070.01016.47
7.4.100.0110.00616.34
7.4.90.0070.01416.52
7.4.80.0140.00319.39
7.4.70.0150.00316.59
7.4.60.0060.01016.48
7.4.50.0030.01116.60
7.4.40.0070.01016.47
7.4.30.0090.00916.50
7.4.00.0070.01014.99
7.3.330.0000.00513.21
7.3.320.0050.00013.10
7.3.310.0000.00716.13
7.3.300.0000.00716.09
7.3.290.0060.01116.22
7.3.280.0110.00916.25
7.3.270.0100.00717.40
7.3.260.0130.00316.20
7.3.240.0030.01516.34
7.3.230.0170.00016.51
7.3.210.0080.00916.20
7.3.200.0100.01316.41
7.3.190.0040.01316.44
7.3.180.0120.00316.43
7.3.170.0100.00916.50
7.3.160.0040.01616.29
7.2.330.0130.01216.31
7.2.320.0100.00716.69
7.2.310.0140.00416.62
7.2.300.0130.00316.66
7.2.290.0090.00916.74
7.2.80.0070.00516.55
7.2.00.0040.00819.23
7.1.200.0090.00315.71
7.1.100.0040.00817.97
7.1.70.0000.00716.73
7.1.60.0070.01619.48
7.1.50.0070.01416.83
7.1.00.0070.07322.51
7.0.200.0220.00716.19
7.0.60.0030.08719.96
7.0.50.0070.04317.86
7.0.40.0030.04320.14
7.0.30.0230.07720.07
7.0.20.0100.04720.15
7.0.10.0100.09020.16
7.0.00.0130.08020.30
5.6.210.0030.06320.61
5.6.200.0070.08018.27
5.6.190.0130.08020.67
5.6.180.0370.07020.47
5.6.170.0130.05320.58
5.6.160.0070.08720.43
5.6.150.0100.08018.15
5.6.140.0070.08318.21
5.6.130.0000.05318.15
5.6.120.0000.05021.14
5.6.110.0130.08021.05
5.6.100.0070.05320.89
5.6.90.0000.05021.04
5.6.80.0030.04020.36
5.5.350.2600.03720.46
5.5.340.0100.04017.98
5.5.330.0170.07720.30
5.5.320.0100.07720.52
5.5.310.0230.03720.29
5.5.300.0030.06017.95
5.5.290.0070.08718.02
5.5.280.0000.09020.88
5.5.270.0030.04320.88
5.5.260.0130.07020.67
5.5.250.0200.07020.78
5.5.240.0300.06720.16

preferences:
52.82 ms | 401 KiB | 5 Q