3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const HIGH = 0; public function getStatic() { return static::HIGH; } public function getSelf() { return self::HIGH; } } class B extends A { const HIGH = 100; } $a = new A(); $b = new B(); var_dump([ "a" => [ "self" => $a->getSelf(), "static" => $a->getStatic() ], "b" => [ "self" => $b->getSelf(), "static" => $b->getStatic() ] ]);

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.30.0120.00418.54
8.3.20.0040.00418.65
8.3.10.0050.00321.90
8.3.00.0030.00720.92
8.2.160.0000.01519.00
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.66
8.2.110.0060.00320.57
8.2.100.0090.00317.93
8.2.90.0040.00419.14
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00617.92
8.2.50.0000.00818.10
8.2.40.0000.00720.46
8.2.30.0070.00020.60
8.2.20.0040.00417.85
8.2.10.0000.00818.11
8.2.00.0040.00418.10
8.1.270.0080.00023.77
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0000.00923.83
8.1.230.0080.00419.10
8.1.220.0050.00517.74
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0000.00817.12
8.1.180.0030.00618.10
8.1.170.0050.00318.50
8.1.160.0040.00419.04
8.1.150.0070.00418.82
8.1.140.0020.00519.48
8.1.130.0000.00717.60
8.1.120.0050.00217.35
8.1.110.0040.00317.43
8.1.100.0000.00717.43
8.1.90.0070.00017.37
8.1.80.0040.00417.50
8.1.70.0000.00717.41
8.1.60.0040.00417.54
8.1.50.0050.00317.50
8.1.40.0040.00417.54
8.1.30.0050.00317.54
8.1.20.0060.00317.64
8.1.10.0040.00417.37
8.1.00.0070.00017.43
8.0.300.0080.00018.77
8.0.290.0080.00016.63
8.0.280.0080.00018.35
8.0.270.0040.00417.29
8.0.260.0040.00417.25
8.0.250.0070.00016.94
8.0.240.0080.00016.84
8.0.230.0000.00616.81
8.0.220.0040.00416.88
8.0.210.0070.00016.79
8.0.200.0000.00716.83
8.0.190.0000.00716.94
8.0.180.0050.00316.84
8.0.170.0000.00816.80
8.0.160.0060.00317.00
8.0.150.0070.00016.79
8.0.140.0000.00816.87
8.0.130.0030.00313.24
8.0.120.0000.00716.72
8.0.110.0000.00716.76
8.0.100.0000.00716.95
8.0.90.0080.00016.76
8.0.80.0030.01216.81
8.0.70.0000.00716.86
8.0.60.0030.00516.78
8.0.50.0040.00416.84
8.0.30.0120.00617.03
8.0.20.0070.01217.40
8.0.10.0000.00716.98
8.0.00.0090.01316.77
7.4.330.0000.00515.08
7.4.320.0060.00016.48
7.4.300.0030.00316.59
7.4.290.0030.00516.43
7.4.280.0040.00416.58
7.4.270.0060.00016.57
7.4.260.0040.00416.53
7.4.250.0070.00016.51
7.4.240.0030.00316.40
7.4.230.0030.00316.61
7.4.220.0040.01516.46
7.4.210.0070.00716.45
7.4.200.0030.00316.69
7.4.150.0060.01317.40
7.4.140.0130.00517.86
7.4.130.0090.00916.54
7.4.120.0100.01016.43
7.4.110.0060.01216.69
7.4.100.0030.01416.30
7.4.90.0040.01416.43
7.4.80.0100.01019.39
7.4.70.0030.01316.52
7.4.60.0090.00616.55
7.4.50.0090.00616.34
7.4.40.0080.01116.66
7.4.30.0140.00416.50
7.4.10.0000.01815.13
7.4.00.0060.00814.85
7.3.330.0000.00513.07
7.3.320.0030.00313.16
7.3.310.0040.00416.46
7.3.300.0040.00416.31
7.3.290.0110.00716.28
7.3.280.0080.00816.27
7.3.270.0100.00717.40
7.3.260.0090.00916.18
7.3.250.0140.00516.24
7.3.240.0090.00916.33
7.3.230.0170.00016.55
7.3.210.0070.01716.31
7.3.200.0190.00316.61
7.3.190.0030.01316.33
7.3.180.0160.00616.48
7.3.170.0110.00416.55
7.3.160.0070.01016.25
7.3.130.0150.00314.59
7.3.120.0070.00715.01
7.3.110.0070.01114.58
7.3.100.0100.01014.77
7.3.90.0110.00214.81
7.3.80.0030.01014.69
7.3.70.0050.00614.65
7.3.60.0080.00814.83
7.3.50.0030.00914.53
7.3.40.0070.00314.77
7.3.30.0000.01014.83
7.3.20.0080.00316.47
7.3.10.0020.01016.55
7.3.00.0050.01016.61
7.2.330.0090.01316.46
7.2.320.0140.00416.81
7.2.310.0100.00716.64
7.2.300.0090.00916.65
7.2.290.0040.01216.78
7.2.260.0120.00315.20
7.2.250.0070.01015.01
7.2.240.0080.00815.01
7.2.230.0030.01114.97
7.2.220.0050.01014.90
7.2.210.0080.00515.06
7.2.200.0090.00614.90
7.2.190.0120.00514.82
7.2.180.0060.00715.13
7.2.170.0050.00715.07
7.2.160.0090.00714.99
7.2.150.0080.00417.02
7.2.140.0020.01016.82
7.2.130.0070.01016.48
7.2.120.0040.01016.79
7.2.110.0040.01116.88
7.2.100.0020.01116.81
7.2.90.0040.00916.82
7.2.80.0080.00716.92
7.2.70.0110.00316.81
7.2.60.0070.00416.93
7.2.50.0070.00916.87
7.2.40.0100.00516.78
7.2.30.0080.00716.86
7.2.20.0110.00516.99
7.2.10.0040.00917.00
7.2.00.0060.00817.61
7.1.330.0130.00315.57
7.1.320.0100.00615.71
7.1.310.0060.00515.76
7.1.300.0070.00815.72
7.1.290.0070.00515.69
7.1.280.0080.00315.52
7.1.270.0060.00515.51
7.1.260.0050.01015.64
7.1.250.0080.00415.69
7.1.240.0030.00615.66
7.1.230.0090.00515.73
7.1.220.0050.00815.56
7.1.210.0070.00515.67
7.1.200.0060.00615.63
7.1.190.0050.00715.64
7.1.180.0050.00915.55
7.1.170.0060.00515.70
7.1.160.0050.01015.60
7.1.150.0060.00915.46
7.1.140.0050.00915.58
7.1.130.0060.00615.61
7.1.120.0070.00615.74
7.1.110.0020.01215.67
7.1.100.0100.00715.96
7.1.90.0050.00915.70
7.1.80.0070.00615.60
7.1.70.0050.00516.06
7.1.60.0070.00916.82
7.1.50.0050.00615.68
7.1.40.0070.00315.64
7.1.30.0030.00915.74
7.1.20.0050.00915.66
7.1.10.0040.01015.63
7.1.00.0020.03217.73
7.0.330.0050.00515.16
7.0.320.0020.00815.28
7.0.310.0040.00815.10
7.0.300.0050.00615.10
7.0.290.0080.00515.28
7.0.280.0090.00315.31
7.0.270.0010.01215.31
7.0.260.0020.01215.21
7.0.250.0050.00815.45
7.0.240.0030.00815.37
7.0.230.0090.00515.37
7.0.220.0050.00715.41
7.0.210.0080.00515.35
7.0.200.0040.00815.76
7.0.190.0060.00615.30
7.0.180.0080.00515.35
7.0.170.0060.00815.15
7.0.160.0040.01115.34
7.0.150.0020.00915.28
7.0.140.0030.00915.32
7.0.130.0070.00715.27
7.0.120.0060.00815.12
7.0.110.0100.00215.24
7.0.100.0120.02816.86
7.0.90.0050.03316.97
7.0.80.0110.01916.98
7.0.70.0110.02816.81
7.0.60.0120.01816.73
7.0.50.0100.03116.95
7.0.40.0050.02615.50
7.0.30.0110.02915.60
7.0.20.0090.02315.58
7.0.10.0060.03215.58
7.0.00.0090.02815.64
5.6.400.0090.00414.51
5.6.390.0030.00914.32
5.6.380.0110.00314.32
5.6.370.0080.00414.40
5.6.360.0000.01014.34
5.6.350.0060.00614.30
5.6.340.0020.01114.33
5.6.330.0100.00514.08
5.6.320.0070.00714.24
5.6.310.0020.01014.45
5.6.300.0090.00214.51
5.6.290.0060.01114.19
5.6.280.0050.03116.53
5.6.270.0030.00914.50
5.6.260.0050.00614.34
5.6.250.0080.03116.56
5.6.240.0060.03216.35
5.6.230.0100.02916.38
5.6.220.0100.03316.25
5.6.210.0010.03916.24
5.6.200.0130.02916.39
5.6.190.0110.03216.58
5.6.180.0100.01716.61
5.6.170.0060.02916.56
5.6.160.0050.02816.45
5.6.150.0070.02716.52
5.6.140.0070.03116.46
5.6.130.0060.03016.54
5.6.120.0090.02816.49
5.6.110.0060.03516.59
5.6.100.0060.02716.56
5.6.90.0030.03616.63
5.6.80.0070.02216.18
5.6.70.0050.03016.17
5.6.60.0060.03016.37
5.6.50.0050.03116.29
5.6.40.0060.03016.31
5.6.30.0060.03116.38
5.6.20.0060.02016.22
5.6.10.0040.03316.15
5.6.00.0140.02316.30
5.5.380.0050.02116.25
5.5.370.0030.03516.41
5.5.360.0030.03416.13
5.5.350.0060.03116.24
5.5.340.0030.03516.34
5.5.330.0040.03416.41
5.5.320.0050.03016.59
5.5.310.0080.02016.31
5.5.300.0010.02416.42
5.5.290.0090.02816.40
5.5.280.0050.02816.41
5.5.270.0100.02916.35
5.5.260.0050.03216.45
5.5.250.0040.02816.36
5.5.240.0100.02916.05
5.5.230.0080.03216.06
5.5.220.0040.03316.10
5.5.210.0060.02116.28
5.5.200.0050.02216.19
5.5.190.0080.02716.19
5.5.180.0060.02616.02
5.5.170.0020.00913.96
5.5.160.0070.02516.14
5.5.150.0050.03316.08
5.5.140.0040.02716.08
5.5.130.0070.03116.16
5.5.120.0060.03116.05
5.5.110.0030.03016.07
5.5.100.0100.01816.19
5.5.90.0050.02516.15
5.5.80.0060.02816.05
5.5.70.0070.03116.14
5.5.60.0040.03316.14
5.5.50.0140.02216.15
5.5.40.0090.02716.05
5.5.30.0080.02916.13
5.5.20.0060.02516.05
5.5.10.0050.01816.04
5.5.00.0020.03516.01
5.4.450.0130.07319.27
5.4.440.0100.09019.37
5.4.430.0130.06019.36
5.4.420.0170.07319.53
5.4.410.0030.06719.10
5.4.400.0070.08318.88
5.4.390.0030.06719.21
5.4.380.0070.07719.23
5.4.370.0030.08319.25
5.4.360.0030.04719.23
5.4.350.0100.06318.91
5.4.340.0070.07319.18
5.4.320.0030.05019.07
5.4.310.0030.06718.87
5.4.300.0030.07718.95
5.4.290.0100.07019.13
5.4.280.0000.08319.12
5.4.270.0070.05319.18
5.4.260.0070.04319.02
5.4.250.0030.07719.17
5.4.240.0100.07019.20
5.4.230.0070.07719.03
5.4.220.0100.07319.22
5.4.210.0030.07719.13
5.4.200.0000.05318.86
5.4.190.0030.07719.04
5.4.180.0130.05719.02
5.4.170.0030.06019.03
5.4.160.0100.07719.10
5.4.150.0000.08019.07
5.4.140.0100.07316.48
5.4.130.0070.06716.56
5.4.120.0100.07016.48
5.4.110.0070.04016.55
5.4.100.0070.06716.54
5.4.90.0100.06016.49
5.4.80.0170.05316.50
5.4.70.0070.04316.48
5.4.60.0100.06316.46
5.4.50.0070.07316.50
5.4.40.0070.04316.35
5.4.30.0030.07016.31
5.4.20.0100.03716.35
5.4.10.0070.07016.36
5.4.00.0100.07015.71
5.3.290.0000.04314.74
5.3.280.0030.04714.58
5.3.270.0070.07714.63
5.3.260.0070.07314.66
5.3.250.0030.06014.70
5.3.240.0130.06014.65
5.3.230.0070.04014.67
5.3.220.0070.07314.68
5.3.210.0070.06014.63
5.3.200.0070.06714.54
5.3.190.0100.07014.63
5.3.180.0030.07014.68
5.3.170.0070.03714.58
5.3.160.0070.07014.59
5.3.150.0070.06014.56
5.3.140.0130.06314.55
5.3.130.0030.04714.47
5.3.120.0100.07014.62
5.3.110.0070.07014.50
5.3.100.0130.07313.99
5.3.90.0030.07313.91
5.3.80.0030.05713.91
5.3.70.0000.05014.16
5.3.60.0000.04014.02
5.3.50.0070.03313.96
5.3.40.0030.03714.07
5.3.30.0000.04013.93
5.3.20.0070.02713.83
5.3.10.0000.03013.56
5.3.00.0000.03713.76
5.2.170.0070.02712.90
5.2.160.0000.03012.90
5.2.150.0030.03312.90
5.2.140.0030.03012.90
5.2.130.0030.02712.90
5.2.120.0000.03312.90
5.2.110.0000.03012.90
5.2.100.0000.03012.90
5.2.90.0030.03012.90
5.2.80.0030.02712.90
5.2.70.0030.03012.90
5.2.60.0070.03012.90
5.2.50.0000.03012.90
5.2.40.0030.02712.90
5.2.30.0070.02712.90
5.2.20.0030.02312.90
5.2.10.0070.04712.90
5.2.00.0000.02312.90
5.1.60.0100.03012.90
5.1.50.0000.03012.90
5.1.40.0070.03012.90
5.1.30.0030.04312.90
5.1.20.0030.02312.90
5.1.10.0000.04312.90
5.1.00.0030.03012.90
5.0.50.0000.02312.90
5.0.40.0030.02012.90
5.0.30.0000.03712.90
5.0.20.0000.04012.90
5.0.10.0030.03312.90
5.0.00.0000.03312.90
4.4.90.0000.01312.90
4.4.80.0000.01712.90
4.4.70.0030.01312.90
4.4.60.0000.01712.90
4.4.50.0000.02312.90
4.4.40.0070.03712.90
4.4.30.0000.03012.90
4.4.20.0030.03312.90
4.4.10.0030.01312.90
4.4.00.0000.02312.90
4.3.110.0000.01712.90
4.3.100.0000.01712.90
4.3.90.0000.01712.90
4.3.80.0000.02712.90
4.3.70.0030.01312.90
4.3.60.0030.01312.90
4.3.50.0030.01312.90
4.3.40.0000.03012.90
4.3.30.0000.02012.90
4.3.20.0000.01712.90
4.3.10.0000.01712.90
4.3.00.0000.01312.90

preferences:
25.73 ms | 401 KiB | 5 Q