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.60.0100.00316.63
8.3.50.0070.01222.92
8.3.40.0130.00318.70
8.3.30.0070.00718.92
8.3.20.0070.00020.35
8.3.10.0040.00423.67
8.3.00.0050.00319.25
8.2.180.0070.00718.16
8.2.170.0040.01122.96
8.2.160.0100.00320.22
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0020.00526.16
8.2.120.0000.00821.03
8.2.110.0030.00622.18
8.2.100.0090.00318.09
8.2.90.0030.00619.17
8.2.80.0060.00317.97
8.2.70.0050.00517.47
8.2.60.0000.00917.93
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0070.00017.93
8.2.20.0000.00817.51
8.2.10.0050.00217.78
8.2.00.0050.00217.46
8.1.280.0150.00425.92
8.1.270.0040.00423.87
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00421.83
8.1.230.0070.00319.22
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.10
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0060.00318.48
8.1.160.0040.00421.93
8.1.150.0000.00718.77
8.1.140.0040.00417.38
8.1.130.0000.00717.74
8.1.120.0070.00017.23
8.1.110.0080.00017.35
8.1.100.0030.00517.16
8.1.90.0000.00717.32
8.1.80.0040.00317.37
8.1.70.0060.00217.27
8.1.60.0020.00617.54
8.1.50.0010.00717.41
8.1.40.0030.00617.35
8.1.30.0120.00217.60
8.1.20.0090.00517.49
8.1.10.0090.00517.37
8.1.00.0100.00317.40
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0040.00418.44
8.0.270.0030.00317.25
8.0.260.0030.00317.27
8.0.250.0020.00516.93
8.0.240.0040.00416.93
8.0.230.0030.00316.85
8.0.220.0000.00616.89
8.0.210.0100.00216.82
8.0.200.0060.00516.87
8.0.190.0100.00216.86
8.0.180.0060.00616.85
8.0.170.0070.00616.80
8.0.160.0020.00916.84
8.0.150.0080.00416.70
8.0.140.0030.00816.75
8.0.130.0060.00615.01
8.0.120.0080.00416.85
8.0.110.0100.00116.80
8.0.100.0060.00516.79
8.0.90.0070.00416.73
8.0.80.0090.00616.74
8.0.70.0060.00516.68
8.0.60.0090.00216.74
8.0.50.0050.00716.59
8.0.30.0130.00916.88
8.0.20.0120.00917.11
8.0.10.0140.01416.97
8.0.00.0100.01016.76
7.4.330.0000.00615.00
7.4.320.0060.00016.57
7.4.300.0030.00416.49
7.4.290.0090.00316.49
7.4.280.0080.00616.55
7.4.270.0110.00116.60
7.4.260.0090.00316.42
7.4.250.0100.00416.44
7.4.240.0050.00516.53
7.4.230.0080.00416.54
7.4.220.0130.00516.44
7.4.210.0100.00516.36
7.4.200.0120.00016.44
7.4.190.0080.00816.39
7.4.180.0130.00016.48
7.4.160.0120.00316.42
7.4.150.0140.00716.65
7.4.140.0150.00616.99
7.4.130.0130.00716.45
7.4.120.0110.01016.45
7.4.110.0150.00916.38
7.4.100.0130.00916.39
7.4.90.0130.00916.42
7.4.80.0160.00617.17
7.4.70.0140.00716.38
7.4.60.0160.00816.46
7.4.50.0140.00316.36
7.4.40.0160.00716.49
7.4.30.0130.00716.46
7.4.20.0180.00516.44
7.4.10.0140.00816.35
7.4.00.0090.00815.88
7.3.330.0060.00514.74
7.3.320.0080.00214.60
7.3.310.0040.00716.14
7.3.300.0100.00116.16
7.3.290.0090.00916.15
7.3.280.0110.00416.17
7.3.270.0160.00716.59
7.3.260.0110.00916.24
7.3.250.0120.00716.34
7.3.240.0180.00616.22
7.3.230.0160.00716.35
7.3.220.0200.00616.17
7.3.210.0140.00816.29
7.3.200.0150.00916.29
7.3.190.0140.00916.26
7.3.180.0150.01016.27
7.3.170.0180.00616.36
7.3.160.0140.00816.21
7.3.150.0150.00816.19
7.3.140.0160.00616.18
7.3.130.0130.01016.23
7.3.120.0110.01116.00
7.3.110.0130.00915.98
7.3.100.0110.00915.92
7.3.90.0140.00615.97
7.3.80.0130.00815.93
7.3.70.0110.00715.71
7.3.60.0120.00715.78
7.3.50.0150.00615.74
7.3.40.0110.00815.69
7.3.30.0130.00715.71
7.3.20.0150.00816.02
7.3.10.0130.00616.03
7.3.00.0160.00716.14
7.2.340.0140.01016.37
7.2.330.0130.01016.33
7.2.320.0140.00916.45
7.2.310.0140.00916.36
7.2.300.0160.00916.37
7.2.290.0160.00616.28
7.2.280.0160.00616.30
7.2.270.0160.00816.42
7.2.260.0150.00816.36
7.2.250.0130.00916.03
7.2.240.0140.00916.06
7.2.230.0100.01216.14
7.2.220.0100.01016.07
7.2.210.0120.00916.09
7.2.200.0110.00815.93
7.2.190.0100.01015.89
7.2.180.0160.00615.93
7.2.170.0130.00615.86
7.2.160.0140.00716.11
7.2.150.0150.00816.15
7.2.140.0170.00516.22
7.2.130.0170.00616.21
7.2.120.0140.00616.25
7.2.110.0130.01016.25
7.2.100.0140.00716.15
7.2.90.0150.00816.20
7.2.80.0150.00716.17
7.2.70.0120.00816.23
7.2.60.0130.00616.29
7.2.50.0130.00616.30
7.2.40.0320.00816.59
7.2.30.0400.01016.78
7.2.20.0230.01116.83
7.2.10.0270.01116.71
7.2.00.0280.00916.71
7.1.330.0130.00815.43
7.1.320.0130.00615.48
7.1.310.0190.00615.48
7.1.300.0140.00615.15
7.1.290.0100.00915.15
7.1.280.0270.00615.08
7.1.270.0150.00415.14
7.1.260.0140.00515.14
7.1.250.0140.00615.14
7.1.240.0120.01015.04
7.1.230.0160.01015.02
7.1.220.0140.00815.05
7.1.210.0250.00815.11
7.1.200.0130.00815.10
7.1.190.0130.00815.03
7.1.180.0150.00515.06
7.1.170.0150.00615.01
7.1.160.0450.00615.32
7.1.150.0320.00815.51
7.1.140.0350.00915.89
7.1.130.0400.00915.87
7.1.120.0230.00915.85
7.1.110.0310.00715.67
7.1.100.0280.00715.54
7.1.90.0280.01015.56
7.1.80.0270.01015.66
7.1.70.0420.00715.24
7.1.60.0470.01022.04
7.1.50.0450.00921.96
7.1.40.0430.00821.78
7.1.30.0480.00821.76
7.1.20.0470.01021.82
7.1.10.0480.00915.09
7.1.00.0380.00715.04
7.0.330.0170.00715.07
7.0.320.0160.00815.18
7.0.310.0160.00615.02
7.0.300.0090.01115.07
7.0.290.0350.00715.38
7.0.280.0130.01015.06
7.0.270.0310.00815.60
7.0.260.0270.00815.58
7.0.250.0320.00715.41
7.0.240.0320.00815.40
7.0.230.0330.01015.32
7.0.220.0280.00815.37
7.0.210.0440.00814.97
7.0.200.0400.00715.04
7.0.190.0490.01015.02
7.0.180.0380.00914.84
7.0.170.0540.00614.84
7.0.160.0570.00714.81
7.0.150.0440.00814.82
7.0.140.0520.00914.92
7.0.130.0390.00714.92
7.0.120.0420.00715.00
7.0.110.0440.00914.83
7.0.100.0360.00914.82
7.0.90.0360.00614.87
7.0.80.0480.00814.90
7.0.70.0280.00814.86
7.0.60.0290.00914.73
7.0.50.0260.00914.89
7.0.40.0290.00714.95
7.0.30.0250.00914.86
7.0.20.0400.01014.82
7.0.10.0520.00914.84
7.0.00.0330.00614.90
5.6.400.0150.00815.62
5.6.390.0160.00615.30
5.6.380.0120.01115.42
5.6.370.0130.01015.42
5.6.360.0130.00815.41
5.6.350.0150.00615.33
5.6.340.0140.01015.37
5.6.330.0160.00715.45
5.6.320.0130.00815.51
5.6.310.0150.00815.54
5.6.300.0160.03317.42
5.6.290.0140.03217.49
5.6.280.0170.03017.52
5.6.270.0180.03117.49
5.6.260.0130.03017.41
5.6.250.0150.02817.51
5.6.240.0160.03217.48
5.6.230.0170.03117.54
5.6.220.0170.02717.56
5.6.210.0170.02917.48
5.6.200.0140.03217.53
5.6.190.0190.03017.54
5.6.180.0170.02817.48
5.6.170.0190.03117.38
5.6.160.0150.03117.40
5.6.150.0170.03017.48
5.6.140.0170.03017.44
5.6.130.0160.03217.44
5.6.120.0170.03117.44
5.6.110.0140.03917.46
5.6.100.0150.02917.44
5.6.90.0170.03117.34
5.6.80.0140.02917.15
5.6.70.0140.03017.17
5.6.60.0140.03017.15
5.6.50.0140.02817.11
5.6.40.0150.02917.12
5.6.30.0140.03317.15
5.6.20.0150.03117.16
5.6.10.0160.02717.11
5.6.00.0170.03317.12
5.5.380.0130.03016.14
5.5.370.0160.03316.18
5.5.360.0130.03216.24
5.5.350.0150.02716.18
5.5.340.0170.02916.41
5.5.330.0160.03216.33
5.5.320.0150.03016.23
5.5.310.0150.03216.39
5.5.300.0150.03116.36
5.5.290.0180.02916.40
5.5.280.0190.02816.37
5.5.270.0170.03016.31
5.5.260.0160.02816.24
5.5.250.0150.02716.24
5.5.240.0150.03116.14
5.5.230.0140.02916.16
5.5.220.0150.03116.08
5.5.210.0140.03016.14
5.5.200.0150.03116.07
5.5.190.0160.02716.09
5.5.180.0140.03016.04
5.5.170.0140.00815.29
5.5.160.0170.02716.13
5.5.150.0160.02716.02
5.5.140.0150.02816.07
5.5.130.0150.02816.13
5.5.120.0170.02816.05
5.5.110.0130.03216.05
5.5.100.0150.02716.11
5.5.90.0140.02716.06
5.5.80.0160.02815.98
5.5.70.0120.03216.00
5.5.60.0170.02616.09
5.5.50.0150.02916.04
5.5.40.0130.03215.98
5.5.30.0160.02916.06
5.5.20.0150.02916.00
5.5.10.0130.03016.03
5.5.00.0150.02816.05
5.4.450.0140.03214.96
5.4.440.0100.03114.94
5.4.430.0130.02814.95
5.4.420.0140.03214.96
5.4.410.0140.02714.89
5.4.400.0120.03014.83
5.4.390.0140.02414.81
5.4.380.0140.02614.79
5.4.370.0120.02814.82
5.4.360.0130.02914.82
5.4.350.0120.02814.82
5.4.340.0140.02914.81
5.4.330.0110.00612.29
5.4.320.0120.02914.80
5.4.310.0150.02614.79
5.4.300.0140.02614.77
5.4.290.0150.02614.83
5.4.280.0120.02914.78
5.4.270.0130.02614.81
5.4.260.0120.02914.87
5.4.250.0120.02714.82
5.4.240.0150.02714.81
5.4.230.0120.03214.75
5.4.220.0140.02614.77
5.4.210.0120.03014.80
5.4.200.0140.02714.79
5.4.190.0140.02514.78
5.4.180.0140.02614.75
5.4.170.0100.02814.76
5.4.160.0120.02714.79
5.4.150.0140.02514.72
5.4.140.0140.02713.91
5.4.130.0120.02813.91
5.4.120.0140.02513.93
5.4.110.0130.02413.92
5.4.100.0130.02613.87
5.4.90.0130.02313.88
5.4.80.0140.02413.92
5.4.70.0110.02613.93
5.4.60.0160.02613.84
5.4.50.0140.02313.89
5.4.40.0120.02813.86
5.4.30.0140.02513.87
5.4.20.0140.02613.88
5.4.10.0110.02813.87
5.4.00.0120.02513.67

preferences:
46.41 ms | 401 KiB | 5 Q