3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface b { public const PRIORITY_DEFAULT = 1024; public const PRIORITY_LOW = 2000; public function getPriority():int; } class a implements b { public function __construct() { echo self::PRIORITY_DEFAULT; } public function getPriority():int { return self::PRIORITY_LOW; } } $a = new a(); echo "\n".$a->getPriority();

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.0140.00416.50
8.3.50.0140.00717.98
8.3.40.0120.00620.39
8.3.30.0000.01418.73
8.3.20.0050.00224.18
8.3.10.0050.00324.66
8.3.00.0100.00726.16
8.2.180.0140.00725.92
8.2.170.0140.00719.08
8.2.160.0110.00422.96
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0070.00026.35
8.2.110.0040.00820.94
8.2.100.0040.00817.80
8.2.90.0040.00418.97
8.2.80.0030.00517.97
8.2.70.0030.00517.38
8.2.60.0060.00318.04
8.2.50.0080.00018.07
8.2.40.0040.00418.16
8.2.30.0040.00418.05
8.2.20.0040.00418.05
8.2.10.0030.00520.98
8.2.00.0000.00719.24
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0040.00428.09
8.1.250.0100.00328.09
8.1.240.0060.00323.83
8.1.230.0060.00617.47
8.1.220.0050.00517.76
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0060.00318.45
8.1.160.0050.00318.84
8.1.150.0000.00818.76
8.1.140.0000.00718.98
8.1.130.0030.00320.18
8.1.120.0030.00617.36
8.1.110.0030.00517.45
8.1.100.0060.00317.34
8.1.90.0030.00317.49
8.1.80.0090.00017.38
8.1.70.0030.00517.45
8.1.60.0040.00417.46
8.1.50.0050.00317.44
8.1.40.0070.00017.45
8.1.30.0040.00417.67
8.1.20.0030.00517.64
8.1.10.0000.00817.59
8.1.00.0040.00417.48
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0000.00818.50
8.0.270.0070.00017.99
8.0.260.0030.00318.43
8.0.250.0030.00316.96
8.0.240.0030.00316.95
8.0.230.0000.00716.83
8.0.220.0040.00316.84
8.0.210.0000.00716.79
8.0.200.0030.00316.88
8.0.190.0000.00716.84
8.0.180.0000.00716.84
8.0.170.0000.00816.81
8.0.160.0040.00416.73
8.0.150.0070.00516.86
8.0.140.0040.00416.73
8.0.130.0050.00013.29
8.0.120.0040.00416.78
8.0.110.0070.00016.76
8.0.100.0000.00716.76
8.0.90.0040.00417.00
8.0.80.0100.00516.84
8.0.70.0090.00016.72
8.0.60.0040.00416.74
8.0.50.0040.00416.80
8.0.30.0030.01317.00
8.0.20.0120.00717.03
8.0.10.0000.00816.84
8.0.00.0060.01816.46
7.4.330.0050.00015.55
7.4.320.0000.00616.57
7.4.300.0060.00016.44
7.4.290.0040.00416.42
7.4.280.0040.00416.50
7.4.270.0070.00016.64
7.4.260.0050.00013.20
7.4.250.0050.00316.43
7.4.240.0000.00716.45
7.4.230.0000.00716.58
7.4.220.0030.00316.35
7.4.210.0070.00816.57
7.4.200.0030.00316.50
7.4.130.0120.00916.42
7.4.120.0170.01216.45
7.4.110.0120.00616.47
7.4.100.0040.01316.38
7.4.90.0110.01016.37
7.4.80.0150.00516.40
7.4.70.0100.00716.31
7.4.60.0070.01116.23
7.4.50.0100.01016.33
7.4.40.0100.00916.52
7.4.30.0090.01016.34
7.4.20.0100.00716.27
7.4.10.0080.00916.42
7.4.00.0060.01016.57
7.3.330.0040.00416.14
7.3.320.0070.00013.16
7.3.310.0030.00616.34
7.3.300.0000.00716.30
7.3.290.0090.01016.24
7.3.260.0100.00716.20
7.3.230.0110.00716.34
7.3.220.0100.00816.33
7.3.210.0090.00816.16
7.3.200.0080.01116.18
7.3.190.0110.00516.28
7.3.180.0110.00816.17
7.3.170.0140.00616.29
7.3.160.0120.00616.21
7.3.150.0100.00816.16
7.3.140.0080.00816.29
7.3.130.0060.01016.25
7.3.120.0060.01116.32
7.3.110.0030.01516.27
7.3.100.0110.00616.24
7.3.90.0090.00816.23
7.3.80.0120.00516.13
7.3.70.0130.01016.01
7.3.60.0100.00616.12
7.3.50.0070.00916.02
7.3.40.0100.00916.18
7.3.30.0070.00916.19
7.3.20.0130.00416.10
7.3.10.0120.00616.31
7.3.00.0090.00816.12
7.2.330.0070.01016.35
7.2.320.0100.01016.52
7.2.310.0130.01116.44
7.2.300.0120.00616.53
7.2.290.0110.00816.61
7.2.280.0130.00516.41
7.2.270.0080.01016.35
7.2.260.0060.01116.44
7.2.250.0110.01016.62
7.2.240.0060.01216.73
7.2.230.0060.01216.49
7.2.220.0060.01216.47
7.2.210.0050.01416.48
7.2.200.0100.01016.42
7.2.190.0110.00616.38
7.2.180.0090.00916.46
7.2.170.0050.01216.50
7.2.160.0120.00616.37
7.2.150.0100.00816.68
7.2.140.0130.00616.36
7.2.130.0120.00616.56
7.2.120.0100.00816.58
7.2.110.0120.00716.38
7.2.100.0110.00716.41
7.2.90.0260.00816.53
7.2.80.0080.01116.70
7.2.70.0120.00916.52
7.2.60.0280.01316.65
7.2.50.0090.00816.77
7.2.40.0100.00816.54
7.2.30.0130.00516.36
7.2.20.0080.01116.47
7.2.10.0160.00116.47
7.2.00.0090.01016.50

preferences:
38.39 ms | 400 KiB | 5 Q