3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Bar { protected $things = []; function __destruct() { print_r($this->things); } } class Foo { protected $things = [ '1' => 'one' ]; use Bar; } new Foo();

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.0110.00718.31
8.3.50.0070.00716.36
8.3.40.0140.00418.70
8.3.30.0070.00718.59
8.3.20.0000.00820.14
8.3.10.0050.00321.73
8.3.00.0000.00820.78
8.2.180.0150.00318.29
8.2.170.0080.00822.96
8.2.160.0100.00722.17
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00420.49
8.2.120.0040.00426.35
8.2.110.0060.00320.52
8.2.100.0060.00617.84
8.2.90.0030.00619.11
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0060.00318.10
8.2.40.0000.00822.15
8.2.30.0050.00321.04
8.2.20.0000.00718.04
8.2.10.0040.00418.04
8.2.00.0000.00817.89
8.1.280.0110.00425.92
8.1.270.0050.00323.85
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00820.89
8.1.230.0080.00319.12
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0000.00817.22
8.1.180.0050.00218.10
8.1.170.0000.00918.64
8.1.160.0040.00418.95
8.1.150.0040.00420.53
8.1.140.0040.00419.45
8.1.130.0050.00218.81
8.1.120.0000.00717.30
8.1.110.0000.00717.43
8.1.100.0040.00417.31
8.1.90.0000.00817.40
8.1.80.0040.00417.35
8.1.70.0030.00317.42
8.1.60.0080.00017.39
8.1.50.0000.00817.34
8.1.40.0070.00017.51
8.1.30.0050.00317.49
8.1.20.0000.00817.48
8.1.10.0030.00617.38
8.1.00.0040.00417.29
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0030.00318.42
8.0.270.0030.00317.22
8.0.260.0000.00716.69
8.0.250.0060.00016.93
8.0.240.0000.00816.86
8.0.230.0050.00216.84
8.0.220.0030.00316.84
8.0.210.0040.00416.94
8.0.200.0000.00616.98
8.0.190.0060.00616.97
8.0.180.0000.00816.94
8.0.170.0040.00416.86
8.0.160.0030.00316.80
8.0.150.0050.00316.78
8.0.140.0040.00416.87
8.0.130.0060.00013.31
8.0.120.0040.00416.82
8.0.110.0000.00716.77
8.0.100.0070.00016.77
8.0.90.0080.00016.76
8.0.80.0090.00616.79
8.0.70.0050.00316.77
8.0.60.0070.00016.90
8.0.50.0040.00416.90
8.0.30.0090.00917.10
8.0.20.0110.01017.40
8.0.10.0000.00716.78
8.0.00.0120.00616.87
7.4.330.0020.00215.55
7.4.320.0000.00616.54
7.4.300.0030.00316.37
7.4.290.0000.00816.54
7.4.280.0080.00016.53
7.4.270.0000.00616.35
7.4.260.0030.00313.05
7.4.250.0070.00016.51
7.4.240.0000.00716.48
7.4.230.0000.00716.28
7.4.220.0090.00916.33
7.4.210.0080.01016.46
7.4.200.0030.00316.55
7.4.160.0080.00916.51
7.4.150.0110.00717.40
7.4.140.0150.00817.86
7.4.130.0040.01416.71
7.4.120.0150.00516.52
7.3.330.0000.00613.27
7.3.320.0050.00013.29
7.3.310.0070.00016.14
7.3.300.0000.00616.11
7.3.290.0040.00416.25
7.3.280.0080.00916.20
7.3.270.0100.00717.40
7.3.260.0130.00816.28
7.3.250.0130.00516.34
7.3.240.0130.00516.44
7.0.200.0400.00714.77

preferences:
40.07 ms | 400 KiB | 5 Q