3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { protected static $static = 'Parent class'; public static function staticVariable() { echo static::$static, PHP_EOL; } } class ChildClass extends ParentClass { public static $static = 'Child class'; public static function staticVariable() { echo static::$static, PHP_EOL; } } ParentClass::staticVariable(); ChildClass::staticVariable();

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.0150.00018.77
8.3.30.0110.00418.68
8.3.20.0040.00418.52
8.3.10.0030.00620.49
8.3.00.0050.00319.38
8.2.170.0070.00722.96
8.2.160.0130.00320.31
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00520.57
8.2.110.0000.01022.26
8.2.100.0120.00017.72
8.2.90.0060.00318.03
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0050.00317.80
8.2.50.0050.00318.07
8.2.40.0000.00818.22
8.2.30.0060.00317.94
8.2.20.0050.00519.33
8.2.10.0000.00717.60
8.2.00.0000.00717.55
8.1.270.0060.00324.66
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0030.00622.54
8.1.230.0040.00820.84
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.25
8.1.190.0040.00417.54
8.1.180.0040.00418.10
8.1.170.0030.00618.77
8.1.160.0040.00418.68
8.1.150.0040.00418.41
8.1.140.0050.00317.32
8.1.130.0030.00317.82
8.1.120.0040.00417.29
8.1.110.0000.00717.34
8.1.100.0030.00317.27
8.1.90.0050.00317.18
8.1.80.0040.00417.22
8.1.70.0000.00817.20
8.1.60.0000.00717.40
8.1.50.0040.00417.25
8.1.40.0050.00217.43
8.1.30.0050.00317.63
8.1.20.0030.00617.45
8.1.10.0050.00217.43
8.1.00.0070.00317.41
8.0.300.0080.00020.09
8.0.290.0030.00516.63
8.0.280.0040.00418.45
8.0.270.0030.00317.20
8.0.260.0070.00016.68
8.0.250.0040.00416.94
8.0.240.0000.00817.00
8.0.230.0030.00316.91
8.0.220.0070.00016.77
8.0.210.0000.00616.70
8.0.200.0000.00716.96
8.0.190.0070.00016.95
8.0.180.0000.00716.86
8.0.170.0060.00316.73
8.0.160.0040.00416.86
8.0.150.0040.00416.64
8.0.140.0040.00416.62
8.0.130.0050.00013.25
8.0.120.0040.00416.54
8.0.110.0000.00716.82
8.0.100.0000.00716.86
8.0.90.0000.00816.82
8.0.80.0070.00716.80
8.0.70.0000.00716.64
8.0.60.0040.00416.62
8.0.50.0040.00416.74
8.0.30.0140.00416.92
8.0.20.0050.01416.80
8.0.10.0040.00416.84
8.0.00.0130.01016.92
7.4.330.0000.00512.87
7.4.320.0000.00716.38
7.4.300.0000.00616.33
7.4.290.0060.00016.44
7.4.280.0050.00216.52
7.4.270.0000.00716.52
7.4.260.0000.00713.20
7.4.250.0040.00416.48
7.4.240.0020.00516.36
7.4.230.0000.00716.55
7.4.220.0100.00716.57
7.4.210.0100.00516.52
7.4.200.0070.00016.17
7.4.190.0030.00316.59
7.4.160.0030.01316.41
7.4.150.0080.01216.58
7.4.140.0090.01116.43
7.4.130.0070.01216.47
7.4.120.0090.00816.35
7.4.110.0000.01716.23
7.4.100.0070.01016.49
7.4.90.0130.00816.25
7.4.80.0090.00619.39
7.4.70.0040.01316.49
7.4.60.0130.00316.48
7.4.50.0000.00616.37
7.4.40.0030.01316.21
7.4.30.0110.00716.64
7.4.00.0070.01015.07
7.3.330.0000.00713.29
7.3.320.0030.00313.12
7.3.310.0070.00016.43
7.3.300.0000.00716.18
7.3.290.0090.01216.27
7.3.280.0080.00716.22
7.3.270.0060.01216.38
7.3.260.0060.01016.27
7.3.250.0110.00816.23
7.3.240.0160.00016.28
7.3.230.0100.00616.58
7.3.210.0130.00316.53
7.3.200.0080.00816.39
7.3.190.0080.00816.23
7.3.180.0070.01716.43
7.3.170.0060.00916.49
7.3.160.0030.01216.38
7.3.120.0060.00914.52
7.2.330.0120.00416.65
7.2.320.0130.00716.72
7.2.310.0150.00716.73
7.2.300.0080.01416.63
7.2.290.0090.00916.75
7.2.00.0030.01018.87
7.1.100.0060.00617.78
7.1.70.0000.01116.73
7.1.60.0130.01019.31
7.1.50.0120.00916.80
7.1.00.0030.06322.51
7.0.200.0160.01016.48
7.0.140.0100.06721.97
7.0.120.0070.07022.18
7.0.60.0070.06720.02
7.0.50.0070.08017.84
7.0.40.0100.04720.11
7.0.30.0170.07720.02
7.0.20.0000.05720.23
7.0.10.0100.08720.02
7.0.00.0070.04320.25
5.6.280.0030.07321.12
5.6.210.0130.07320.73
5.6.200.0070.05718.25
5.6.190.0130.07320.33
5.6.180.0030.04320.32
5.6.170.0130.06720.45
5.6.160.0030.04320.77
5.6.150.0100.04720.41
5.6.140.0100.08020.42
5.6.130.0030.09020.41
5.6.120.0070.07720.50
5.6.110.0030.09020.50
5.6.100.0200.04720.42
5.6.90.0070.04320.50
5.6.80.0030.06319.79
5.6.70.0100.03719.70
5.6.60.0030.04319.55
5.6.50.0000.05019.72
5.6.40.0030.04019.55
5.6.30.0030.04019.79
5.6.20.0070.03719.52
5.6.10.0000.04319.59
5.6.00.0070.03719.75
5.5.350.0200.03320.44
5.5.340.0070.05717.95
5.5.330.0030.06320.19
5.5.320.0130.07720.38
5.5.310.0070.05320.27
5.5.300.0030.05020.23
5.5.290.0030.07020.29
5.5.280.0070.06320.12
5.5.270.0030.08720.23
5.5.260.0200.05720.20
5.5.250.0070.08320.05
5.5.240.0170.04319.53
5.5.230.0070.08019.51
5.5.220.0100.03719.67
5.5.210.0070.04019.35
5.5.200.0070.04719.67
5.5.190.0030.04019.59
5.5.180.0100.03319.32
5.5.160.0030.04019.55
5.5.150.0030.05319.66
5.5.140.0030.04019.48
5.5.130.0000.04319.46
5.5.120.0100.04019.64
5.5.110.0030.03719.66
5.5.100.0030.04019.46
5.5.90.0070.03319.28
5.5.80.0130.03019.54
5.5.70.0070.03719.28
5.5.60.0030.03719.54
5.5.50.0030.04319.38
5.5.40.0000.04319.61
5.5.30.0030.03719.42
5.5.20.0030.03719.29
5.5.10.0070.03719.49
5.5.00.0070.03719.43
5.4.450.0100.05019.40
5.4.440.0000.05319.17
5.4.430.0070.07719.46
5.4.420.0000.07719.40
5.4.410.0030.04719.38
5.4.400.0030.04019.19
5.4.390.0000.04319.24
5.4.380.0070.03719.11
5.4.370.0030.03718.94
5.4.360.0170.03019.20
5.4.350.0000.04318.94
5.4.340.0030.04018.92
5.4.320.0000.04019.16
5.4.310.0100.03018.87
5.4.300.0100.04018.92
5.4.290.0030.03719.23
5.4.280.0000.04019.25
5.4.270.0030.03719.15
5.4.260.0070.03319.00
5.4.250.0070.03319.07
5.4.240.0030.03719.20
5.4.230.0100.03018.97
5.4.220.0130.03019.14
5.4.210.0130.02719.14
5.4.200.0100.03019.15
5.4.190.0100.03719.00
5.4.180.0070.03318.84
5.4.170.0070.03318.96
5.4.160.0000.04019.22
5.4.150.0070.03719.13
5.4.140.0000.04716.59
5.4.130.0000.03716.54
5.4.120.0030.03716.34
5.4.110.0000.04016.58
5.4.100.0030.04016.37
5.4.90.0000.03716.35
5.4.80.0030.03716.43
5.4.70.0030.04316.70
5.4.60.0070.05316.42
5.4.50.0030.04316.36
5.4.40.0070.05316.39
5.4.30.0100.03716.64
5.4.20.0100.06316.42
5.4.10.0000.07716.50
5.4.00.0030.05715.99
5.3.290.0070.03314.68
5.3.280.0070.03714.74
5.3.270.0030.03714.62
5.3.260.0000.04014.64
5.3.250.0030.03714.75
5.3.240.0070.03314.64
5.3.230.0000.04314.61
5.3.220.0030.04014.49
5.3.210.0030.04014.58
5.3.200.0030.05014.62
5.3.190.0000.04314.57
5.3.180.0030.04014.59
5.3.170.0000.08314.72
5.3.160.0100.07014.45
5.3.150.0070.03314.60
5.3.140.0100.03014.71
5.3.130.0130.07714.57
5.3.120.0070.03714.57
5.3.110.0100.08014.71
5.3.100.0030.09014.07
5.3.90.0030.05014.09
5.3.80.0030.04014.08
5.3.70.0030.07314.17
5.3.60.0030.07314.01
5.3.50.0130.07013.98
5.3.40.0030.03713.92
5.3.30.0170.03313.80
5.3.20.0000.05013.72
5.3.10.0000.03713.68
5.3.00.0030.07013.61
5.2.170.0070.06011.06
5.2.160.0070.03311.14
5.2.150.0100.02311.14
5.2.140.0000.03711.11
5.2.130.0030.06311.11
5.2.120.0000.04711.05
5.2.110.0030.04011.15
5.2.100.0000.03711.16
5.2.90.0100.05011.10
5.2.80.0070.06011.05
5.2.70.0030.06311.10
5.2.60.0000.05311.20
5.2.50.0130.05311.01
5.2.40.0000.04310.96
5.2.30.0070.03011.03
5.2.20.0000.03011.11
5.2.10.0000.06310.89
5.2.00.0030.06310.60
5.1.60.0070.0309.99
5.1.50.0030.0539.98
5.1.40.0030.05710.03
5.1.30.0030.05710.33
5.1.20.0070.03010.36
5.1.10.0000.0309.98
5.1.00.0030.04710.21
5.0.50.0100.0408.55
5.0.40.0030.0208.39
5.0.30.0000.0678.30
5.0.20.0030.0438.26
5.0.10.0030.0438.33
5.0.00.0000.0578.16
4.4.90.0030.0376.44
4.4.80.0070.0206.44
4.4.70.0000.0376.44
4.4.60.0030.0376.44
4.4.50.0000.0406.44
4.4.40.0000.0306.44
4.4.30.0000.0236.44
4.4.20.0000.0306.45
4.4.10.0000.0236.45
4.4.00.0030.0336.45
4.3.110.0000.0376.45
4.3.100.0030.0376.45
4.3.90.0000.0376.45
4.3.80.0030.0436.45
4.3.70.0100.0176.45
4.3.60.0000.0236.45
4.3.50.0030.0336.45
4.3.40.0000.0306.45
4.3.30.0000.0176.45
4.3.20.0000.0376.45
4.3.10.0030.0176.45
4.3.00.0030.0236.45

preferences:
31.22 ms | 400 KiB | 5 Q