3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T1 { function a1() { return $this->var; } } trait T2 { use T1; function a2() { return $this->a1(); } } class A { use T2; protected $var = 3; } $a = new A; echo $a->a2();

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.4.20.0100.01017.46
8.4.10.0060.00317.64
8.3.150.0040.01516.72
8.3.140.0070.00717.18
8.3.130.0000.00818.46
8.3.120.0000.01018.92
8.3.110.0130.00720.94
8.3.100.0030.00618.25
8.3.90.0080.00026.77
8.3.80.0060.00316.63
8.3.70.0090.00616.58
8.3.60.0120.00318.30
8.3.50.0120.00921.22
8.3.40.0110.00718.67
8.3.30.0000.01418.88
8.3.20.0040.00420.33
8.3.10.0050.00323.48
8.3.00.0090.00019.25
8.2.260.0040.00416.45
8.2.250.0060.00316.80
8.2.240.0060.00319.13
8.2.230.0040.00722.58
8.2.220.0050.00524.06
8.2.210.0070.01126.77
8.2.200.0160.00817.57
8.2.190.0120.00316.58
8.2.180.0070.00716.50
8.2.170.0140.00722.96
8.2.160.0080.00818.70
8.2.150.0030.00625.66
8.2.140.0070.00024.66
8.2.130.0030.00526.16
8.2.120.0080.00020.94
8.2.110.0110.00022.20
8.2.100.0030.00917.78
8.2.90.0040.00419.53
8.2.80.0030.00619.17
8.2.70.0040.00417.50
8.2.60.0040.00417.50
8.2.50.0090.00017.63
8.2.40.0040.00419.34
8.2.30.0000.00819.24
8.2.20.0070.00017.68
8.2.10.0000.00818.11
8.2.00.0070.00017.68
8.1.310.0040.00418.29
8.1.300.0000.00919.62
8.1.290.0080.00430.84
8.1.280.0080.00825.92
8.1.270.0080.00022.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00722.65
8.1.230.0080.00420.97
8.1.220.0030.00517.74
8.1.210.0000.00819.04
8.1.200.0030.00517.22
8.1.190.0050.00317.23
8.1.180.0000.00718.10
8.1.170.0060.00317.62
8.1.160.0040.00419.02
8.1.150.0080.00018.86
8.1.140.0040.00417.51
8.1.130.0040.00417.79
8.1.120.0000.00717.42
8.1.110.0000.00817.48
8.1.100.0040.00417.43
8.1.90.0030.00517.29
8.1.80.0070.00017.41
8.1.70.0040.00417.34
8.1.60.0040.00417.55
8.1.50.0060.00317.48
8.1.40.0070.00017.56
8.1.30.0000.00917.54
8.1.20.0000.00817.55
8.1.10.0080.00017.46
8.1.00.0060.00317.35
8.0.300.0050.00220.13
8.0.290.0100.00516.63
8.0.280.0040.00418.43
8.0.270.0000.00717.29
8.0.260.0000.00617.20
8.0.250.0060.00016.89
8.0.240.0070.00016.91
8.0.230.0040.00416.94
8.0.220.0000.00716.95
8.0.210.0000.00716.87
8.0.200.0080.00016.93
8.0.190.0040.00416.95
8.0.180.0030.00516.80
8.0.170.0000.00816.80
8.0.160.0070.00316.90
8.0.150.0070.00016.87
8.0.140.0050.00316.74
8.0.130.0030.00313.30
8.0.120.0070.00016.87
8.0.110.0040.00416.85
8.0.100.0030.00316.83
8.0.90.0040.00416.90
8.0.80.0090.01016.90
8.0.70.0000.01716.93
8.0.60.0140.00316.86
8.0.50.0120.00416.82
8.0.30.0140.00717.11
8.0.20.0110.01117.26
8.0.10.0040.01217.04
8.0.00.0040.01316.85
7.4.330.0040.00015.02
7.4.320.0030.00316.57
7.4.300.0070.00016.41
7.4.290.0000.00716.60
7.4.280.0060.00316.39
7.4.270.0050.00216.61
7.4.260.0040.00416.59
7.4.250.0070.00016.63
7.4.240.0030.00516.49
7.4.230.0030.00316.52
7.4.220.0040.00416.59
7.4.210.0060.01116.57
7.4.200.0090.00616.55
7.4.190.0120.00416.57
7.4.180.0030.01216.61
7.4.160.0030.01216.67
7.4.150.0130.00316.95
7.4.140.0100.00817.44
7.4.130.0050.01016.51
7.4.120.0080.00816.48
7.4.110.0060.01116.55
7.4.100.0050.01216.52
7.4.90.0060.01116.53
7.4.80.0080.01117.91
7.4.70.0010.01416.46
7.4.60.0110.00816.46
7.4.50.0050.00816.39
7.4.40.0110.00516.38
7.4.30.0090.00916.48
7.4.20.0040.01316.55
7.4.10.0050.01316.54
7.4.00.0090.00615.63
7.3.330.0030.00313.27
7.3.320.0050.00013.25
7.3.310.0000.00716.29
7.3.300.0030.00316.12
7.3.290.0060.00816.20
7.3.280.0100.00616.24
7.3.270.0100.00916.83
7.3.260.0110.00616.29
7.3.250.0120.00716.29
7.3.240.0090.00916.40
7.3.230.0110.00916.30
7.3.220.0060.01116.25
7.3.210.0080.00916.24
7.3.200.0150.00217.77
7.3.190.0130.00816.23
7.3.180.0040.01316.37
7.3.170.0090.00816.28
7.3.160.0120.01016.21
7.3.150.0090.00916.23
7.3.140.0120.00816.18
7.3.130.0150.00516.25
7.3.120.0120.00515.55
7.3.110.0060.01015.43
7.3.100.0110.00515.37
7.3.90.0050.00815.43
7.3.80.0080.00815.54
7.3.70.0080.00815.28
7.3.60.0080.00815.18
7.3.50.0050.00915.01
7.3.40.0040.01015.29
7.3.30.0080.00815.24
7.3.20.0060.00815.90
7.3.10.0130.00615.95
7.3.00.0060.00715.81
7.2.340.0100.01416.23
7.2.330.0230.00716.26
7.2.320.0170.01016.29
7.2.310.0150.00616.57
7.2.300.0120.01216.39
7.2.290.0130.01116.31
7.2.280.0170.00916.32
7.2.270.0140.01416.27
7.2.260.0180.00916.24
7.2.250.0200.00516.30
7.2.240.0190.01115.66
7.2.230.0120.01215.50
7.2.220.0150.00615.76
7.2.210.0170.00815.61
7.2.200.0100.00915.59
7.2.190.0080.01115.47
7.2.180.0110.00615.54
7.2.170.0090.01215.46
7.2.160.0130.01215.49
7.2.150.0140.00716.24
7.2.140.0130.00616.21
7.2.130.0080.01216.19
7.2.120.0130.00816.18
7.2.110.0150.01016.14
7.2.100.0130.01216.26
7.2.90.0100.01116.29
7.2.80.0090.00916.32
7.2.70.0130.00716.22
7.2.60.0120.00916.32
7.2.50.0110.00516.35
7.2.40.0100.01116.07
7.2.30.0120.00916.11
7.2.20.0160.00516.17
7.2.10.0220.00416.22
7.2.00.0130.01016.03
7.1.330.0350.00615.67
7.1.320.0100.00815.64
7.1.310.0160.00715.63
7.1.300.0100.01315.00
7.1.290.0110.00814.96
7.1.280.0130.00914.87
7.1.270.0130.00515.07
7.1.260.0380.00314.95
7.1.250.0130.01015.03
7.1.240.0150.00614.27
7.1.230.0220.00314.32
7.1.220.0140.00514.43
7.1.210.0150.00714.53
7.1.200.0150.00414.71
7.1.190.0080.01014.41
7.1.180.0160.00914.35
7.1.170.0210.01014.34
7.1.160.0100.00814.29
7.1.150.0090.01014.51
7.1.140.0420.01314.43
7.1.130.0130.00914.51
7.1.120.0440.01214.54
7.1.110.0160.00814.54
7.1.100.0190.00514.59
7.1.90.0320.00714.53
7.1.80.0130.00614.56
7.1.70.0110.00815.34
7.1.60.0140.00615.39
7.1.50.0170.00815.42
7.1.40.0170.00515.22
7.1.30.0100.01015.28
7.1.20.0210.00815.29
7.1.10.0130.00815.17
7.1.00.0150.00215.29
7.0.330.0140.01114.09
7.0.320.0160.00914.31
7.0.310.0140.01114.28
7.0.300.0120.00814.20
7.0.290.0110.01014.20
7.0.280.0140.00314.25
7.0.270.0120.00614.22
7.0.260.0110.00714.27
7.0.250.0660.00614.26
7.0.240.0140.00914.35
7.0.230.0190.00314.37
7.0.220.0120.00514.28
7.0.210.0150.00914.33
7.0.200.0130.01015.02
7.0.190.0110.01015.13
7.0.180.0130.00714.98
7.0.170.0110.00714.97
7.0.160.0120.00515.03
7.0.150.0110.00714.85
7.0.140.0120.00514.97
7.0.130.0110.00615.19
7.0.120.0090.01115.02
7.0.110.0130.00614.96
7.0.100.0080.00814.91
7.0.90.0120.00714.80
7.0.80.0330.00914.90
7.0.70.0120.00614.94
7.0.60.0130.00914.78
7.0.50.0100.00714.94
7.0.40.0160.00814.32
7.0.30.0130.00614.39
7.0.20.0130.00614.32
7.0.10.0110.00914.38
7.0.00.0110.00614.17
5.6.400.0090.00914.78
5.6.390.0130.00614.83
5.6.380.0140.00614.99
5.6.370.0150.00914.97
5.6.360.0100.00815.08
5.6.350.0100.00915.12
5.6.340.0140.00714.97
5.6.330.0120.00515.06
5.6.320.0110.01115.09
5.6.310.0170.00815.08
5.6.300.0070.02516.99
5.6.290.0070.02116.96
5.6.280.0100.02216.96
5.6.270.0080.02316.99
5.6.260.0170.01516.99
5.6.250.0100.01817.11
5.6.240.0110.02117.00
5.6.230.0110.02517.03
5.6.220.0100.01917.02
5.6.210.0080.02216.96
5.6.200.0080.02617.11
5.6.190.0130.01516.99
5.6.180.0150.01716.99
5.6.170.0130.03116.99
5.6.160.0090.02216.90
5.6.150.0130.02617.04
5.6.140.0110.01617.02
5.6.130.0060.02216.94
5.6.120.0110.02117.06
5.6.110.0080.02616.91
5.6.100.0150.01916.87
5.6.90.0080.02616.85
5.6.80.0160.01516.75
5.6.70.0120.02016.82
5.6.60.0140.01916.83
5.6.50.0090.02016.62
5.6.40.0080.01916.65
5.6.30.0120.01716.60
5.6.20.0120.03216.68
5.6.10.0110.02016.60
5.6.00.0100.01816.67
5.5.380.0130.02115.82
5.5.370.0100.03615.82
5.5.360.0110.02115.96
5.5.350.0150.03315.75
5.5.340.0150.03215.96
5.5.330.0150.01915.95
5.5.320.0120.02116.06
5.5.310.0170.01415.97
5.5.300.0120.01816.17
5.5.290.0130.02215.93
5.5.280.0130.01615.95
5.5.270.0140.01415.86
5.5.260.0140.01916.07
5.5.250.0110.02115.96
5.5.240.0140.01815.81
5.5.230.0130.01915.63
5.5.220.0100.02215.78
5.5.210.0140.01915.86
5.5.200.0090.01915.74
5.5.190.0120.01515.54
5.5.180.0130.01815.71
5.5.170.0120.00714.77
5.5.160.0110.01915.58
5.5.150.0120.01715.66
5.5.140.0080.02415.66
5.5.130.0160.02115.74
5.5.120.0130.01915.68
5.5.110.0110.02015.67
5.5.100.0190.02115.65
5.5.90.0090.02115.79
5.5.80.0110.01815.64
5.5.70.0120.02215.80
5.5.60.0100.03415.67
5.5.50.0130.01915.66
5.5.40.0110.01915.84
5.5.30.0140.01915.58
5.5.20.0080.02215.81
5.5.10.0100.02015.74
5.5.00.0110.02315.66
5.4.450.0120.02014.37
5.4.440.0070.02014.38
5.4.430.0080.02114.34
5.4.420.0080.01714.38
5.4.410.0090.01814.38
5.4.400.0100.01614.14
5.4.390.0110.01814.25
5.4.380.0110.01614.14
5.4.370.0110.01514.24
5.4.360.0070.01914.14
5.4.350.0110.01214.23
5.4.340.0080.01714.24
5.4.330.0090.00811.81
5.4.320.0120.01414.21
5.4.310.0080.02014.21
5.4.300.0100.01514.21
5.4.290.0100.01614.21
5.4.280.0110.01414.14
5.4.270.0080.01914.29
5.4.260.0100.01714.14
5.4.250.0060.01914.19
5.4.240.0080.01814.26
5.4.230.0140.01314.04
5.4.220.0080.02014.26
5.4.210.0100.01714.16
5.4.200.0120.01914.23
5.4.190.0110.01614.05
5.4.180.0080.01714.14
5.4.170.0080.01714.07
5.4.160.0110.01814.27
5.4.150.0070.02114.01
5.4.140.0100.01613.49
5.4.130.0070.01813.50
5.4.120.0120.01313.46
5.4.110.0100.01613.51
5.4.100.0080.01513.52
5.4.90.0120.01513.50
5.4.80.0130.01813.56
5.4.70.0100.01713.48
5.4.60.0100.01513.45
5.4.50.0100.01513.34
5.4.40.0090.01613.49
5.4.30.0100.01713.43
5.4.20.0120.01713.46
5.4.10.0140.01313.40
5.4.00.0060.01813.18

preferences:
38.62 ms | 403 KiB | 5 Q