3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const PK = "B"; public function __construct() { $this->self = $this; } public function c() { $this->self::B; } } $a = new A; $a->c();

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.40.0100.01018.78
8.3.30.0070.00718.84
8.3.20.0070.00020.34
8.3.10.0000.00823.64
8.3.00.0000.00819.51
8.2.170.0070.00722.96
8.2.160.0100.00322.07
8.2.150.0000.00824.18
8.2.140.0050.00224.66
8.2.130.0030.00619.23
8.2.120.0080.00026.35
8.2.110.0100.00020.53
8.2.100.0040.00817.70
8.2.90.0080.00019.09
8.2.80.0040.00817.97
8.2.70.0000.00817.50
8.2.60.0050.00217.80
8.2.50.0050.00318.07
8.2.40.0000.00821.15
8.2.30.0000.00720.55
8.2.20.0080.00017.72
8.2.10.0070.00018.02
8.2.00.0030.00618.02
8.1.270.0040.00422.25
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00623.77
8.1.230.0040.00723.86
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0030.00618.96
8.1.160.0000.00722.05
8.1.150.0040.00418.88
8.1.140.0040.00419.55
8.1.130.0080.00017.70
8.1.120.0040.00417.44
8.1.110.0000.00717.49
8.1.100.0000.00717.35
8.1.90.0000.00717.45
8.1.80.0000.00717.41
8.1.70.0000.00817.45
8.1.60.0060.00317.57
8.1.50.0000.00817.53
8.1.40.0000.00817.53
8.1.30.0000.00817.54
8.1.20.0000.00917.67
8.1.10.0040.00417.55
8.1.00.0040.00417.40
8.0.300.0050.00218.78
8.0.290.0080.00016.75
8.0.280.0070.00018.35
8.0.270.0000.00717.20
8.0.260.0000.00717.29
8.0.250.0000.00716.97
8.0.240.0000.00816.93
8.0.230.0000.00816.86
8.0.220.0070.00016.83
8.0.210.0070.00016.97
8.0.200.0030.00317.04
8.0.190.0050.00316.91
8.0.180.0000.00717.01
8.0.170.0040.00416.89
8.0.160.0020.00516.94
8.0.150.0000.00816.80
8.0.140.0040.00416.79
8.0.130.0000.00513.33
8.0.120.0000.00716.94
8.0.110.0040.00416.78
8.0.100.0000.00716.81
8.0.90.0040.00416.75
8.0.80.0120.00316.88
8.0.70.0030.00316.99
8.0.60.0040.00417.01
8.0.50.0040.00416.93
8.0.30.0110.00817.24
8.0.20.0130.00617.40
8.0.10.0000.00716.94
8.0.00.0090.00816.83
7.4.330.0050.00016.77
7.4.320.0000.00616.55
7.4.300.0060.00016.39
7.4.290.0000.00716.44
7.4.280.0030.00516.53
7.4.270.0040.00416.53
7.4.260.0030.00616.51
7.4.250.0030.00616.56
7.4.240.0000.00816.42
7.4.230.0030.00316.64
7.4.220.0110.00716.49
7.4.210.0040.01116.48
7.4.200.0070.00016.50
7.4.160.0060.01016.43
7.4.150.0060.01317.40
7.4.140.0100.00917.86
7.4.130.0080.01016.61
7.4.120.0130.00316.43
7.4.110.0120.00616.61
7.4.100.0180.00316.51
7.4.90.0030.01516.51
7.4.80.0140.00319.39
7.4.70.0110.01416.64
7.4.60.0080.00816.66
7.4.50.0040.01516.48
7.4.40.0140.00416.56
7.4.30.0140.00416.61
7.4.00.0110.00414.98
7.3.330.0050.00013.32
7.3.320.0020.00213.32
7.3.310.0030.00316.36
7.3.300.0060.00016.25
7.3.290.0080.00816.32
7.3.280.0060.01116.32
7.3.270.0120.00617.40
7.3.260.0060.01316.33
7.3.250.0060.01116.46
7.3.240.0110.00916.51
7.3.230.0090.00816.58
7.3.210.0080.00816.31
7.3.200.0150.00316.43
7.3.190.0120.00616.54
7.3.180.0180.00416.33
7.3.170.0140.00716.60
7.3.160.0120.00316.44
7.2.330.0100.01316.78
7.2.320.0000.01616.50
7.2.310.0090.00816.70
7.2.300.0090.00916.46
7.2.290.0110.00616.64
7.2.60.0030.01016.87
7.2.00.0000.01219.07
7.1.200.0040.00815.61
7.1.100.0030.00917.83
7.1.70.0080.00816.78
7.1.60.0100.01319.48
7.1.50.0070.01516.84
7.1.00.0070.07022.36
7.0.200.0760.00314.23
7.0.60.0070.08319.97
7.0.50.0070.08317.95
7.0.40.0100.08719.97
7.0.30.0030.08020.08
7.0.20.0130.04720.07
7.0.10.0170.07720.12
7.0.00.0070.03720.22
5.6.280.0130.06320.94
5.6.210.0070.05020.72
5.6.200.0030.08318.18
5.6.190.0100.08320.47
5.6.180.0230.06320.34
5.6.170.0230.07320.39
5.6.160.0030.08720.71
5.6.150.0070.04018.27
5.6.140.0030.04318.19
5.6.130.0000.08718.17
5.6.120.0100.08321.03
5.6.110.0070.08320.99
5.6.100.0030.07721.11
5.6.90.0130.06721.13
5.6.80.0070.05720.40
5.5.350.4330.04320.37
5.5.340.0100.06017.92
5.5.330.0030.04320.40
5.5.320.0200.03720.27
5.5.310.0270.04720.30
5.5.300.0100.08317.94
5.5.290.0030.07317.95
5.5.280.0100.07720.74
5.5.270.0000.04720.65
5.5.260.0100.09020.68
5.5.250.0170.07320.66
5.5.240.0230.07020.27

preferences:
48.96 ms | 400 KiB | 5 Q