3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait FooTrait { public function doFoo() { $this->doBar(); } } class Bar { use FooTrait; public function doBar() { var_dump('bar'); } } class Baz { use FooTrait; } (new Bar())->doFoo(); (new Baz())->doFoo();

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.80.0040.00418.53
8.3.70.0070.00716.71
8.3.60.0120.00318.56
8.3.50.0110.00722.11
8.3.40.0100.00718.96
8.3.30.0120.00318.83
8.3.20.0050.00319.14
8.3.10.0080.00021.90
8.3.00.0080.00020.80
8.2.200.0040.00416.75
8.2.190.0140.01016.58
8.2.180.0090.00916.50
8.2.170.0110.00422.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0050.00224.66
8.2.130.0110.00426.16
8.2.120.0040.00419.36
8.2.110.0030.00622.25
8.2.100.0060.00617.84
8.2.90.0040.00417.97
8.2.80.0040.00419.21
8.2.70.0000.00818.03
8.2.60.0070.00418.16
8.2.50.0000.00818.10
8.2.40.0040.00422.39
8.2.30.0040.00419.25
8.2.20.0000.00718.05
8.2.10.0040.00418.17
8.2.00.0050.00217.80
8.1.290.0090.00018.88
8.1.280.0120.00325.92
8.1.270.0080.00022.18
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00621.97
8.1.230.0110.00022.52
8.1.220.0000.00817.74
8.1.210.0090.00018.82
8.1.200.0110.00417.13
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0000.00718.50
8.1.160.0000.00818.70
8.1.150.0030.00320.30
8.1.140.0040.00419.47
8.1.130.0030.00317.77
8.1.120.0040.00417.34
8.1.110.0000.00817.40
8.1.100.0000.00817.41
8.1.90.0000.00817.36
8.1.80.0040.00417.33
8.1.70.0040.00417.48
8.1.60.0040.00417.50
8.1.50.0050.00317.42
8.1.40.0000.00817.45
8.1.30.0030.00517.62
8.1.20.0040.00417.62
8.1.10.0050.00317.53
8.1.00.0090.00017.38
8.0.300.0070.00020.04
8.0.290.0060.00316.63
8.0.280.0020.00518.49
8.0.270.0000.00716.88
8.0.260.0000.00617.29
8.0.250.0060.00317.12
8.0.240.0050.00316.91
8.0.230.0000.01016.98
8.0.220.0050.00216.93
8.0.210.0070.00016.96
8.0.200.0030.00316.91
8.0.190.0070.00016.93
8.0.180.0000.00717.00
8.0.170.0000.00716.88
8.0.160.0070.00016.87
8.0.150.0000.00716.89
8.0.140.0000.00716.91
8.0.130.0040.00413.35
8.0.120.0070.00016.95
8.0.110.0040.00416.82
8.0.100.0000.00816.95
8.0.90.0090.00016.89
8.0.80.0070.00916.98
8.0.70.0000.00816.77
8.0.60.0000.00717.00
8.0.50.0080.00316.82
8.0.30.0080.01117.07
8.0.20.0080.01217.40
8.0.10.0040.00417.07
8.0.00.0030.01316.68
7.4.330.0000.00515.55
7.4.320.0030.00316.54
7.4.300.0030.00316.47
7.4.290.0040.00416.52
7.4.280.0030.00616.44
7.4.270.0000.00716.59
7.4.260.0050.00216.40
7.4.250.0040.00416.41
7.4.240.0040.00416.49
7.4.230.0000.00716.34
7.4.220.0100.01316.48
7.4.210.0100.01016.47
7.4.200.0070.00016.45
7.4.160.0090.00616.37
7.4.150.0070.01317.40
7.4.140.0110.00917.86
7.4.130.0110.00616.60
7.4.120.0120.00516.63
7.4.110.0090.00916.57
7.4.100.0150.00916.41
7.4.90.0110.00716.44
7.4.80.0060.01019.39
7.4.70.0100.00716.62
7.4.60.0120.00516.27
7.4.50.0130.00316.26
7.4.40.0220.01416.23
7.4.30.0120.01716.27
7.4.20.0130.00516.07
7.4.10.0080.00916.56
7.4.00.0080.00815.88
7.3.330.0000.00513.22
7.3.320.0030.00313.22
7.3.310.0000.00716.22
7.3.300.0040.00416.41
7.3.290.0060.00916.36
7.3.280.0080.00916.37
7.3.270.0070.01017.40
7.3.260.0030.01316.36
7.3.250.0080.01016.42
7.3.240.0100.00716.38
7.3.230.0090.01516.39
7.3.210.0240.01216.49
7.3.200.0060.00916.32
7.3.190.0030.01316.50
7.3.180.0120.00616.28
7.3.170.0120.00616.25
7.3.160.0080.00816.39
7.3.150.0080.01116.23
7.3.140.0120.00516.34
7.3.130.0090.01416.41
7.3.120.0070.01316.27
7.3.110.0090.00816.46
7.3.100.0100.00616.29
7.3.90.0070.01016.41
7.3.80.0090.00916.33
7.3.70.0090.00916.40
7.3.60.0100.00916.31
7.3.50.0060.01316.24
7.3.40.0090.00716.27
7.3.30.0110.00616.26
7.3.20.0070.01016.29
7.3.10.0100.00716.28
7.3.00.0110.01316.30
7.2.330.0120.00916.19
7.2.320.0030.01316.29
7.2.310.0100.00916.20
7.2.300.0110.01016.44
7.2.290.0080.01116.29
7.2.280.0080.01116.34
7.2.270.0080.01116.42
7.2.260.0160.01716.37
7.2.250.0100.01316.52
7.2.240.0030.01416.30
7.2.230.0090.01016.37
7.2.220.0110.01116.17
7.2.210.0080.01116.48
7.2.200.0140.00516.46
7.2.190.0070.01016.52
7.2.180.0100.00716.40
7.2.170.0090.00916.27
7.2.160.0050.01316.47
7.2.150.0100.00816.37
7.2.140.0120.00516.43
7.2.130.0140.01316.39
7.2.120.0080.01216.48
7.2.110.0130.00616.55
7.2.100.0020.01716.39
7.2.90.0080.00916.36
7.2.80.0100.01016.34
7.2.70.0100.01116.30
7.2.60.0080.00916.56
7.2.50.0060.01116.45
7.2.40.0140.00616.40
7.2.30.0120.00616.40
7.2.20.0170.00816.31
7.2.10.0100.00716.37
7.2.00.0080.00817.19
7.1.330.0180.00415.59
7.1.320.0240.01415.32
7.1.310.0140.02415.48
7.1.300.0110.00815.37
7.1.290.0070.00915.42
7.1.280.0090.00815.43
7.1.270.0100.00715.45
7.1.260.0150.00415.48
7.1.250.0060.01015.47
7.1.240.0150.00315.41
7.1.230.0070.01115.44
7.1.220.0060.01015.42
7.1.210.0180.01115.41
7.1.200.0090.00915.36
7.1.190.0080.01015.31
7.1.180.0120.00715.36
7.1.170.0120.00415.54
7.1.160.0080.01315.40
7.1.150.0120.00915.32
7.1.140.0130.00815.34
7.1.130.0310.01115.55
7.1.120.0140.00415.43
7.1.110.0090.00815.37
7.1.100.0050.00916.22
7.1.90.0100.00515.43
7.1.80.0110.00515.38
7.1.70.0060.00915.91
7.1.60.0030.01015.97
7.1.50.0080.01015.88
7.1.40.0060.01015.51
7.1.30.0200.00315.43
7.1.20.0110.00815.44
7.1.10.0140.00615.42
7.1.00.0180.02917.68
7.0.330.0130.00715.05
7.0.320.0180.00714.95
7.0.310.0030.01415.11
7.0.300.0140.00515.08
7.0.290.0110.00715.02
7.0.280.0170.00714.85
7.0.270.0090.01315.10
7.0.260.0080.00915.24
7.0.250.0100.00815.18
7.0.240.0060.00915.21
7.0.230.0100.00515.08
7.0.220.0130.00315.16
7.0.210.0070.00815.14
7.0.200.0040.00915.67
7.0.190.0110.00615.10
7.0.180.0060.00915.00
7.0.170.0090.00614.92
7.0.160.0110.00515.17
7.0.150.0110.00515.08
7.0.140.0120.00715.19
7.0.130.0320.02417.43
7.0.120.0160.03016.81
7.0.110.0090.03117.40
7.0.100.0160.02316.82
7.0.90.0180.03317.33
7.0.80.0100.03417.43
7.0.70.0170.02616.79
7.0.60.0150.02216.84
7.0.50.0140.03816.84
7.0.40.0190.02616.86
7.0.30.0150.03516.81
7.0.20.0060.03817.32
7.0.10.0140.03417.34
7.0.00.0160.03316.86
5.6.400.0110.00815.62
5.6.390.0100.01315.80
5.6.380.0120.01115.90
5.6.370.0120.00915.62
5.6.360.0110.01015.77
5.6.350.0160.01715.83
5.6.340.0080.01615.80
5.6.330.0150.00715.75
5.6.320.0080.01215.96
5.6.310.0110.00715.56
5.6.300.0090.00915.76
5.6.290.0110.01115.83
5.6.280.0120.02517.56
5.6.270.0110.02817.61
5.6.260.0110.02817.53
5.6.250.0150.03617.56
5.6.240.0100.03317.58
5.6.230.0110.03517.56
5.6.220.0110.03017.40
5.6.210.0120.02817.41
5.6.200.0120.03417.43
5.6.190.0150.02617.37
5.6.180.0090.03617.36
5.6.170.0160.03217.57
5.6.160.0120.03017.39
5.6.150.0170.02717.42
5.6.140.0120.03017.38
5.6.130.0130.03117.52
5.6.120.0160.02417.46
5.6.110.0090.03017.41
5.6.100.0110.02517.59
5.6.90.0110.03017.30
5.6.80.0070.03117.06
5.6.70.0140.03117.23
5.6.60.0110.02817.14
5.6.50.0130.02417.21
5.6.40.0110.02817.36
5.6.30.0110.02717.25
5.6.20.0060.03417.11
5.6.10.0060.03617.25
5.6.00.0090.03317.20

preferences:
19.99 ms | 401 KiB | 5 Q