3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function who() { echo __CLASS__; } public static function test() { static::who(); } } class B extends A { public static function who() { echo __CLASS__; } } B::test(); ?>

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.0140.00718.84
8.3.30.0060.01319.01
8.3.20.0000.00720.04
8.3.10.0080.00021.92
8.3.00.0050.00322.43
8.2.170.0070.01422.96
8.2.160.0100.00320.79
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00817.48
8.2.110.0000.00920.53
8.2.100.0090.00317.78
8.2.90.0000.00819.14
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0000.00918.22
8.2.30.0030.00518.00
8.2.20.0060.00317.41
8.2.10.0000.00717.43
8.2.00.0080.00017.48
8.1.270.0040.00422.06
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00320.81
8.1.230.0080.00317.42
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0030.00617.28
8.1.180.0080.00018.62
8.1.170.0000.00818.65
8.1.160.0020.00521.94
8.1.150.0000.00918.54
8.1.140.0040.00417.29
8.1.130.0040.00417.77
8.1.120.0040.00417.32
8.1.110.0020.00517.30
8.1.100.0040.00417.28
8.1.90.0040.00417.29
8.1.80.0000.00717.33
8.1.70.0030.00317.30
8.1.60.0030.00617.55
8.1.50.0000.00717.45
8.1.40.0040.00417.41
8.1.30.0030.00617.55
8.1.20.0050.00317.47
8.1.10.0000.00817.46
8.1.00.0060.00317.39
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0030.00318.43
8.0.270.0040.00417.25
8.0.260.0030.00316.81
8.0.250.0000.00716.81
8.0.240.0070.00416.79
8.0.230.0040.00416.89
8.0.220.0030.00316.83
8.0.210.0030.00316.80
8.0.200.0030.00316.89
8.0.190.0030.00616.76
8.0.180.0040.00416.82
8.0.170.0070.00016.85
8.0.160.0040.00416.78
8.0.150.0000.00716.83
8.0.140.0000.00816.75
8.0.130.0000.00613.27
8.0.120.0050.00316.82
8.0.110.0000.00916.73
8.0.100.0000.00816.69
8.0.90.0000.00716.82
8.0.80.0070.01416.79
8.0.70.0000.00716.63
8.0.60.0040.00416.66
8.0.50.0000.00716.73
8.0.30.0090.01116.91
8.0.20.0140.00617.40
8.0.10.0000.00816.75
8.0.00.0130.02716.73
7.4.330.0020.00215.03
7.4.320.0000.00616.45
7.4.300.0000.00616.50
7.4.290.0030.00316.50
7.4.280.0000.00716.52
7.4.270.0000.00816.58
7.4.260.0030.00316.47
7.4.250.0040.00416.47
7.4.240.0050.00216.53
7.4.230.0000.00716.47
7.4.220.0130.00416.45
7.4.210.0060.00816.50
7.4.200.0050.00216.55
7.4.190.0000.00716.46
7.4.160.0060.00916.36
7.4.150.0130.00317.40
7.4.140.0110.01017.86
7.4.130.0100.00916.40
7.4.120.0100.01116.42
7.4.110.0090.00916.30
7.4.100.0120.00616.44
7.4.90.0120.00616.26
7.4.80.0150.00719.39
7.4.70.0060.00916.39
7.4.60.0200.00016.37
7.4.50.0000.00816.16
7.4.40.0070.00822.77
7.4.30.0080.00816.58
7.4.00.0080.01014.95
7.3.330.0000.00513.04
7.3.320.0050.00013.03
7.3.310.0040.00416.09
7.3.300.0030.00316.26
7.3.290.0040.01116.30
7.3.280.0070.00816.21
7.3.270.0130.00917.40
7.3.260.0180.00416.29
7.3.250.0100.00716.42
7.3.240.0040.01216.18
7.3.230.0110.00616.39
7.3.210.0030.01416.23
7.3.200.0070.01019.39
7.3.190.0120.00616.37
7.3.180.0100.00616.53
7.3.170.0070.01316.35
7.3.160.0060.00916.49
7.3.120.0090.00714.81
7.3.110.0120.00614.82
7.3.100.0070.01114.96
7.3.90.0040.01214.80
7.3.80.0070.00314.55
7.3.70.0060.00314.73
7.3.60.0080.00414.74
7.3.50.0030.01014.66
7.3.40.0030.00914.68
7.3.30.0070.00714.83
7.3.20.0000.01516.59
7.3.10.0060.00616.40
7.3.00.0100.00316.63
7.2.330.0030.01416.35
7.2.320.0040.01316.70
7.2.310.0000.01716.43
7.2.300.0160.00016.27
7.2.290.0000.01516.54
7.2.250.0060.01215.02
7.2.240.0040.01414.84
7.2.230.0040.01115.09
7.2.220.0070.01014.98
7.2.210.0060.00914.96
7.2.200.0060.00614.96
7.2.190.0030.00715.05
7.2.180.0000.01014.77
7.2.170.0090.00614.92
7.2.160.0000.01814.52
7.2.150.0060.00916.76
7.2.140.0070.00716.72
7.2.130.0030.00916.59
7.2.120.0080.00416.86
7.2.110.0070.00716.68
7.2.100.0060.01016.79
7.2.90.0070.00716.90
7.2.80.0070.00716.66
7.2.70.0150.00016.76
7.2.60.0070.00716.85
7.2.50.0060.00916.96
7.2.40.0080.00316.68
7.2.30.0100.00716.80
7.2.20.0150.00316.76
7.2.10.0070.00316.73
7.2.00.0040.01118.18
7.1.330.0070.00415.74
7.1.320.0100.00315.67
7.1.310.0000.01115.92
7.1.300.0080.00315.81
7.1.290.0040.00815.34
7.1.280.0080.00415.66
7.1.270.0030.01015.70
7.1.260.0060.00615.64
7.1.250.0060.00615.68
7.1.240.0000.01415.62
7.1.230.0000.01315.39
7.1.220.0000.01215.63
7.1.210.0080.00415.78
7.1.200.0060.00615.57
7.1.190.0000.01515.64
7.1.180.0120.00315.37
7.1.170.0100.00315.52
7.1.160.0030.00915.78
7.1.150.0110.00715.59
7.1.140.0100.00315.63
7.1.130.0060.00915.30
7.1.120.0040.01115.77
7.1.110.0000.01415.48
7.1.100.0060.00616.91
7.1.90.0070.00715.83
7.1.80.0100.00715.56
7.1.70.0060.00916.37
7.1.60.0120.00817.75
7.1.50.0040.01616.30
7.1.40.0050.00515.75
7.1.30.0070.00415.76
7.1.20.0060.01215.40
7.1.10.0110.00715.73
7.1.00.0030.05019.04
7.0.330.0070.00715.02
7.0.320.0070.00715.39
7.0.310.0030.00915.41
7.0.300.0060.00615.41
7.0.290.0040.00915.13
7.0.280.0040.00715.19
7.0.270.0090.00615.13
7.0.260.0030.01015.07
7.0.250.0060.00615.06
7.0.240.0060.00615.24
7.0.230.0070.00715.26
7.0.220.0030.01015.18
7.0.210.0000.01215.28
7.0.200.0030.01016.03
7.0.190.0000.01315.42
7.0.180.0000.00915.07
7.0.170.0060.00615.16
7.0.160.0070.01015.35
7.0.150.0060.01015.49
7.0.140.0070.04018.63
7.0.130.0080.00615.39
7.0.120.0040.01115.38
7.0.110.0000.01415.33
7.0.100.0090.00315.27
7.0.90.0030.00915.41
7.0.80.0090.00415.05
7.0.70.0060.00614.98
7.0.60.0070.02217.60
7.0.50.0050.04516.62
7.0.40.0080.04016.74
7.0.30.0180.03816.81
7.0.20.0100.02616.79
7.0.10.0050.02516.81
7.0.00.0020.04716.76
5.6.400.0000.00914.29
5.6.390.0040.00714.14
5.6.380.0030.01013.98
5.6.370.0000.01414.36
5.6.360.0070.00414.38
5.6.350.0000.01814.33
5.6.340.0070.00714.27
5.6.330.0070.00713.98
5.6.320.0130.00313.98
5.6.310.0030.00614.45
5.6.300.0060.00614.43
5.6.290.0040.00813.98
5.6.280.0070.04017.65
5.6.270.0090.00614.34
5.6.260.0060.00614.25
5.6.250.0030.00914.47
5.6.240.0080.00414.09
5.6.230.0080.00414.26
5.6.220.0090.00914.24
5.6.210.0100.04317.33
5.6.200.0080.02916.22
5.6.190.0040.05017.34
5.6.180.0170.02817.39
5.6.170.0150.04317.43
5.6.160.0040.03217.30
5.6.150.0080.04316.28
5.6.140.0030.04516.14
5.6.130.0140.02016.25
5.6.120.0030.03517.62
5.6.110.0020.04117.55
5.6.100.0060.03317.44
5.6.90.0080.04517.74
5.6.80.0050.02517.25
5.6.70.0100.00314.06
5.6.60.0070.01014.05
5.6.50.0080.00813.97
5.6.40.0130.00313.97
5.6.30.0030.00914.25
5.6.20.0030.01014.14
5.6.10.0040.01514.22
5.6.00.0060.00314.34
5.5.380.0000.00814.36
5.5.370.0030.01014.39
5.5.360.0030.01414.44
5.5.350.0070.02317.31
5.5.340.0110.03715.94
5.5.330.0050.04917.35
5.5.320.0230.04317.26
5.5.310.0240.03517.28
5.5.300.0030.03216.02
5.5.290.0100.03816.16
5.5.280.0090.04217.41
5.5.270.0030.02317.27
5.5.260.0100.04317.57
5.5.250.0140.04017.08
5.5.240.0050.02216.94
5.5.230.0090.00013.89
5.5.220.0030.01314.25
5.5.210.0060.00914.30
5.5.200.0040.00814.03
5.5.190.0040.00813.64
5.5.180.0070.01013.89
5.5.170.0060.01013.82
5.5.160.0000.00913.88
5.5.150.0030.01014.13
5.5.140.0050.00313.66
5.5.130.0000.01014.07
5.5.120.0000.01113.64
5.5.110.0070.00313.81
5.5.100.0080.00314.07
5.5.90.0040.00414.32
5.5.80.0070.00313.90
5.5.70.0030.01314.19
5.5.60.0000.01114.19
5.5.50.0030.00914.37
5.5.40.0040.00414.07
5.5.30.0000.01014.11
5.5.20.0040.00814.17
5.5.10.0030.00613.77
5.5.00.0060.00613.95
5.4.450.1020.03015.94
5.4.440.0140.03016.06
5.4.430.0140.01815.87
5.4.420.0120.01716.04
5.4.410.0050.02115.98
5.4.400.0080.02015.91
5.4.390.0070.02815.72
5.4.380.0050.02515.89
5.4.370.0070.02015.87
5.4.360.0030.04015.85
5.4.350.0230.02815.75
5.4.340.1000.02015.89
5.4.330.0030.01212.55
5.4.320.1030.02215.90
5.4.310.1320.02515.76
5.4.300.0190.02015.71
5.4.290.0080.02515.87
5.4.280.0160.03315.87
5.4.270.0080.02315.76
5.4.260.0080.02215.75
5.4.250.0100.02215.75
5.4.240.0100.02415.89
5.4.230.0100.02015.85
5.4.220.0120.02315.89
5.4.210.0080.02115.72
5.4.200.0200.03315.85
5.4.190.0050.02215.77
5.4.180.0080.02415.74
5.4.170.0120.02015.84
5.4.160.0030.02115.76
5.4.150.0030.01915.82
5.4.140.0810.01814.64
5.4.130.0030.02114.55
5.4.120.0030.02614.49
5.4.110.0530.02514.58
5.4.100.0230.02714.59
5.4.90.0080.03414.45
5.4.80.0100.02314.56
5.4.70.0070.02214.52
5.4.60.0130.01514.50
5.4.50.0100.02114.52
5.4.40.0120.01814.54
5.4.30.0140.02014.45
5.4.20.0100.02014.39
5.4.10.0070.02214.53
5.4.00.0080.02514.17
5.3.290.0080.02413.57
5.3.280.0090.01813.52
5.3.270.0070.02413.60
5.3.260.0150.02213.65
5.3.250.0070.02513.58
5.3.240.0110.02313.54
5.3.230.0140.02113.53
5.3.220.0100.02313.55
5.3.210.0210.01313.64
5.3.200.0140.02713.56
5.3.190.0110.02013.57
5.3.180.0100.02213.67
5.3.170.0030.02113.56
5.3.160.0050.02413.67
5.3.150.0170.01813.55
5.3.140.0030.02213.58
5.3.130.0030.02313.58
5.3.120.0030.02613.54
5.3.110.1180.02213.56
5.3.100.0020.04013.29
5.3.90.0030.02313.25
5.3.80.0930.02013.33
5.3.70.1200.02213.25
5.3.60.0120.02513.24
5.3.50.0180.02813.31
5.3.40.0100.02813.22
5.3.30.0100.04113.21
5.3.20.0090.01913.08
5.3.10.0120.02513.15
5.3.00.0030.02213.05
5.2.170.0030.03311.12
5.2.160.0100.02711.06
5.2.150.0030.03011.27
5.2.140.0000.05011.12
5.2.130.0000.03011.02
5.2.120.2000.03311.03
5.2.110.1870.03011.33
5.2.100.0070.02711.16
5.2.90.0070.02711.00
5.2.80.0000.03311.17
5.2.70.0500.03311.02
5.2.60.1900.03011.00
5.2.50.1930.03310.95
5.2.40.1470.02710.90
5.2.30.1470.02710.88
5.2.20.1500.02710.97
5.2.10.1470.02710.76
5.2.00.0800.03310.76
5.1.60.0030.04710.22
5.1.50.0000.0339.87
5.1.40.0000.03710.09
5.1.30.0900.03710.25
5.1.20.1500.02710.58
5.1.10.1430.02310.08
5.1.00.1500.0279.97
5.0.50.0700.0208.54
5.0.40.0730.0238.50
5.0.30.0730.0278.21
5.0.20.0770.0178.33
5.0.10.0770.0178.11
5.0.00.0700.0338.17
4.4.90.0630.0178.11
4.4.80.0830.0208.11
4.4.70.0770.0178.11
4.4.60.0770.0208.11
4.4.50.0700.0178.11
4.4.40.0700.0238.11
4.4.30.0730.0138.11
4.4.20.0800.0208.11
4.4.10.0670.0178.11
4.4.00.0730.0238.11
4.3.110.0000.0138.11
4.3.100.0030.0138.11
4.3.90.0000.0178.11
4.3.80.0000.0278.11
4.3.70.0030.0238.11
4.3.60.0000.0178.11
4.3.50.0000.0178.11
4.3.40.0330.0408.11
4.3.30.0430.0208.11
4.3.20.0400.0278.11
4.3.10.0470.0138.11
4.3.00.0430.0138.11

preferences:
47.44 ms | 400 KiB | 5 Q