3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Some\TestNamespace; trait trait1 { public function method1() { echo __CLASS__; } } trait trait2 { public function method2() { $this->method1(); } } class class1 { use trait1; use trait2; } $obj = new class1; $obj->method1();

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.0040.01116.50
8.3.50.0100.01016.39
8.3.40.0140.00718.67
8.3.30.0140.00018.76
8.3.20.0030.00618.66
8.3.10.0040.00420.39
8.3.00.0040.00419.13
8.2.180.0060.01316.63
8.2.170.0080.00822.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00019.82
8.2.110.0070.00319.27
8.2.100.0040.00717.91
8.2.90.0040.00418.91
8.2.80.0030.00517.97
8.2.70.0080.00317.63
8.2.60.0040.00417.93
8.2.50.0030.00718.10
8.2.40.0000.00818.22
8.2.30.0040.00417.94
8.2.20.0030.00517.64
8.2.10.0040.00417.66
8.2.00.0050.00517.63
8.1.280.0110.00625.92
8.1.270.0050.00224.66
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0090.00019.37
8.1.230.0040.00717.77
8.1.220.0000.00717.74
8.1.210.0030.00618.77
8.1.200.0080.00017.35
8.1.190.0000.00817.11
8.1.180.0080.00018.10
8.1.170.0000.00818.77
8.1.160.0000.00718.95
8.1.150.0050.00218.68
8.1.140.0040.00417.56
8.1.130.0070.00017.76
8.1.120.0000.00817.44
8.1.110.0070.00017.48
8.1.100.0040.00417.37
8.1.90.0050.00217.46
8.1.80.0000.00717.53
8.1.70.0030.00317.43
8.1.60.0040.00417.57
8.1.50.0000.00817.44
8.1.40.0000.00817.50
8.1.30.0070.00017.54
8.1.20.0040.00417.66
8.1.10.0040.00417.44
8.1.00.0000.00817.55
8.0.300.0050.00218.77
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0080.00017.21
8.0.260.0060.00016.76
8.0.250.0000.00717.00
8.0.240.0000.00716.84
8.0.230.0030.00316.81
8.0.220.0030.00316.79
8.0.210.0030.00316.80
8.0.200.0030.00316.91
8.0.190.0070.00016.96
8.0.180.0040.00416.89
8.0.170.0030.00616.88
8.0.160.0050.00216.92
8.0.150.0080.00016.91
8.0.140.0000.00816.82
8.0.130.0030.00313.38
8.0.120.0070.00016.82
8.0.110.0040.00416.84
8.0.100.0050.00216.77
8.0.90.0000.00816.78
8.0.80.0120.00616.81
8.0.70.0040.00416.91
8.0.60.0040.00416.73
8.0.50.0000.00816.84
8.0.30.0120.01217.23
8.0.20.0160.00317.16
8.0.10.0030.00516.87
8.0.00.0080.00816.86
7.4.330.0000.00513.10
7.4.320.0030.00316.65
7.4.300.0040.00416.62
7.4.290.0040.00416.64
7.4.280.0040.00416.59
7.4.270.0070.00016.63
7.4.260.0060.00013.24
7.4.250.0050.00316.57
7.4.240.0030.00516.51
7.4.230.0070.00016.54
7.4.220.0220.00416.59
7.4.210.0100.00716.57
7.4.200.0000.00716.48
7.4.190.0030.00316.66
7.4.160.0080.00816.53
7.4.150.0150.00316.45
7.4.140.0100.00616.37
7.4.130.0130.00916.38
7.4.120.0080.01016.48
7.4.110.0070.01016.48
7.4.100.0060.01116.59
7.4.90.0090.00916.50
7.4.80.0100.01316.66
7.4.70.0090.01316.47
7.4.60.0110.00816.48
7.4.50.0000.00816.45
7.4.40.0090.00616.38
7.4.30.0150.00016.49
7.4.00.0070.00415.23
7.3.330.0060.00013.02
7.3.320.0050.00013.07
7.3.310.0060.00016.22
7.3.300.0040.00416.06
7.3.290.0070.00716.24
7.3.280.0060.01116.22
7.3.270.0160.00616.27
7.3.260.0140.01016.27
7.3.250.0070.01016.36
7.3.240.0130.00316.29
7.3.230.0060.01016.24
7.3.210.0160.00016.23
7.3.200.0060.01119.39
7.3.190.0070.01016.36
7.3.180.0030.01316.38
7.3.170.0170.00616.52
7.3.160.0080.00816.36
7.3.120.0130.00014.75
7.2.330.0130.00316.36
7.2.320.0050.01116.39
7.2.310.0140.00816.63
7.2.300.0090.00616.77
7.2.290.0100.01016.46
7.2.00.0030.00919.51
7.1.200.0080.00015.56
7.1.100.0060.00617.96
7.1.70.0000.00817.06
7.1.60.0140.01019.40
7.1.50.0060.01616.77
7.1.00.0000.08022.45
7.0.200.0070.00016.46
7.0.140.0030.07322.00
7.0.120.0030.07322.04
7.0.60.0300.07320.04
7.0.50.0130.05017.98
7.0.40.0370.07320.30
7.0.30.0330.08720.18
7.0.20.0230.04320.23
7.0.10.0330.07020.16
7.0.00.0270.04720.18
5.6.280.0000.07321.04
5.6.210.0100.05320.49
5.6.200.0070.03718.18
5.6.190.0230.06320.64
5.6.180.0400.04020.57
5.6.170.0400.07020.63
5.6.160.0300.06320.33
5.6.150.0230.04020.17
5.6.140.0200.04320.50
5.6.130.0230.05320.37
5.6.120.0170.04720.32
5.6.110.0200.04320.51
5.6.100.0270.03320.33
5.6.90.0170.04320.32
5.6.80.0170.05719.81
5.6.70.0270.03019.61
5.6.60.0270.03019.87
5.6.50.0230.03319.76
5.6.40.0170.04019.89
5.6.30.0270.03019.53
5.6.20.0130.04319.77
5.6.10.0270.04019.85
5.6.00.0230.03719.87
5.5.350.0030.03720.34
5.5.340.0070.06317.94
5.5.330.0330.07320.31
5.5.320.0300.07020.30
5.5.310.0230.05320.29
5.5.300.0270.04020.14
5.5.290.0100.05020.17
5.5.280.0170.05019.97
5.5.270.0200.04320.14
5.5.260.0130.04720.20
5.5.250.0200.04020.02
5.5.240.0230.07319.53
5.5.230.0270.03719.36
5.5.220.0200.05019.55
5.5.210.0170.04019.36
5.5.200.0270.03019.32
5.5.190.0130.04319.53
5.5.180.0130.04319.67
5.5.160.0130.05019.33
5.5.150.0170.04319.57
5.5.140.0130.04319.47
5.5.130.0170.04019.56
5.5.120.0200.04019.46
5.5.110.0270.05019.48
5.5.100.0330.07319.39
5.5.90.0400.08719.41
5.5.80.0330.07319.38
5.5.70.0300.08019.22
5.5.60.0300.07719.23
5.5.50.0330.07319.23
5.5.40.0330.07319.46
5.5.30.0430.04019.37
5.5.20.0330.05719.47
5.5.10.0330.07319.45
5.5.00.0370.05719.41
5.4.450.0230.04319.19
5.4.440.0300.03719.44
5.4.430.0300.02719.52
5.4.420.0230.03319.57
5.4.410.0200.04319.12
5.4.400.0170.04018.98
5.4.390.0200.03719.01
5.4.380.0200.03719.11
5.4.370.0170.04019.27
5.4.360.0230.03319.27
5.4.350.0230.03719.24
5.4.340.0170.04019.25
5.4.320.0230.03719.21
5.4.310.0200.03719.15
5.4.300.0200.03719.00
5.4.290.0230.03019.02
5.4.280.0130.04319.05
5.4.270.0170.06019.16
5.4.260.0200.06319.00
5.4.250.0300.07719.27
5.4.240.0230.05019.14
5.4.230.0300.07319.24
5.4.220.0330.07019.14
5.4.210.0230.06018.92
5.4.200.0330.06719.14
5.4.190.0370.06019.14
5.4.180.0270.07718.84
5.4.170.0500.05319.07
5.4.160.0370.05718.98
5.4.150.0270.06019.05
5.4.140.0200.04316.35
5.4.130.0300.05016.59
5.4.120.0400.05316.44
5.4.110.0330.06016.43
5.4.100.0330.06016.32
5.4.90.0330.06016.45
5.4.80.0300.06716.36
5.4.70.0300.04016.34
5.4.60.0230.07316.45
5.4.50.0300.06316.36
5.4.40.0330.04316.45
5.4.30.0230.03716.27
5.4.20.0230.04016.39
5.4.10.0330.05016.27
5.4.00.0330.06715.99
5.3.290.0230.05014.61
5.3.280.0300.05714.53
5.3.270.0270.08014.54
5.3.260.0230.07714.53
5.3.250.0230.05714.53
5.3.240.0230.04014.53
5.3.230.0230.07314.62
5.3.220.0300.03314.53
5.3.210.0370.06314.47
5.3.200.0300.07014.49
5.3.190.0330.06714.52
5.3.180.0270.06014.46
5.3.170.0330.07014.50
5.3.160.0270.07314.53
5.3.150.0370.06314.46
5.3.140.0200.05014.50
5.3.130.0370.06014.47
5.3.120.0270.05314.48
5.3.110.0370.05714.53
5.3.100.0370.06714.05
5.3.90.0330.05313.96
5.3.80.0230.05013.93
5.3.70.0270.06713.84
5.3.60.0430.04713.82
5.3.50.0300.03313.78
5.3.40.0300.06013.87
5.3.30.0330.06313.83
5.3.20.0300.06713.51
5.3.10.0270.06013.47
5.3.00.0170.04313.48
5.2.170.0270.04712.62
5.2.160.0330.05312.62
5.2.150.0200.06712.62
5.2.140.0270.06312.62
5.2.130.0300.05012.62
5.2.120.0300.05312.62
5.2.110.0200.03012.62
5.2.100.0230.05012.62
5.2.90.0330.05312.62
5.2.80.0300.05312.62
5.2.70.0200.03712.62
5.2.60.0230.05012.62
5.2.50.0270.05012.62
5.2.40.0230.04312.62
5.2.30.0200.04712.62
5.2.20.0170.03312.62
5.2.10.0200.04312.62
5.2.00.0300.04012.62
5.1.60.0230.04712.62
5.1.50.0270.04712.62
5.1.40.0270.04312.62
5.1.30.0230.05012.62
5.1.20.0200.04712.62
5.1.10.0200.04312.62
5.1.00.0230.04712.62
5.0.50.0100.04712.62
5.0.40.0100.02712.62
5.0.30.0130.04312.62
5.0.20.0100.02312.62
5.0.10.0130.04012.62
5.0.00.0100.03712.62
4.4.90.0070.03712.62
4.4.80.0100.02312.62
4.4.70.0100.03712.62
4.4.60.0170.03012.62
4.4.50.0130.02312.62
4.4.40.0070.03012.62
4.4.30.0100.03312.62
4.4.20.0100.03712.62
4.4.10.0100.03712.62
4.4.00.0100.04312.62
4.3.110.0100.02312.62
4.3.100.0100.01712.62
4.3.90.0100.02712.62
4.3.80.0100.05312.62
4.3.70.0100.01712.62
4.3.60.0100.01712.62
4.3.50.0070.02012.62
4.3.40.0100.05012.62
4.3.30.0070.02312.62
4.3.20.0070.03312.62
4.3.10.0170.02712.62
4.3.00.0070.03012.62

preferences:
37.59 ms | 401 KiB | 5 Q