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 function change_what($where) { parent::change_what($where); } } class C extends A { 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.70.0080.00818.56
8.3.60.0060.00916.75
8.3.50.0080.01322.09
8.3.40.0000.01418.84
8.3.30.0030.01218.89
8.3.20.0040.00420.20
8.3.10.0000.00821.90
8.3.00.0040.00421.01
8.2.180.0070.00718.16
8.2.170.0040.01122.96
8.2.160.0100.00322.02
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00617.80
8.2.110.0030.00819.38
8.2.100.0040.00718.03
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00917.93
8.2.50.0000.00918.07
8.2.40.0000.00918.16
8.2.30.0000.00918.04
8.2.20.0030.00517.67
8.2.10.0030.00617.87
8.2.00.0000.00817.71
8.1.280.0030.01525.92
8.1.270.0030.00620.45
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0110.00019.37
8.1.230.0100.00617.52
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0030.00518.10
8.1.170.0090.00020.24
8.1.160.0030.00521.93
8.1.150.0050.00318.82
8.1.140.0040.00417.45
8.1.130.0070.00017.82
8.1.120.0040.00317.52
8.1.110.0050.00217.48
8.1.100.0000.00717.43
8.1.90.0050.00317.53
8.1.80.0040.00417.50
8.1.70.0050.00317.34
8.1.60.0060.00317.61
8.1.50.0000.00817.48
8.1.40.0050.00317.52
8.1.30.0030.00617.57
8.1.20.0030.00617.55
8.1.10.0000.00817.62
8.1.00.0070.00017.57
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0030.00318.33
8.0.270.0030.00317.27
8.0.260.0030.00317.13
8.0.250.0000.00816.86
8.0.240.0000.00717.03
8.0.230.0040.00416.85
8.0.220.0080.00016.86
8.0.210.0030.00316.82
8.0.200.0050.00216.94
8.0.190.0060.00316.97
8.0.180.0060.00316.90
8.0.170.0080.00016.92
8.0.160.0050.00316.93
8.0.150.0040.00416.90
8.0.140.0080.00016.82
8.0.130.0000.00613.28
8.0.120.0040.00416.76
8.0.110.0000.00716.93
8.0.100.0000.00716.94
8.0.90.0070.00016.75
8.0.80.0060.01016.94
8.0.70.0040.00416.93
8.0.60.0000.00716.79
8.0.50.0050.00216.75
8.0.30.0110.01017.09
8.0.20.0100.01017.40
8.0.10.0040.00416.95
8.0.00.0100.00716.72
7.4.330.0000.00515.03
7.4.320.0040.00416.45
7.4.300.0030.00316.59
7.4.290.0040.00716.63
7.4.280.0030.00616.60
7.4.270.0030.00316.63
7.4.260.0040.00416.58
7.4.250.0030.00516.49
7.4.240.0030.00316.51
7.4.230.0000.00716.41
7.4.220.0070.02016.61
7.4.210.0100.00316.45
7.4.200.0000.00716.41
7.4.160.0070.01016.45
7.4.150.0160.01317.40
7.4.140.0070.01017.86
7.4.130.0140.00516.50
7.4.120.0020.01516.47
7.4.110.0090.01216.55
7.4.100.0040.01316.47
7.4.90.0130.00316.50
7.4.80.0100.00819.39
7.4.70.0100.00716.33
7.4.60.0060.00916.39
7.4.50.0030.00616.58
7.4.40.0090.00916.45
7.4.30.0140.00716.48
7.4.00.0070.01015.21
7.3.330.0030.00313.15
7.3.320.0030.00313.37
7.3.310.0000.00816.39
7.3.300.0060.00016.36
7.3.290.0090.00816.37
7.3.280.0070.00816.36
7.3.270.0130.01017.40
7.3.260.0100.01016.57
7.3.250.0100.01316.42
7.3.240.0090.01216.30
7.3.230.0160.00316.39
7.3.210.0070.01116.59
7.3.200.0060.01519.39
7.3.190.0040.01216.68
7.3.180.0030.01616.54
7.3.170.0120.00616.55
7.3.160.0060.01016.41
7.3.10.0070.00716.66
7.3.00.0020.01316.63
7.2.330.0130.00316.30
7.2.320.0130.00316.22
7.2.310.0070.01016.48
7.2.300.0110.00416.50
7.2.290.0070.01016.69
7.2.130.0070.00616.78
7.2.120.0050.01016.85
7.2.110.0030.01017.01
7.2.100.0050.01016.96
7.2.90.0050.00816.90
7.2.80.0050.01016.84
7.2.70.0050.00816.85
7.2.60.0060.00616.92
7.2.50.0050.01316.73
7.2.40.0020.01216.79
7.2.30.0110.00716.77
7.2.20.0040.01016.71
7.2.10.0050.00616.72
7.2.00.0050.00917.54
7.1.250.0070.00415.63
7.1.240.0040.00715.55
7.1.230.0080.00415.80
7.1.220.0000.00815.81
7.1.210.0030.01315.73
7.1.200.0120.00215.49
7.1.190.0030.00915.70
7.1.180.0040.00715.67
7.1.170.0040.00415.68
7.1.160.0030.01015.64
7.1.150.0050.00515.65
7.1.140.0040.00415.75
7.1.130.0140.00015.76
7.1.120.0060.00615.78
7.1.110.0000.01415.84
7.1.100.0030.00816.77
7.1.90.0080.00315.59
7.1.80.0070.00715.84
7.1.70.0040.00716.46
7.1.60.0060.01117.53
7.1.50.0030.01216.36
7.1.40.0040.01215.50
7.1.30.0060.00615.52
7.1.20.0060.00315.63
7.1.10.0040.00715.69
7.1.00.0070.04018.86
7.0.330.0030.00615.30
7.0.320.0060.00615.32
7.0.310.0040.00915.13
7.0.300.0080.00015.48
7.0.290.0120.00315.29
7.0.280.0070.00715.44
7.0.270.0040.00715.42
7.0.260.0090.00315.23
7.0.250.0110.00415.40
7.0.240.0000.00815.31
7.0.230.0040.00815.43
7.0.220.0060.00315.51
7.0.210.0040.01115.41
7.0.200.0360.00714.94
7.0.190.0000.01015.34
7.0.180.0100.00015.15
7.0.170.0100.00315.42
7.0.160.0000.00915.46
7.0.150.0000.01015.15
7.0.140.0060.01818.62
7.0.130.0060.00815.39
7.0.120.0080.01215.39
7.0.110.0100.00315.46
7.0.100.0070.01015.34
7.0.90.0000.01315.12
7.0.80.0120.00315.41
7.0.70.0110.00415.31
7.0.60.0030.04617.64
7.0.50.0050.02316.73
7.0.40.0090.03216.87
7.0.30.0170.02716.88
7.0.20.0210.02016.71
7.0.10.0040.02516.68
7.0.00.0030.02616.77
5.6.380.0070.00714.43
5.6.370.0000.00814.29
5.6.360.0070.00414.32
5.6.350.0030.01014.01
5.6.340.0060.00614.18
5.6.330.0000.01114.30
5.6.320.0000.01014.31
5.6.310.0070.00414.71
5.6.300.0030.01314.25
5.6.290.0090.00014.29
5.6.280.0050.03817.83
5.6.270.0070.00414.07
5.6.260.0090.00614.32
5.6.250.0000.01514.20
5.6.240.0070.00314.19
5.6.230.0060.00714.29
5.6.220.0080.00014.23
5.6.210.0000.02717.28
5.6.200.0050.03216.22
5.6.190.0090.03117.57
5.6.180.0130.03717.28
5.6.170.0130.02817.25
5.6.160.0070.04817.39
5.6.150.0050.02616.27
5.6.140.0020.02816.09
5.6.130.0030.02516.23
5.6.120.0080.04717.73
5.6.110.0050.03317.62
5.6.100.0080.03717.61
5.6.90.0050.04617.72
5.6.80.0110.02817.20
5.6.70.0040.00814.43
5.6.60.0080.00314.46
5.6.50.0040.01114.18
5.6.40.0030.00714.26
5.6.30.0110.00014.16
5.6.20.0100.00313.98
5.6.10.0060.00613.98
5.6.00.0070.00314.02
5.5.380.0030.00611.33
5.5.370.0060.00311.39
5.5.360.0060.00311.17
5.5.350.0100.04215.76
5.5.340.0050.04214.45
5.5.330.0100.03215.76
5.5.320.0180.03315.79
5.5.310.0170.02515.66
5.5.300.0050.02614.63
5.5.290.0050.04514.42
5.5.280.0120.03716.19
5.5.270.0070.02416.08
5.5.260.0050.04615.93
5.5.250.0060.02115.75
5.5.240.0030.04315.63
5.5.230.0070.00010.71
5.5.220.0060.00010.89
5.5.210.0060.00611.22
5.5.200.0030.00611.17
5.5.190.0050.00511.25
5.5.180.0040.00710.82
5.5.170.0070.00010.96
5.5.160.0070.00311.18
5.5.150.0000.01010.90
5.5.140.0070.00411.24
5.5.130.0080.00310.97
5.5.120.0100.00310.99
5.5.110.0050.00510.98
5.5.100.0070.00011.05
5.5.90.0030.00711.09
5.5.80.0000.01010.86
5.5.70.0060.00310.79
5.5.60.0030.00911.06
5.5.50.0040.00410.83
5.5.40.0000.00911.21
5.5.30.0050.00311.14
5.5.20.0030.00710.86
5.5.10.0100.00010.74
5.5.00.0030.00310.98
5.4.450.0410.03215.36
5.4.440.0420.03015.44
5.4.430.0100.03015.23
5.4.420.0060.03015.23
5.4.410.0050.04315.07
5.4.400.0140.02914.91
5.4.390.0200.03014.79
5.4.380.0210.04014.66
5.4.370.0300.03514.88
5.4.360.0170.02714.67
5.4.350.0170.03314.89
5.4.340.0120.03414.79
5.4.330.0000.01011.07
5.4.320.0280.03214.74
5.4.310.0270.02514.98
5.4.300.0240.03214.85
5.4.290.0150.04014.78
5.4.280.0300.03114.72
5.4.270.0260.03314.73
5.4.260.0220.03614.79
5.4.250.0210.03014.82
5.4.240.0160.03214.68
5.4.230.0200.03014.75
5.4.220.0180.02814.89
5.4.210.0180.03414.84
5.4.200.0200.03113.88
5.4.190.0190.02914.96
5.4.180.0130.02814.94
5.4.170.0200.04014.75
5.4.160.0260.02314.77
5.4.150.0180.03114.72
5.4.140.0270.03013.58
5.4.130.0210.02713.66
5.4.120.0250.02613.67
5.4.110.0240.02513.64
5.4.100.0300.02213.57
5.4.90.0150.03213.62
5.4.80.0250.02013.65
5.4.70.0130.03113.72
5.4.60.0180.02613.73
5.4.50.0180.02813.65
5.4.40.0230.02813.63
5.4.30.0230.02613.59
5.4.20.0130.03213.71
5.4.10.0160.03313.72
5.4.00.0220.03013.28
5.3.290.0190.03412.73
5.3.280.0230.03312.63
5.3.270.0100.04112.56
5.3.260.0270.03212.63
5.3.250.0280.03012.61
5.3.240.0220.02812.51
5.3.230.0250.03312.63
5.3.220.0300.03412.41
5.3.210.0270.03312.56
5.3.200.0220.03712.63
5.3.190.0300.02212.62
5.3.180.0230.04012.62
5.3.170.0320.03312.59
5.3.160.0280.03512.59
5.3.150.0440.02712.53
5.3.140.0190.03112.62
5.3.130.0230.03312.52
5.3.120.0190.04112.54
5.3.110.0250.03712.58
5.3.100.0190.03912.23
5.3.90.0180.03612.36
5.3.80.0240.02712.32
5.3.70.0190.03312.31
5.3.60.0130.03512.28
5.3.50.0270.02512.32
5.3.40.0240.02512.29
5.3.30.0220.03612.23
5.3.20.0130.03312.13
5.3.10.0180.04211.97
5.3.00.0220.03811.88
5.2.170.0170.02310.54
5.2.160.0190.02910.60
5.2.150.0220.02910.62
5.2.140.0220.02910.61
5.2.130.0120.02310.58
5.2.120.0150.02310.54
5.2.110.0210.02510.58
5.2.100.0130.03310.55
5.2.90.0190.02410.63
5.2.80.0060.02610.58
5.2.70.0170.03010.64
5.2.60.0220.02610.55
5.2.50.0130.02510.51
5.2.40.0120.02710.51
5.2.30.0140.03010.49
5.2.20.0130.03010.49
5.2.10.0180.02810.51
5.2.00.0230.02610.44
5.1.60.0150.02410.01
5.1.50.0170.02510.01
5.1.40.0090.02110.03
5.1.30.0120.02610.20
5.1.20.0170.02310.21
5.1.10.0130.02510.01
5.1.00.0110.02610.03
5.0.50.0040.0189.32
5.0.40.0050.0209.25
5.0.30.0070.0329.11
5.0.20.0100.0189.10
5.0.10.0080.0219.11
5.0.00.0100.0209.09
4.4.90.0110.0137.93
4.4.80.0080.0127.93
4.4.70.0030.0137.93
4.4.60.0050.0157.93
4.4.50.0080.0117.93
4.4.40.0050.0267.93
4.4.30.0060.0167.93
4.4.20.0020.0207.93
4.4.10.0050.0187.96
4.4.00.0070.0227.93
4.3.110.0050.0137.93
4.3.100.0100.0087.93
4.3.90.0050.0207.93
4.3.80.0100.0227.93
4.3.70.0040.0187.93
4.3.60.0070.0157.93
4.3.50.0080.0117.93
4.3.40.0080.0207.93
4.3.30.0050.0137.93
4.3.20.0050.0127.93
4.3.10.0040.0157.93
4.3.00.0050.0188.54

preferences:
67.64 ms | 401 KiB | 5 Q