3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { static $what; static function change_what($where) { static::$what = $where; } static function show() { echo static::$what . PHP_EOL; } } class B extends A { static $what; static function change_what($where) { parent::change_what($where); } } class C extends A { static $what; static function change_what($where) { parent::change_what($where); } } B::change_what("b"); C::change_what("c"); B::show(); C::show();

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.0070.00716.50
8.3.50.0130.00318.44
8.3.40.0110.00318.80
8.3.30.0070.00719.21
8.3.20.0030.00520.34
8.3.10.0080.00021.76
8.3.00.0040.00420.90
8.2.180.0090.00925.92
8.2.170.0140.00319.00
8.2.160.0030.01022.96
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00519.54
8.2.110.0100.00021.00
8.2.100.0060.00617.38
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0050.00517.36
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0030.00518.20
8.2.30.0090.00017.92
8.2.20.0000.00717.69
8.2.10.0080.00018.00
8.2.00.0020.00517.54
8.1.280.0120.00325.92
8.1.270.0060.00320.66
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00023.84
8.1.230.0120.00018.72
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0030.00617.13
8.1.180.0070.00018.10
8.1.170.0040.00420.44
8.1.160.0070.00021.97
8.1.150.0000.00718.89
8.1.140.0040.00417.46
8.1.130.0030.00317.87
8.1.120.0000.00717.48
8.1.110.0040.00417.43
8.1.100.0000.00717.44
8.1.90.0000.00717.48
8.1.80.0000.00717.44
8.1.70.0070.00017.41
8.1.60.0060.00317.63
8.1.50.0050.00317.40
8.1.40.0000.00817.55
8.1.30.0050.00317.53
8.1.20.0000.00717.56
8.1.10.0000.00717.57
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0000.00916.75
8.0.280.0000.00718.32
8.0.270.0030.00317.23
8.0.260.0060.00017.16
8.0.250.0000.00616.86
8.0.240.0000.00717.00
8.0.230.0000.00716.91
8.0.220.0020.00516.86
8.0.210.0030.00316.93
8.0.200.0000.00616.86
8.0.190.0000.00717.00
8.0.180.0060.00316.99
8.0.170.0000.00816.80
8.0.160.0040.00416.83
8.0.150.0000.00716.86
8.0.140.0020.00516.83
8.0.130.0060.00013.28
8.0.120.0050.00316.86
8.0.110.0040.00416.96
8.0.100.0070.00016.81
8.0.90.0000.00716.72
8.0.80.0060.00916.94
8.0.70.0040.00416.91
8.0.60.0040.00416.91
8.0.50.0070.00016.65
8.0.30.0130.00416.80
8.0.20.0140.00517.40
8.0.10.0050.00216.93
8.0.00.0030.01516.85
7.4.330.0020.00215.09
7.4.320.0070.00016.46
7.4.300.0000.00616.50
7.4.290.0030.00716.48
7.4.280.0060.00616.42
7.4.270.0030.00316.60
7.4.260.0090.00016.57
7.4.250.0040.00416.43
7.4.240.0030.00316.54
7.4.230.0030.00316.63
7.4.220.0170.01016.66
7.4.210.0140.00016.63
7.4.200.0000.00716.41
7.4.160.0150.00016.46
7.4.150.0120.00917.40
7.4.140.0180.00717.86
7.4.130.0110.00716.54
7.4.120.0080.01116.37
7.4.110.0120.00916.56
7.4.100.0150.00716.59
7.4.90.0060.01216.52
7.4.80.0070.01019.39
7.4.70.0170.00316.62
7.4.60.0060.01216.32
7.4.50.0000.00416.11
7.4.40.0100.00716.52
7.4.30.0090.00916.50
7.4.00.0100.00714.61
7.3.330.0030.00513.44
7.3.320.0000.00613.36
7.3.310.0030.00316.39
7.3.300.0060.00016.41
7.3.290.0070.00816.35
7.3.280.0100.01116.35
7.3.270.0140.00417.40
7.3.260.0180.00616.37
7.3.250.0100.00716.48
7.3.240.0110.00816.32
7.3.230.0090.01216.60
7.3.210.0100.00716.28
7.3.200.0030.01519.39
7.3.190.0060.01116.63
7.3.180.0070.01016.45
7.3.170.0100.00716.59
7.3.160.0170.00016.42
7.3.10.0090.00316.84
7.3.00.0060.00916.71
7.2.330.0080.00816.69
7.2.320.0030.01716.83
7.2.310.0130.00316.64
7.2.300.0160.00016.38
7.2.290.0060.01216.54
7.2.130.0060.00916.93
7.2.120.0120.00316.88
7.2.110.0100.00616.88
7.2.100.0090.00616.76
7.2.90.0030.01016.81
7.2.80.0060.00916.91
7.2.70.0090.00016.75
7.2.60.0030.01017.14
7.2.50.0090.00617.01
7.2.40.0060.00917.11
7.2.30.0070.00717.02
7.2.20.0070.00316.86
7.2.10.0050.00517.03
7.2.00.0000.01418.06
7.1.250.0060.00615.79
7.1.100.0030.01218.20
7.1.70.0060.00616.98
7.1.60.0120.01219.46
7.1.50.0030.01316.90
7.1.00.0030.07322.36
7.0.200.0790.00714.67
7.0.140.0100.03022.11
7.0.60.0070.08320.07
7.0.50.0000.05017.89
7.0.40.0070.04320.30
7.0.30.0230.04320.25
7.0.20.0230.06020.34
7.0.10.0030.05320.30
7.0.00.0030.05020.29
5.6.280.0070.07021.14
5.6.210.0100.05020.68
5.6.200.0000.05318.19
5.6.190.0030.08720.52
5.6.180.0270.08020.61
5.6.170.0100.06720.44
5.6.160.0100.08020.50
5.6.150.0030.04018.14
5.6.140.0030.07018.18
5.6.130.0070.08018.14
5.6.120.0000.04321.15
5.6.110.0000.04721.15
5.6.100.0000.07721.04
5.6.90.0100.08320.97
5.6.80.0070.05320.41
5.5.350.0230.04320.34
5.5.340.0070.08018.08
5.5.330.0100.08320.57
5.5.320.0330.07320.35
5.5.310.0330.07020.37
5.5.300.0000.05718.07
5.5.290.0130.06718.04
5.5.280.0000.04320.89
5.5.270.0070.06720.77
5.5.260.0070.06320.96
5.5.250.0100.03720.59
5.5.240.0070.06020.07
5.4.450.0670.06719.63
5.4.440.0730.06019.48
5.4.430.0100.07719.36
5.4.420.0100.06019.52
5.4.410.0130.05319.47
5.4.400.0330.05018.85
5.4.390.0330.05318.61
5.4.380.0370.05718.61
5.4.370.0300.07018.73
5.4.360.0300.05718.63
5.4.350.0330.06018.61
5.4.340.0370.06718.59
5.4.320.0400.05318.75
5.4.310.0400.04718.80
5.4.300.0430.04318.63
5.4.290.0470.05018.61
5.4.280.0200.06318.73
5.4.270.0270.05718.63
5.4.260.0430.07718.72
5.4.250.0400.05018.80
5.4.240.0170.07018.83
5.4.230.0470.05718.82
5.4.220.0270.06318.77
5.4.210.0330.05018.71
5.4.200.0230.05316.61
5.4.190.0370.05718.71
5.4.180.0400.04718.80
5.4.170.0270.06718.82
5.4.160.0430.05018.75
5.4.150.0370.06318.50
5.4.140.0330.05316.24
5.4.130.0330.06316.20
5.4.120.0270.06016.46
5.4.110.0470.05016.21
5.4.100.0430.05716.45
5.4.90.0400.05016.46
5.4.80.0270.05716.35
5.4.70.0600.04016.29
5.4.60.0330.05716.40
5.4.50.0230.05316.15
5.4.40.0300.07716.22
5.4.30.0300.06316.29
5.4.20.0330.05716.41
5.4.10.0400.04716.16
5.4.00.0370.05315.72
5.3.290.0270.05314.89
5.3.280.0270.06314.64
5.3.270.0470.07314.74
5.3.260.0530.06714.83
5.3.250.0430.07714.85
5.3.240.0500.06014.61
5.3.230.0400.05314.60
5.3.220.0370.04714.79
5.3.210.0200.07314.59
5.3.200.0270.05714.60
5.3.190.0530.06014.75
5.3.180.0470.05014.70
5.3.170.0270.06714.63
5.3.160.0530.05314.59
5.3.150.0470.04714.60
5.3.140.0400.05314.74
5.3.130.0430.05014.61
5.3.120.0400.05014.68
5.3.110.0230.06714.66
5.3.100.0400.05314.09
5.3.90.0300.05014.04
5.3.80.0430.05714.05
5.3.70.0370.05014.10
5.3.60.0200.06014.05
5.3.50.0270.06313.97
5.3.40.0400.04714.18
5.3.30.0430.05013.94
5.3.20.0400.04013.72
5.3.10.0270.05313.71
5.3.00.0300.05013.69
5.2.170.0270.03711.21
5.2.160.0300.05311.20
5.2.150.0330.06011.37
5.2.140.0270.05011.25
5.2.130.0100.05011.10
5.2.120.0270.03711.19
5.2.110.0200.05011.16
5.2.100.0270.03711.12
5.2.90.0270.03311.34
5.2.80.0230.03711.20
5.2.70.0300.03311.12
5.2.60.0270.04311.05
5.2.50.0230.04711.14
5.2.40.0300.04011.03
5.2.30.0130.05711.04
5.2.20.0230.03711.17
5.2.10.0370.04310.99
5.2.00.0270.04310.79
5.1.60.0200.03710.12
5.1.50.0200.03710.04
5.1.40.0170.0409.96
5.1.30.0170.03710.45
5.1.20.0230.04010.58
5.1.10.0200.04010.26
5.1.00.0230.03710.12
5.0.50.0200.0338.59
5.0.40.0070.0378.53
5.0.30.0200.0478.26
5.0.20.0130.0278.38
5.0.10.0100.0408.20
5.0.00.0200.0378.21
4.4.90.0070.0305.93
4.4.80.0130.0235.90
4.4.70.0100.0235.90
4.4.60.0070.0305.94
4.4.50.0070.0235.90
4.4.40.0030.0405.91
4.4.30.0130.0235.90
4.4.20.0100.0235.96
4.4.10.0130.0205.96
4.4.00.0170.0335.92
4.3.110.0170.0275.90
4.3.100.0200.0235.90
4.3.90.0130.0235.90
4.3.80.0030.0375.90
4.3.70.0130.0175.90
4.3.60.0130.0135.90
4.3.50.0100.0235.90
4.3.40.0100.0335.90
4.3.30.0100.0205.90
4.3.20.0130.0175.90
4.3.10.0000.0305.90
4.3.00.0100.0237.13

preferences:
51.41 ms | 400 KiB | 5 Q