3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected const BLOP = 1; public function get() { return static::BLOP; } public function get2() { return self::BLOP; } } class B extends A { protected const BLOP = 2; } $o = new B(); var_dump($o->get(), $o->get2());

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.0030.01418.43
8.3.50.0130.00622.99
8.3.40.0030.01818.53
8.3.30.0170.00318.67
8.3.20.0080.00020.34
8.3.10.0030.00523.61
8.3.00.0080.00020.77
8.2.180.0110.00418.41
8.2.170.0070.00722.96
8.2.160.0070.00719.06
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0050.00220.59
8.2.120.0070.00026.35
8.2.110.0090.00022.08
8.2.100.0040.00717.90
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0000.00817.91
8.2.50.0040.00418.10
8.2.40.0000.00820.46
8.2.30.0090.00019.21
8.2.20.0060.00317.74
8.2.10.0000.00717.99
8.2.00.0070.00017.92
8.1.280.0030.01025.92
8.1.270.0040.00423.99
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0090.00023.98
8.1.230.0040.00722.63
8.1.220.0050.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0030.00517.36
8.1.180.0000.00818.10
8.1.170.0060.00318.34
8.1.160.0040.00419.07
8.1.150.0040.00418.88
8.1.140.0070.00019.61
8.1.130.0030.00517.70
8.1.120.0000.00717.46
8.1.110.0000.00717.32
8.1.100.0050.00217.41
8.1.90.0000.00717.47
8.1.80.0000.00717.44
8.1.70.0050.00317.46
8.1.60.0000.01217.54
8.1.50.0030.00617.51
8.1.40.0030.00617.48
8.1.30.0030.00617.59
8.1.20.0040.00417.63
8.1.10.0000.00717.51
8.1.00.0060.00317.50
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0030.00318.48
8.0.270.0000.00817.16
8.0.260.0000.00617.25
8.0.250.0000.00716.97
8.0.240.0040.00416.82
8.0.230.0000.00816.91
8.0.220.0000.00716.78
8.0.210.0030.00316.87
8.0.200.0030.00316.96
8.0.190.0040.00416.91
8.0.180.0000.00916.95
8.0.170.0030.00616.87
8.0.160.0040.00416.85
8.0.150.0040.00416.73
8.0.140.0080.00416.80
8.0.130.0030.00313.27
8.0.120.0050.00316.87
8.0.110.0070.00016.80
8.0.100.0050.00216.75
8.0.90.0000.00816.78
8.0.80.0040.01316.88
8.0.70.0030.00516.88
8.0.60.0000.00716.90
8.0.50.0070.00016.75
8.0.30.0110.00916.86
8.0.20.0110.00817.40
8.0.10.0030.00416.88
8.0.00.0030.01216.72
7.4.330.0000.00515.08
7.4.320.0000.00616.60
7.4.300.0070.00016.62
7.4.290.0030.00316.51
7.4.280.0000.00816.54
7.4.270.0000.00616.51
7.4.260.0030.00316.50
7.4.250.0030.00516.47
7.4.240.0030.00316.47
7.4.230.0000.00716.62
7.4.220.0130.01216.55
7.4.210.0070.00616.51
7.4.200.0000.00716.60
7.4.160.0030.01216.53
7.4.150.0060.01117.40
7.4.140.0130.00617.86
7.4.130.0120.00816.46
7.4.120.0090.00816.49
7.4.110.0140.00316.64
7.4.100.0240.00016.56
7.4.90.0060.01516.36
7.4.80.0070.01019.39
7.4.70.0100.00716.60
7.4.60.0090.00616.35
7.4.50.0030.01016.34
7.4.40.0100.00716.57
7.4.30.0070.01016.51
7.3.330.0030.00313.07
7.3.320.0030.00213.15
7.3.310.0000.00816.30
7.3.300.0000.00616.13
7.3.290.0030.00316.22
7.3.280.0100.00916.28
7.3.270.0070.01017.40
7.3.260.0100.00816.39
7.3.250.0100.00616.42
7.3.240.0040.01216.29
7.3.230.0100.00716.39
7.3.210.0000.01616.61
7.3.200.0120.00916.61
7.3.190.0100.00616.24
7.3.180.0060.00916.43
7.3.170.0060.01016.21
7.3.160.0090.01016.31
7.2.330.0030.01416.52
7.2.320.0140.00316.75
7.2.310.0000.01916.75
7.2.300.0110.00516.61
7.2.290.0090.00916.68
7.1.00.0000.08022.33
7.0.70.0330.06719.94
7.0.60.0380.07019.94
7.0.50.0230.06320.29
7.0.40.0250.07220.34
7.0.30.0320.06520.31
7.0.20.0320.05520.35
7.0.10.0230.06520.25
7.0.00.0270.07320.26
5.6.220.0320.06320.58
5.6.210.0270.07020.56
5.6.200.0280.06021.08
5.6.190.0220.06221.15
5.6.180.0250.07021.05
5.6.170.0270.06321.10
5.6.160.0200.06521.12
5.6.150.0220.06321.13
5.6.140.0250.06321.05
5.6.130.0270.07521.10
5.6.120.0320.06021.06
5.6.110.0320.06321.09
5.6.100.0270.06221.09
5.6.90.0200.06521.04
5.6.80.0320.05520.54
5.6.70.0230.07020.38
5.6.60.0350.06320.43
5.6.50.0370.05720.46
5.6.40.0170.05820.44
5.6.30.0200.06520.39
5.6.20.0280.05220.42
5.6.10.0230.05720.45
5.6.00.0270.05720.41
5.5.360.0220.07320.39
5.5.350.0280.06720.45
5.5.340.0230.06220.78
5.5.330.0200.06220.84
5.5.320.0270.06220.96
5.5.310.0300.07020.91
5.5.300.0250.05820.82
5.5.290.0300.05720.94
5.5.280.0370.07520.91
5.5.270.0350.06220.89
5.5.260.0180.08220.90
5.5.250.0350.05320.74
5.5.240.0250.06320.28
5.5.230.0350.06320.34
5.5.220.0250.05520.23
5.5.210.0270.06820.18
5.5.200.0280.05720.27
5.5.190.0230.05720.25
5.5.180.0280.05320.19
5.5.160.0250.05820.30
5.5.150.0300.06320.22
5.5.140.0220.05720.21
5.5.130.0320.05720.15
5.5.120.0220.06720.18
5.5.110.0220.06320.26
5.5.100.0280.05320.12
5.5.90.0230.05320.11
5.5.80.0280.04520.14
5.5.70.0270.05819.98
5.5.60.0220.05720.04
5.5.50.0220.05720.10
5.5.40.0330.04320.14
5.5.30.0250.06020.09
5.5.20.0170.06320.09
5.5.10.0250.06520.03
5.5.00.0230.06820.01

preferences:
35.54 ms | 401 KiB | 5 Q