3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static function init() { self::foo(); } static function foo() { echo "This is A::foo\n"; } } class B extends A{ static function foo() { echo "This is B::foo\n"; } } B::init();

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.0040.01218.56
8.3.60.0130.00616.38
8.3.50.0100.00822.04
8.3.40.0070.00718.67
8.3.30.0150.00619.10
8.3.20.0000.00820.21
8.3.10.0040.00421.85
8.3.00.0000.01920.82
8.2.190.0080.01518.17
8.2.180.0140.00316.63
8.2.170.0110.01122.96
8.2.160.0140.00722.31
8.2.150.0070.00724.18
8.2.140.0190.00024.66
8.2.130.0110.00426.16
8.2.120.0050.00319.67
8.2.110.0040.00422.07
8.2.100.0070.00317.59
8.2.90.0030.00619.15
8.2.80.0040.00417.97
8.2.70.0030.00717.50
8.2.60.0050.00317.78
8.2.50.0030.00518.07
8.2.40.0000.00818.03
8.2.30.0040.00417.93
8.2.20.0050.00317.60
8.2.10.0030.00517.90
8.2.00.0040.00419.21
8.1.280.0100.00325.92
8.1.270.0030.01220.71
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0030.00623.82
8.1.230.0090.00319.23
8.1.220.0040.00417.74
8.1.210.0000.00718.77
8.1.200.0000.00917.23
8.1.190.0030.00517.10
8.1.180.0040.00419.04
8.1.170.0040.00418.58
8.1.160.0000.00721.88
8.1.150.0070.00018.72
8.1.140.0000.00719.03
8.1.130.0000.00717.74
8.1.120.0040.00417.36
8.1.110.0030.00517.32
8.1.100.0050.00317.33
8.1.90.0060.00317.20
8.1.80.0000.00817.25
8.1.70.0030.00317.31
8.1.60.0060.00317.40
8.1.50.0000.00817.51
8.1.40.0000.00917.34
8.1.30.0060.00317.59
8.1.20.0030.00617.48
8.1.10.0000.00717.50
8.1.00.0000.00717.33
8.0.300.0040.00420.61
8.0.290.0000.00716.63
8.0.280.0070.00018.44
8.0.270.0000.00717.15
8.0.260.0030.00317.30
8.0.250.0070.00016.82
8.0.240.0000.00716.89
8.0.230.0000.00716.87
8.0.220.0030.00316.82
8.0.210.0040.00416.83
8.0.200.0070.00016.88
8.0.190.0050.00216.95
8.0.180.0000.00716.87
8.0.170.0050.00316.88
8.0.160.0030.00316.92
8.0.150.0040.00416.79
8.0.140.0050.00316.75
8.0.130.0030.00313.20
8.0.120.0040.00416.67
8.0.110.0000.00816.89
8.0.100.0000.00716.79
8.0.90.0040.00416.71
8.0.80.0100.00616.75
8.0.70.0000.00716.82
8.0.60.0050.00216.79
8.0.50.0040.00416.55
8.0.30.0100.01017.14
8.0.20.0080.01217.40
8.0.10.0000.00816.86
8.0.00.0070.01016.70
7.4.330.0000.00615.03
7.4.320.0000.00616.46
7.4.300.0000.00616.61
7.4.290.0030.00316.39
7.4.280.0040.00416.59
7.4.270.0040.00416.52
7.4.260.0040.00416.60
7.4.250.0040.00416.53
7.4.240.0030.00516.48
7.4.230.0040.00416.35
7.4.220.0110.00716.49
7.4.210.0060.01316.55
7.4.200.0050.00216.31
7.4.160.0130.00916.29
7.4.150.0140.00317.40
7.4.140.0130.00617.86
7.4.130.0120.00716.45
7.4.120.0090.00916.50
7.4.110.0070.01116.54
7.4.100.0070.01016.32
7.4.90.0100.00916.28
7.4.80.0090.00916.50
7.4.70.0100.00616.46
7.4.60.0120.00416.51
7.4.50.0080.00016.50
7.4.40.0140.00816.22
7.4.30.0090.01416.43
7.4.00.0030.01014.81
7.3.330.0030.00613.19
7.3.320.0000.01313.23
7.3.310.0000.00716.22
7.3.300.0040.00416.21
7.3.290.0110.00516.20
7.3.280.0070.00916.27
7.3.270.0160.00917.40
7.3.260.0110.00716.23
7.3.250.0110.01016.45
7.3.240.0130.00716.13
7.3.230.0080.00916.39
7.3.210.0080.00816.34
7.3.200.0060.01219.39
7.3.190.0060.01316.15
7.3.180.0030.01416.30
7.3.170.0150.00316.38
7.3.160.0160.00016.52
7.3.10.0060.00615.87
7.3.00.0030.01016.48
7.2.330.0070.01016.32
7.2.320.0060.00916.48
7.2.310.0090.01516.63
7.2.300.0100.00716.36
7.2.290.0060.01216.25
7.2.130.0000.01316.50
7.2.120.0040.00816.52
7.2.110.0100.00316.47
7.2.100.0070.01416.31
7.2.90.0090.00616.66
7.2.80.0030.00716.55
7.2.70.0160.00316.63
7.2.60.0140.00816.30
7.2.50.0070.00716.74
7.2.40.0100.00316.44
7.2.30.0030.00716.50
7.2.20.0030.01016.35
7.2.10.0070.00716.80
7.2.00.0080.00817.92
7.1.250.0070.01015.49
7.1.200.0000.01215.42
7.1.100.0030.01017.80
7.1.70.0030.01217.05
7.1.60.0070.01519.46
7.1.50.0070.01716.96
7.1.00.0030.07722.45
7.0.200.0000.00716.39
7.0.140.0030.03322.12
7.0.60.0070.03720.02
7.0.50.0030.08017.86
7.0.40.0070.04320.20
7.0.30.0430.06320.30
7.0.20.0370.06320.12
7.0.10.0170.04020.30
7.0.00.0070.07720.05
5.6.280.0100.06721.14
5.6.210.0100.03320.52
5.6.200.0070.06718.16
5.6.190.0100.08320.52
5.6.180.0400.03320.67
5.6.170.0270.07720.45
5.6.160.0100.08320.43
5.6.150.0030.04318.17
5.6.140.0100.07318.27
5.6.130.0130.04318.21
5.6.120.0030.04021.06
5.6.110.0100.07020.98
5.6.100.0070.06320.97
5.6.90.0070.07021.00
5.6.80.0100.07720.41
5.5.350.0400.06720.42
5.5.340.0200.07317.99
5.5.330.0030.07320.37
5.5.320.0030.08720.27
5.5.310.0270.05020.41
5.5.300.0030.08717.97
5.5.290.0130.07318.07
5.5.280.0030.04720.68
5.5.270.0170.05720.74
5.5.260.0070.08320.93
5.5.250.0070.08720.55
5.5.240.0100.04020.17
5.4.450.0530.05319.29
5.4.440.0830.05319.16
5.4.430.1200.06319.33
5.4.420.0930.06319.47
5.4.410.0830.05319.04
5.4.400.0870.04719.23
5.4.390.0670.06018.61
5.4.380.0630.06318.79
5.4.370.0670.06318.50
5.4.360.0770.04718.70
5.4.350.0870.05318.55
5.4.340.0800.05718.53
5.4.320.0730.05018.75
5.4.310.0730.06018.76
5.4.300.0670.05318.53
5.4.290.0600.06318.78
5.4.280.0730.06018.83
5.4.270.0870.03718.59
5.4.260.0800.04718.61
5.4.250.0600.07018.75
5.4.240.0370.06018.53
5.4.230.0200.05318.73
5.4.220.0300.05318.83
5.4.210.0100.07018.73
5.4.200.0130.07016.64
5.4.190.0230.05318.57
5.4.180.0270.05018.72
5.4.170.0300.04718.78
5.4.160.0200.05318.48
5.4.150.0200.06018.45
5.4.140.0270.05016.28
5.4.130.0230.05016.21
5.4.120.0130.06016.45
5.4.110.0200.05016.36
5.4.100.0130.05716.19
5.4.90.0230.05316.29
5.4.80.0130.05716.28
5.4.70.0270.04716.17
5.4.60.0200.04716.26
5.4.50.0200.04316.39
5.4.40.0270.05716.18
5.4.30.0230.06316.27
5.4.20.0200.05316.25
5.4.10.0200.05316.38
5.4.00.0270.04715.90
5.3.290.0170.07314.79
5.3.280.0200.05714.76
5.3.270.0100.06314.73
5.3.260.0230.05314.64
5.3.250.0070.07714.64
5.3.240.0230.05014.63
5.3.230.0170.05714.62
5.3.220.0130.06014.60
5.3.210.0100.07314.61
5.3.200.0200.04714.70
5.3.190.0130.05714.68
5.3.180.0200.05014.59
5.3.170.0230.05014.70
5.3.160.0100.06314.77
5.3.150.0130.05714.59
5.3.140.0170.05714.61
5.3.130.0300.04714.59
5.3.120.0170.05314.66
5.3.110.0170.05314.57
5.3.100.0200.05014.22
5.3.90.0200.05014.09
5.3.80.0100.05714.13
5.3.70.0130.05314.10
5.3.60.0130.05714.21
5.3.50.0130.05313.95
5.3.40.0230.04714.08
5.3.30.0100.05713.98
5.3.20.0170.05013.69
5.3.10.0170.05313.64
5.3.00.0230.05313.63
5.2.170.0130.04711.25
5.2.160.0230.03711.27
5.2.150.0170.04311.13
5.2.140.0130.04311.13
5.2.130.0200.03311.18
5.2.120.0200.04011.23
5.2.110.0130.04311.20
5.2.100.0200.04011.15
5.2.90.0170.04011.13
5.2.80.0100.04711.21
5.2.70.0130.04311.14
5.2.60.0030.05311.04
5.2.50.0230.04011.08
5.2.40.0170.04311.07
5.2.30.0130.04011.07
5.2.20.0130.04010.96
5.2.10.0230.03010.96
5.2.00.0130.04710.82
5.1.60.0100.03310.04
5.1.50.0070.04010.02
5.1.40.0030.04010.16
5.1.30.0200.03310.44
5.1.20.0030.04710.41
5.1.10.0100.04010.11
5.1.00.0100.03710.27
5.0.50.0000.0378.75
5.0.40.0130.0208.61
5.0.30.0100.0408.17
5.0.20.0100.0278.39
5.0.10.0100.0238.38
5.0.00.0070.0438.19
4.4.90.0070.0235.94
4.4.80.0030.0235.96
4.4.70.0030.0275.87
4.4.60.0070.0235.93
4.4.50.0100.0205.89
4.4.40.0070.0375.88
4.4.30.0030.0275.88
4.4.20.0070.0206.01
4.4.10.0100.0205.93
4.4.00.0100.0305.91
4.3.110.0070.0235.82
4.3.100.0100.0235.82
4.3.90.0070.0205.79
4.3.80.0000.0435.77
4.3.70.0100.0275.80
4.3.60.0100.0205.86
4.3.50.0070.0235.82
4.3.40.0100.0305.76
4.3.30.0000.0275.36
4.3.20.0070.0205.36
4.3.10.0030.0275.36
4.3.00.0300.02314.62

preferences:
53.58 ms | 401 KiB | 5 Q