3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const TOTO = 'TEST'; } class b { public $b = []; public function __construct() { $a = A::TOTO; $this->b['rrr'] = 'myTest'; } } $t = new b();

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.0170.00318.55
8.3.50.0140.00316.32
8.3.40.0070.00718.63
8.3.30.0030.01218.51
8.3.20.0050.00319.20
8.3.10.0040.00423.72
8.3.00.0110.00017.97
8.2.180.0140.00418.14
8.2.170.0150.00022.96
8.2.160.0090.00620.53
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0070.00020.47
8.2.120.0050.00226.35
8.2.110.0060.00319.45
8.2.100.0060.00617.78
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0030.00617.93
8.2.50.0060.00318.10
8.2.40.0050.00220.64
8.2.30.0000.00921.00
8.2.20.0000.00718.13
8.2.10.0000.00718.13
8.2.00.0080.00017.95
8.1.270.0040.00423.79
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00320.97
8.1.230.0070.00422.14
8.1.220.0070.00017.79
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0030.00518.49
8.1.160.0040.00418.99
8.1.150.0040.00418.93
8.1.140.0080.00319.57
8.1.130.0000.00718.86
8.1.120.0030.00317.42
8.1.110.0040.00417.44
8.1.100.0080.00017.42
8.1.90.0050.00317.28
8.1.80.0000.00717.44
8.1.70.0080.00017.43
8.1.60.0000.00817.61
8.1.50.0040.00417.51
8.1.40.0000.00817.39
8.1.30.0070.00017.66
8.1.20.0060.00317.56
8.1.10.0040.00417.44
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0030.00318.34
8.0.270.0000.00717.09
8.0.260.0000.00716.71
8.0.250.0000.00716.82
8.0.240.0000.00716.93
8.0.230.0000.00716.79
8.0.220.0040.00416.70
8.0.210.0000.00716.68
8.0.200.0000.00616.89
8.0.190.0000.00916.83
8.0.180.0060.00316.74
8.0.170.0000.00716.87
8.0.160.0030.00316.86
8.0.150.0030.00516.65
8.0.140.0000.00716.82
8.0.130.0030.00313.31
8.0.120.0040.00416.84
8.0.110.0030.00416.80
8.0.100.0040.00416.73
8.0.90.0040.00416.81
8.0.80.0080.01116.85
8.0.70.0000.00816.88
8.0.60.0000.00816.87
8.0.50.0000.00716.86
8.0.30.0100.00916.96
8.0.20.0120.00717.40
8.0.10.0040.00416.90
8.0.00.0090.00816.86
7.4.330.0000.00615.55
7.4.320.0070.00016.54
7.4.300.0060.00016.60
7.4.290.0060.00316.63
7.4.280.0030.00516.50
7.4.270.0000.00716.60
7.4.260.0080.00013.27
7.4.250.0050.00516.45
7.4.240.0030.00316.59
7.4.230.0070.00016.68
7.4.220.0060.01216.70
7.4.210.0030.01016.45
7.4.200.0000.00716.66
7.4.160.0110.00516.52
7.4.150.0120.01217.40
7.4.140.0070.01317.86
7.4.130.0230.00316.40
7.4.120.0120.00716.38
7.4.110.0100.01016.44
7.4.100.0070.01416.59
7.4.90.0090.01316.55
7.4.80.0110.01119.39
7.4.70.0090.00916.53
7.4.60.0080.00816.29
7.4.50.0070.00716.40
7.4.40.0000.01616.27
7.4.30.0080.00816.20
7.4.10.0100.00314.78
7.4.00.0060.00814.78
7.3.330.0000.00613.30
7.3.320.0050.00013.21
7.3.310.0030.00316.33
7.3.300.0040.00416.27
7.3.290.0060.00916.25
7.3.280.0080.00816.30
7.3.270.0130.00317.40
7.3.260.0090.00916.43
7.3.250.0080.00816.47
7.3.240.0070.01016.34
7.3.230.0160.00816.59
7.3.210.0100.00916.21
7.3.200.0100.00616.24
7.3.190.0060.01216.40
7.3.180.0160.00016.41
7.3.170.0030.01616.25
7.3.160.0070.01016.23
7.3.130.0100.00314.75
7.3.120.0070.01014.45
7.3.110.0070.01014.75
7.3.100.0070.01014.69
7.3.90.0030.01014.69
7.3.80.0100.00315.10
7.3.70.0060.00314.89
7.3.60.0060.00914.76
7.3.50.0000.01514.88
7.3.40.0070.00714.82
7.3.30.0070.00314.93
7.3.20.0040.00816.78
7.3.10.0110.00716.64
7.3.00.0080.00416.41
7.2.330.0080.01116.74
7.2.320.0070.01016.30
7.2.310.0080.00816.68
7.2.300.0030.01316.66
7.2.290.0060.01116.28
7.2.260.0120.00814.96
7.2.250.0030.01214.93
7.2.240.0130.00315.06
7.2.230.0120.00315.23
7.2.220.0080.00414.91
7.2.210.0030.01015.23
7.2.200.0000.01315.06
7.2.190.0090.00914.91
7.2.180.0090.00315.04
7.2.170.0000.01415.01
7.2.160.0000.01414.96
7.2.150.0030.01616.50
7.2.140.0030.01416.98
7.2.130.0070.00716.96
7.2.120.0110.00316.89
7.2.110.0000.01016.79
7.2.100.0070.00717.04
7.2.90.0050.00516.90
7.2.80.0070.01116.63
7.2.70.0110.00416.72
7.2.60.0050.00816.87
7.2.50.0120.00317.05
7.2.40.0030.00817.04
7.2.30.0110.00717.00
7.2.20.0040.00716.91
7.2.10.0040.01116.75
7.2.00.0080.00817.81
7.1.330.0080.00615.84
7.1.320.0030.01015.74
7.1.310.0030.00915.73
7.1.300.0040.01115.58
7.1.290.0030.00715.66
7.1.280.0000.01015.69
7.1.270.0100.00715.84
7.1.260.0090.00915.61
7.1.250.0030.00715.45
7.1.240.0070.00715.78
7.1.230.0030.01015.91
7.1.220.0090.00315.53
7.1.210.0120.00315.57
7.1.200.0130.00515.76
7.1.190.0000.01415.57
7.1.180.0070.00715.75
7.1.170.0000.01215.86
7.1.160.0060.00915.75
7.1.150.0000.01315.63
7.1.140.0080.00015.89
7.1.130.0030.01015.79
7.1.120.0080.00015.81
7.1.110.0030.00915.80
7.1.100.0030.00716.96
7.1.90.0030.00915.70
7.1.80.0140.00315.70
7.1.70.0070.00616.39
7.1.60.0450.01324.37
7.1.50.0180.01224.26
7.1.40.2130.01524.04
7.1.30.2100.01323.85
7.1.20.1450.00824.30
7.1.10.1530.00915.12
7.1.00.1870.01115.14
7.0.330.0030.00915.30
7.0.320.0080.00415.34
7.0.310.0030.01015.16
7.0.300.0050.00515.31
7.0.290.0080.00815.32
7.0.280.0070.01015.51
7.0.270.0000.01115.39
7.0.260.0040.01115.32
7.0.250.0030.00615.28
7.0.240.0100.00315.31
7.0.230.0120.00015.38
7.0.220.0000.01415.16
7.0.210.0070.01015.30
7.0.200.0090.00715.04
7.0.190.0100.01315.21
7.0.180.1750.01414.86
7.0.170.1770.00714.81
7.0.160.0440.01414.95
7.0.150.0050.01114.95
7.0.140.0310.00714.83
7.0.130.0540.01014.97
7.0.120.2110.00814.99
7.0.110.0330.01414.77
7.0.100.0080.00814.87
7.0.90.0080.01314.97
7.0.80.0350.01014.95
7.0.70.0090.00914.76
7.0.60.2120.01514.71
7.0.50.0200.00714.92
7.0.40.0750.01613.93
7.0.30.0090.00713.95
7.0.20.0080.01213.94
7.0.10.0070.01313.96
7.0.00.0450.01213.83
5.6.400.0090.00914.47
5.6.390.0060.00614.32
5.6.380.0070.00714.47
5.6.370.0000.01814.71
5.6.360.0120.00014.43
5.6.350.0090.00614.34
5.6.340.0080.00414.54
5.6.330.0070.01014.46
5.6.320.0070.00414.16
5.6.310.0130.00314.56
5.6.300.0030.01214.46
5.6.290.0070.00714.56
5.6.280.0060.00914.18
5.6.270.0030.00614.43
5.6.260.0030.00914.19
5.6.250.0040.00414.16
5.6.240.0060.00614.31
5.6.230.0000.01114.30
5.6.220.0040.00814.58
5.6.210.0030.01014.24
5.6.200.0030.01014.32
5.6.190.0100.00314.21
5.6.180.0000.01014.24
5.6.170.0030.00714.52
5.6.160.0090.00314.38
5.6.150.0080.00814.11
5.6.140.0070.00714.42
5.6.130.0000.01514.32
5.6.120.0060.00914.53
5.6.110.0030.01214.67
5.6.100.0000.00814.34
5.6.90.0090.00314.68
5.6.80.0000.01114.50
5.6.70.0030.00914.36
5.6.60.0040.00714.29
5.6.50.0070.00714.55
5.6.40.0040.00814.23
5.6.30.0070.00714.62
5.6.20.0040.01214.44
5.6.10.0030.01014.41
5.6.00.0030.00814.25

preferences:
60.65 ms | 400 KiB | 5 Q