3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Foo { public function test() { echo 'TEST'; } } class Bar { use Foo; } class Baz extends Bar { } (new Baz)->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.0130.00918.18
8.3.50.0170.00018.00
8.3.40.0100.01018.67
8.3.30.0110.00418.72
8.3.20.0030.00624.18
8.3.10.0070.00024.66
8.3.00.0070.00026.16
8.2.180.0180.00016.75
8.2.170.0070.01419.01
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00426.35
8.2.110.0070.01122.07
8.2.100.0120.00017.66
8.2.90.0000.00817.84
8.2.80.0030.00619.11
8.2.70.0000.00817.50
8.2.60.0000.00917.80
8.2.50.0000.00918.07
8.2.40.0030.00619.88
8.2.30.0050.00218.01
8.2.20.0000.00718.00
8.2.10.0030.00719.25
8.2.00.0000.00719.23
8.1.280.0080.00825.92
8.1.270.0080.00023.99
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0050.00322.03
8.1.230.0070.00320.88
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0000.00717.22
8.1.180.0050.00318.10
8.1.170.0050.00318.48
8.1.160.0000.00818.73
8.1.150.0070.00018.73
8.1.140.0040.00418.81
8.1.130.0030.00320.18
8.1.120.0000.00817.35
8.1.110.0040.00417.37
8.1.100.0050.00317.29
8.1.90.0000.00717.39
8.1.80.0000.00917.41
8.1.70.0000.00717.31
8.1.60.0000.00817.43
8.1.50.0040.00417.43
8.1.40.0000.00817.38
8.1.30.0060.00317.60
8.1.20.0000.00717.59
8.1.10.0000.00717.43
8.1.00.0040.00417.41
8.0.300.0040.00419.98
8.0.290.0040.00416.58
8.0.280.0030.00318.48
8.0.270.0040.00418.01
8.0.260.0040.00418.44
8.0.250.0000.00716.98
8.0.240.0000.00716.93
8.0.230.0000.00716.85
8.0.220.0030.00316.75
8.0.210.0070.00016.77
8.0.200.0000.00716.88
8.0.190.0040.00416.84
8.0.180.0040.00416.78
8.0.170.0000.00916.76
8.0.160.0070.00016.88
8.0.150.0040.00416.80
8.0.140.0040.00416.66
8.0.130.0060.00013.25
8.0.120.0000.00816.81
8.0.110.0030.00516.68
8.0.100.0040.00416.77
8.0.90.0000.00716.90
8.0.80.0080.00716.81
8.0.70.0000.00716.74
8.0.60.0050.00216.74
8.0.50.0000.00716.89
8.0.30.0070.01017.06
8.0.20.0080.01216.90
8.0.10.0000.00716.89
8.0.00.0030.02016.57
7.4.330.0000.00515.55
7.4.320.0000.00616.55
7.4.300.0030.00316.52
7.4.290.0070.00016.39
7.4.280.0030.00516.48
7.4.270.0030.00316.57
7.4.260.0000.00513.19
7.4.250.0050.00216.48
7.4.240.0070.00016.59
7.4.230.0070.00016.56
7.4.220.0030.00316.51
7.4.210.0070.01116.56
7.4.200.0070.00016.32
7.4.130.0090.00816.51
7.4.120.0130.00316.27
7.4.110.0040.01216.34
7.4.100.0150.00916.72
7.4.90.0040.01416.35
7.4.80.0090.00916.53
7.4.70.0070.01016.29
7.4.60.0130.00916.46
7.4.50.0080.00816.48
7.4.40.0140.00616.33
7.4.30.0080.00816.49
7.4.20.0120.00616.29
7.4.10.0110.00716.42
7.4.00.0090.00916.36
7.3.330.0000.00716.14
7.3.320.0030.00313.28
7.3.310.0040.00416.27
7.3.300.0000.00616.17
7.3.290.0060.00816.24
7.3.260.0060.01016.23
7.3.230.0120.00416.22
7.3.210.0100.00916.53
7.3.200.0080.00816.23
7.3.190.0140.00616.58
7.3.180.0000.01716.31
7.3.170.0000.01516.47
7.3.160.0080.00816.27
7.3.150.0080.01416.57
7.3.140.0070.01116.42
7.3.130.0100.00716.35
7.3.120.0070.01016.23
7.3.110.0120.00616.18
7.3.100.0060.01116.20
7.3.90.0060.01216.18
7.3.80.0070.01016.34
7.3.70.0130.00316.29
7.3.60.0140.00816.18
7.3.50.0150.00616.27
7.3.40.0090.01316.23
7.3.30.0150.00716.32
7.3.20.0160.00316.01
7.3.10.0150.00316.48
7.3.00.0140.00716.37
7.2.330.0090.00916.68
7.2.320.0030.01416.58
7.2.310.0100.01016.32
7.2.300.0000.01716.45
7.2.290.0030.01416.58
7.2.280.0070.01016.61
7.2.270.0090.00916.25
7.2.260.0110.00716.42
7.2.250.0090.00916.63
7.2.240.0090.00916.27
7.2.230.0180.00016.55
7.2.220.0070.01116.56
7.2.210.0140.00316.58
7.2.200.0100.00716.47
7.2.190.0090.01216.40
7.2.180.0130.01016.49
7.2.170.0110.00616.49
7.2.160.0100.00716.30
7.2.150.0210.01016.50
7.2.140.0150.00616.41
7.2.130.0100.01316.54
7.2.120.0060.01516.45
7.2.110.0130.00916.59
7.2.100.0080.01116.40
7.2.90.0090.01216.35
7.2.80.0030.01716.51
7.2.70.0130.01016.59
7.2.60.0130.01016.29
7.2.50.0060.01616.38
7.2.40.0100.01316.53
7.2.30.0040.01516.70
7.2.20.0090.00916.50
7.2.10.0070.01316.45
7.2.00.0170.00316.48

preferences:
133.16 ms | 400 KiB | 5 Q