3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test { trait Base { public $config = []; function __construct($config = []) { $this->config = $config; } } } namespace { class Config { use Test\Base; } $test = new Config(['foo' => 'bar']); echo isset($test->config['foo']) ? 'Success: foo is set' : 'Error: foo is not set'; }

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.0160.00318.45
8.3.50.0120.00618.31
8.3.40.0100.00618.84
8.3.30.0120.00318.80
8.3.20.0000.00721.04
8.3.10.0050.00323.61
8.3.00.0040.00423.48
8.2.180.0130.00625.92
8.2.170.0130.00919.09
8.2.160.0030.01022.31
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00420.57
8.2.120.0000.00826.35
8.2.110.0070.00322.25
8.2.100.0070.00417.91
8.2.90.0050.00317.75
8.2.80.0000.00818.85
8.2.70.0000.00817.50
8.2.60.0030.00518.09
8.2.50.0080.00018.10
8.2.40.0000.00819.38
8.2.30.0050.00219.36
8.2.20.0000.00818.00
8.2.10.0000.00719.18
8.2.00.0070.00019.43
8.1.280.0140.00725.92
8.1.270.0060.00323.99
8.1.260.0090.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00023.83
8.1.230.0070.00418.95
8.1.220.0000.00817.80
8.1.210.0030.00718.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00618.57
8.1.160.0030.00518.80
8.1.150.0040.00418.88
8.1.140.0070.00022.13
8.1.130.0030.00320.17
8.1.120.0070.00317.44
8.1.110.0030.00517.44
8.1.100.0050.00217.35
8.1.90.0040.00417.48
8.1.80.0040.00417.43
8.1.70.0080.00417.34
8.1.60.0050.00317.46
8.1.50.0080.00017.39
8.1.40.0030.00517.56
8.1.30.0060.00317.64
8.1.20.0040.00417.68
8.1.10.0030.00517.58
8.1.00.0060.00317.35
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0030.00318.46
8.0.270.0000.00717.25
8.0.260.0030.00318.45
8.0.250.0030.00316.94
8.0.240.0040.00416.82
8.0.230.0030.00316.82
8.0.220.0000.00716.84
8.0.210.0040.00416.93
8.0.200.0030.00316.82
8.0.190.0000.00716.92
8.0.180.0060.00316.85
8.0.170.0030.00516.89
8.0.160.0000.00716.75
8.0.150.0120.00016.90
8.0.140.0030.00316.73
8.0.130.0030.00313.38
8.0.120.0000.00716.83
8.0.110.0040.00416.85
8.0.100.0050.00216.87
8.0.90.0000.00716.91
8.0.80.0070.01016.85
8.0.70.0030.00516.89
8.0.60.0030.00516.86
8.0.50.0040.00416.94
8.0.30.0140.00816.94
8.0.20.0120.00817.40
8.0.10.0030.00517.07
8.0.00.0070.01116.75
7.4.330.0050.00016.78
7.4.320.0030.00316.58
7.4.300.0030.00316.50
7.4.290.0030.00316.50
7.4.280.0040.00516.62
7.4.270.0020.00516.50
7.4.260.0030.00516.50
7.4.250.0030.00316.56
7.4.240.0040.00416.45
7.4.230.0000.00716.59
7.4.220.0080.00016.39
7.4.210.0110.00616.66
7.4.200.0030.00316.70
7.4.140.0130.00717.86
7.4.130.0150.00316.41
7.4.120.0150.00316.48
7.4.110.0200.00316.47
7.4.100.0150.00316.62
7.4.90.0080.00816.39
7.4.80.0160.00019.39
7.4.70.0100.01016.27
7.4.60.0070.01116.64
7.4.50.0070.01016.35
7.4.40.0130.00316.60
7.4.10.0030.01714.68
7.4.00.0070.01014.98
7.3.330.0030.00313.31
7.3.320.0000.00513.27
7.3.310.0050.00316.26
7.3.300.0030.00316.35
7.3.290.0030.00316.16
7.3.280.0070.00916.17
7.3.260.0110.00716.33
7.3.240.0110.00916.34
7.3.230.0080.00816.59
7.3.210.0100.00616.34
7.3.200.0100.00616.22
7.3.190.0110.00716.45
7.3.180.0060.01016.46
7.3.170.0100.01016.33
7.3.160.0130.00316.43
7.3.130.0090.01014.73
7.3.120.0050.01414.88
7.3.110.0080.01014.94
7.3.100.0050.00814.70
7.3.90.0070.00814.75
7.3.80.0030.00914.77
7.3.70.0020.01414.77
7.3.60.0110.00314.76
7.3.50.0090.00614.67
7.3.40.0060.00614.75
7.3.30.0080.00414.81
7.3.20.0050.00716.60
7.3.10.0080.00316.61
7.3.00.0190.00515.95
7.2.330.0080.00816.47
7.2.320.0090.00916.68
7.2.310.0130.01016.45
7.2.300.0160.00016.74
7.2.290.0160.00616.68
7.2.260.0080.00814.96
7.2.250.0100.00715.26
7.2.240.0100.00514.95
7.2.230.0060.01115.21
7.2.220.0030.01214.96
7.2.210.0050.01015.00
7.2.200.0050.01115.14
7.2.190.0090.00415.01
7.2.180.0030.00914.95
7.2.170.0050.00814.95
7.2.160.0080.00714.94
7.2.150.0080.00716.93
7.2.140.0090.00316.94
7.2.130.0160.01116.16
7.2.120.0190.00916.27
7.2.110.0180.00916.32
7.2.100.0130.00716.08
7.2.90.0140.01116.25
7.2.80.0170.01116.23
7.2.70.0200.00916.31
7.2.60.0230.00616.27
7.2.50.0220.00616.23
7.2.40.0200.01216.12
7.2.30.0230.00716.41
7.2.20.0180.01016.13
7.2.10.0190.00816.29
7.2.00.0160.00916.09
7.1.330.0070.00815.69
7.1.320.0060.00515.65
7.1.310.0070.00315.89
7.1.300.0020.00615.66
7.1.290.0060.00515.68
7.1.280.0130.00215.65
7.1.270.0030.00715.78
7.1.260.0020.01315.85
7.1.250.0200.00715.13
7.1.240.0040.00815.73
7.1.230.0030.01015.75
7.1.220.0080.00015.94
7.1.210.0080.00315.75
7.1.200.0060.00615.50
7.1.190.0060.00915.80
7.1.180.0000.01215.67
7.1.170.0100.00315.89
7.1.160.0030.00515.88
7.1.150.0060.00615.95
7.1.140.0030.01015.88
7.1.130.0070.00715.55
7.1.120.0120.00315.41
7.1.110.0070.00715.82
7.1.100.0060.00615.76
7.1.90.0060.00915.74
7.1.80.0060.00615.98
7.1.70.0070.00315.94
7.1.60.0000.01515.65
7.1.50.0060.00615.75
7.1.40.0060.00915.60
7.1.30.0130.00015.61
7.1.20.0090.00615.78
7.1.10.0000.00915.88
7.1.00.0060.01515.61
7.0.330.0180.00514.65
7.0.320.0050.00315.46
7.0.310.0040.00415.39
7.0.300.0040.00715.40
7.0.290.0030.00615.16
7.0.280.0000.01315.29
7.0.270.0110.00015.13
7.0.260.0030.00615.34
7.0.250.0040.00915.30
7.0.240.0090.00315.54
7.0.230.0070.00415.49
7.0.220.0090.00915.32
7.0.210.0030.00715.08
7.0.200.0030.00615.51
7.0.190.0080.00415.13
7.0.180.0000.01115.30
7.0.170.0030.01015.37
7.0.160.0070.00415.33
7.0.150.0060.00615.28
7.0.140.0110.00715.50
7.0.130.0070.00715.47
7.0.120.0080.00515.36
7.0.110.0000.01415.18
7.0.100.0100.00315.52
7.0.90.0030.00915.45
7.0.80.0110.00415.48
7.0.70.0090.00615.37
7.0.60.0040.00815.04
7.0.50.0000.01415.47
7.0.40.0040.01113.30
7.0.30.0030.00613.50
7.0.20.0040.00813.46
7.0.10.0060.00913.59
7.0.00.0000.01713.47
5.6.400.0030.00914.35
5.6.390.0030.01214.55
5.6.380.0060.00514.48
5.6.370.0000.01514.32
5.6.360.0030.01014.50
5.6.350.0000.01314.48
5.6.340.0070.00714.35
5.6.330.0060.00914.47
5.6.320.0030.01014.09
5.6.310.0070.00714.35
5.6.300.0080.00814.50
5.6.290.0070.00714.32
5.6.280.0030.01014.08
5.6.270.0030.01314.55
5.6.260.0070.01014.51
5.6.250.0030.00614.38
5.6.240.0000.00914.40
5.6.230.0030.01014.60
5.6.220.0100.00314.40
5.6.210.0040.00814.32
5.6.200.0040.01114.39
5.6.190.0050.00314.29
5.6.180.0050.00314.55
5.6.170.0030.01014.33
5.6.160.0070.01014.41
5.6.150.0000.01414.52
5.6.140.0110.00314.02
5.6.130.0060.00914.21
5.6.120.0060.00314.68
5.6.110.0040.00814.21
5.6.100.0000.01014.58
5.6.90.0120.00314.44
5.6.80.0030.01014.31
5.6.70.0030.01314.15
5.6.60.0060.00914.29
5.6.50.0040.00814.34
5.6.40.0070.00714.36
5.6.30.0000.01114.52
5.6.20.0040.00814.38
5.6.10.0030.01014.38
5.6.00.0100.00314.38

preferences:
72.87 ms | 401 KiB | 5 Q