3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Attributes { protected function attributes() : string { #========== COMMENT: BUILD ELEMENT ATTRIBUTE(S); $strReturn = 'hello'; return $strReturn; } } class UL { use Attributes; protected function attributes() : string { $strReturn = 'wtf'; return $strReturn; } public function say() :string { return $this->attributes(); } } $objUL = new UL(); echo $objUL->say();

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.70.0120.00318.43
8.3.60.0070.00716.49
8.3.50.0140.00317.36
8.3.40.0110.00318.85
8.3.30.0040.01118.71
8.3.20.0040.00420.18
8.3.10.0030.00621.95
8.3.00.0040.00423.65
8.2.190.0120.00916.75
8.2.180.0060.00918.04
8.2.170.0070.00722.96
8.2.160.0130.00720.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00320.91
8.2.110.0070.00420.94
8.2.100.0030.00717.91
8.2.90.0000.00917.78
8.2.80.0000.00817.97
8.2.70.0040.00417.93
8.2.60.0080.00018.16
8.2.50.0030.00618.10
8.2.40.0050.00322.31
8.2.30.0000.00719.13
8.2.20.0050.00318.11
8.2.10.0030.00618.03
8.2.00.0030.00618.16
8.1.280.0100.00725.92
8.1.270.0080.00020.29
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0090.00022.65
8.1.230.0100.00322.75
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00917.22
8.1.190.0030.00517.23
8.1.180.0050.00318.10
8.1.170.0040.00418.56
8.1.160.0000.00718.88
8.1.150.0000.00820.12
8.1.140.0070.00017.71
8.1.130.0000.00717.44
8.1.120.0000.00717.32
8.1.110.0000.00717.46
8.1.100.0050.00317.48
8.1.90.0000.00717.34
8.1.80.0000.00917.37
8.1.70.0040.00417.44
8.1.60.0080.00017.64
8.1.50.0080.00017.46
8.1.40.0030.00517.54
8.1.30.0060.00317.68
8.1.20.0000.00817.48
8.1.10.0000.00817.47
8.1.00.0000.00917.44
8.0.300.0050.00319.65
8.0.290.0060.00316.75
8.0.280.0070.00018.49
8.0.270.0070.00017.27
8.0.260.0060.00016.75
8.0.250.0030.00316.92
8.0.240.0000.00816.91
8.0.230.0040.00416.84
8.0.220.0000.00716.86
8.0.210.0030.00516.91
8.0.200.0030.00616.88
8.0.190.0090.00016.95
8.0.180.0000.00717.00
8.0.170.0040.00416.89
8.0.160.0040.00416.90
8.0.150.0030.00616.90
8.0.140.0040.00416.81
8.0.130.0030.00313.27
8.0.120.0080.00016.82
8.0.110.0040.00416.88
8.0.100.0000.00816.73
8.0.90.0040.00416.79
8.0.80.0030.01916.92
8.0.70.0050.00217.00
8.0.60.0040.00416.85
8.0.50.0000.00716.71
8.0.30.0060.01217.15
8.0.20.0120.00817.40
8.0.10.0000.00717.04
8.0.00.0170.00016.55
7.4.330.0000.00415.55
7.4.320.0000.00616.61
7.4.300.0030.00316.66
7.4.290.0080.00016.60
7.4.280.0080.00016.61
7.4.270.0030.00316.57
7.4.260.0000.00716.35
7.4.250.0000.00816.59
7.4.240.0000.00716.62
7.4.230.0030.00316.61
7.4.220.0110.00716.56
7.4.210.0070.00716.55
7.4.200.0030.00416.61
7.4.150.0220.00017.40
7.4.140.0110.00817.86
7.4.130.0030.01816.63
7.4.120.0100.00816.56
7.4.110.0120.00616.54
7.4.100.0100.00716.56
7.4.90.0060.01016.38
7.4.80.0060.00919.39
7.4.70.0070.01116.43
7.4.60.0070.01016.54
7.4.50.0140.00316.53
7.4.40.0120.00616.54
7.4.30.0170.00616.56
7.4.00.0030.01314.93
7.3.330.0050.00013.10
7.3.320.0000.00613.16
7.3.310.0030.00316.35
7.3.300.0030.00316.09
7.3.290.0030.00316.10
7.3.280.0090.00916.22
7.3.270.0210.00317.40
7.3.260.0170.00316.37
7.3.250.0140.00316.34
7.3.240.0110.00616.29
7.3.230.0100.01316.47
7.3.210.0080.00916.30
7.3.200.0090.00916.40
7.3.190.0100.00616.32
7.3.180.0120.00916.23
7.3.170.0040.01316.35
7.3.160.0120.00316.32
7.3.120.0090.00614.79
7.3.110.0070.00914.66
7.3.100.0060.00614.75
7.3.90.0070.00914.69
7.3.80.0050.00614.66
7.3.70.0030.01114.86
7.3.60.0090.00414.82
7.3.50.0030.00814.71
7.3.40.0020.00914.72
7.3.30.0110.00514.76
7.3.20.0040.01216.48
7.3.10.0090.00316.31
7.3.00.0050.00716.57
7.2.330.0080.00916.56
7.2.320.0090.00916.57
7.2.310.0070.01016.32
7.2.300.0070.01016.61
7.2.290.0110.01116.65
7.2.250.0140.00715.15
7.2.240.0060.01114.88
7.2.230.0070.01214.97
7.2.220.0040.01315.14
7.2.210.0060.00615.02
7.2.200.0000.01314.93
7.2.190.0100.00314.99
7.2.180.0100.00414.87
7.2.170.0080.00715.02
7.2.160.0030.00915.11
7.2.150.0000.01816.94
7.2.140.0060.01016.89
7.2.130.0090.00716.78
7.2.120.0080.00616.78
7.2.110.0060.00616.63
7.2.100.0080.00616.70
7.2.90.0100.00316.77
7.2.80.0070.00616.90
7.2.70.0060.00816.75
7.2.60.0030.00816.74
7.2.50.0060.00716.76
7.2.40.0100.00516.65
7.2.30.0050.01216.77
7.2.20.0090.00716.76
7.2.10.0050.01016.78
7.2.00.0060.00716.78
7.1.330.0040.00815.60
7.1.320.0050.00715.74
7.1.310.0070.00515.57
7.1.300.0060.00915.82
7.1.290.0050.01115.77
7.1.280.0140.00215.86
7.1.270.0080.00615.85
7.1.260.0070.00615.54
7.1.250.0090.01015.65
7.1.200.0090.00315.89
7.1.100.0180.00317.67
7.1.90.0060.01318.02
7.1.80.0060.01317.64
7.1.70.0110.00716.84
7.1.60.0160.01034.73
7.1.50.0380.01734.56
7.1.40.0190.01934.47
7.1.30.0240.01434.44
7.1.20.0210.01834.39
7.1.10.0060.01216.41
7.1.00.0030.01516.54
7.0.240.0060.01217.60
7.0.230.0060.01217.67
7.0.220.0040.01517.73
7.0.210.0030.01416.43
7.0.200.0030.01516.61
7.0.190.0030.01416.73
7.0.180.0100.01016.38
7.0.170.0060.01216.09
7.0.160.0150.00316.18
7.0.150.0030.01515.93
7.0.140.0130.00616.15
7.0.130.0060.01216.32
7.0.120.0030.01716.39
7.0.110.0030.01616.12
7.0.100.0130.00616.16
7.0.90.0030.01416.09
7.0.80.0070.01016.23
7.0.70.0110.00716.13
7.0.60.0120.00616.12
7.0.50.0060.01316.28
7.0.40.0070.01016.24
7.0.30.0100.00716.40
7.0.20.0030.01516.25
7.0.10.0120.00416.32
7.0.00.0060.01016.43

preferences:
76.13 ms | 401 KiB | 5 Q