3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function who() { echo __CLASS__; } public static function test() { self::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.0190.00618.64
8.3.30.0070.00720.25
8.3.20.0150.00019.93
8.3.10.0070.00720.96
8.3.00.0080.00022.58
8.2.170.0100.01022.96
8.2.160.0180.00322.25
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0090.00920.69
8.2.110.0040.00422.11
8.2.100.0110.00017.78
8.2.90.0060.00318.92
8.2.80.0000.00817.97
8.2.70.0000.00817.49
8.2.60.0060.00317.78
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0040.00419.50
8.2.20.0000.00717.46
8.2.10.0070.00017.46
8.2.00.0040.00717.45
8.1.270.0040.01123.99
8.1.260.0070.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00322.38
8.1.230.0070.00420.92
8.1.220.0060.00318.77
8.1.210.0030.00818.92
8.1.200.0040.00416.88
8.1.190.0080.00017.27
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0050.00218.70
8.1.150.0030.00618.50
8.1.140.0040.00417.37
8.1.130.0000.00717.63
8.1.120.0030.00417.32
8.1.110.0020.00517.27
8.1.100.0000.00717.14
8.1.90.0040.00417.26
8.1.80.0080.00317.23
8.1.70.0040.00617.17
8.1.60.0110.00317.43
8.1.50.0090.00617.40
8.1.40.0130.00317.38
8.1.30.0110.00517.47
8.1.20.0090.00517.45
8.1.10.0080.00617.39
8.1.00.0110.00517.34
8.0.300.0040.00419.91
8.0.290.0030.00317.18
8.0.280.0000.00718.44
8.0.270.0040.00416.79
8.0.260.0040.00416.81
8.0.250.0040.00416.76
8.0.240.0030.00516.93
8.0.230.0030.00316.88
8.0.220.0040.00416.83
8.0.210.0050.00616.72
8.0.200.0100.00216.78
8.0.190.0110.00216.81
8.0.180.0080.00516.71
8.0.170.0070.00516.79
8.0.160.0110.00216.72
8.0.150.0100.00216.68
8.0.140.0020.00916.70
8.0.130.0060.00715.51
8.0.120.0060.00516.69
8.0.110.0080.00316.71
8.0.100.0070.00316.67
8.0.90.0050.00316.73
8.0.80.0080.00716.69
8.0.70.0050.00716.59
8.0.60.0080.00516.70
8.0.50.0080.00516.58
8.0.30.0130.00716.90
8.0.20.0120.00817.00
8.0.10.0100.00916.84
8.0.00.0130.00716.84
7.4.330.0060.00016.67
7.4.320.0000.00716.51
7.4.300.0050.00416.52
7.4.290.0050.00816.51
7.4.280.0060.00616.46
7.4.270.0070.00716.43
7.4.260.0110.00315.42
7.4.250.0130.00116.43
7.4.240.0070.00416.45
7.4.230.0080.00516.50
7.4.220.0100.00516.44
7.4.210.0070.00816.45
7.4.200.0040.00616.42
7.4.190.0080.00216.54
7.4.180.0070.00516.42
7.4.160.0090.00616.41
7.4.150.0130.00816.56
7.4.140.0110.00816.75
7.4.130.0110.00916.31
7.4.120.0140.00516.43
7.4.110.0170.00616.35
7.4.100.0150.00816.46
7.4.90.0150.00716.37
7.4.80.0150.00816.85
7.4.70.0120.01016.34
7.4.60.0120.00816.29
7.4.50.0120.00816.33
7.4.40.0130.00617.40
7.4.30.0140.00716.38
7.4.20.0150.00616.42
7.4.10.0170.00516.38
7.4.00.0100.00816.14
7.3.330.0060.00515.11
7.3.320.0080.00315.11
7.3.310.0030.00816.11
7.3.300.0080.00416.09
7.3.290.0110.00516.14
7.3.280.0100.00816.19
7.3.270.0140.00616.43
7.3.260.0100.00916.95
7.3.250.0150.00516.15
7.3.240.0140.00816.26
7.3.230.0170.00716.24
7.3.220.0190.00516.20
7.3.210.0190.00416.15
7.3.200.0160.00716.14
7.3.190.0130.01016.20
7.3.180.0160.00716.27
7.3.170.0150.00716.19
7.3.160.0140.01016.17
7.3.150.0140.01016.24
7.3.140.0180.00516.17
7.3.130.0170.00816.20
7.3.120.0140.00916.03
7.3.110.0160.00816.12
7.3.100.0160.00816.16
7.3.90.0160.00716.28
7.3.80.0160.00716.21
7.3.70.0170.00816.22
7.3.60.0150.00716.24
7.3.50.0140.01016.28
7.3.40.0130.00916.26
7.3.30.0150.00716.25
7.3.20.0270.00616.31
7.3.10.0180.00816.25
7.3.00.0390.00816.33
7.2.340.0140.00916.31
7.2.330.0130.01016.31
7.2.320.0150.00916.35
7.2.310.0150.00916.35
7.2.300.0160.00716.24
7.2.290.0130.00916.41
7.2.280.0160.00816.36
7.2.270.0150.00716.31
7.2.260.0140.01016.24
7.2.250.0150.00916.26
7.2.240.0180.00516.26
7.2.230.0160.00816.32
7.2.220.0170.00816.32
7.2.210.0130.01116.27
7.2.200.0180.00616.36
7.2.190.0140.01016.34
7.2.180.0170.00716.45
7.2.170.0160.00716.44
7.2.160.0120.01016.40
7.2.150.0330.00916.49
7.2.140.0190.00816.56
7.2.130.0340.00816.58
7.2.120.0310.00816.56
7.2.110.0380.00816.55
7.2.100.0260.01016.56
7.2.90.0230.00816.49
7.2.80.0350.01016.46
7.2.70.0230.00816.51
7.2.60.0340.00816.51
7.2.50.0320.00916.52
7.2.40.0380.00816.52
7.2.30.0410.00916.54
7.2.20.0320.01016.57
7.2.10.0340.00816.50
7.2.00.0290.00916.50
7.1.330.0330.00715.95
7.1.320.0140.00915.97
7.1.310.0290.00616.03
7.1.300.0160.00615.94
7.1.290.0170.00515.91
7.1.280.0130.00816.00
7.1.270.0140.00815.97
7.1.260.0150.00615.92
7.1.250.0270.00815.43
7.1.240.0330.00715.26
7.1.230.0180.00715.37
7.1.220.0320.00815.31
7.1.210.0210.00715.30
7.1.200.0260.00815.27
7.1.190.0310.00715.37
7.1.180.0290.00715.36
7.1.170.0300.00515.33
7.1.160.0380.00715.33
7.1.150.0310.00815.35
7.1.140.0320.00715.31
7.1.130.0290.00715.37
7.1.120.0300.00815.28
7.1.110.0270.00915.34
7.1.100.0320.00515.28
7.1.90.0270.00815.26
7.1.80.0430.00915.37
7.1.70.0350.00515.34
7.1.60.0180.00715.32
7.1.50.0310.00615.34
7.1.40.0190.00815.42
7.1.30.0290.00515.37
7.1.20.0240.00715.28
7.1.10.0260.00815.31
7.1.00.0250.00815.33
7.0.330.0290.00615.01
7.0.320.0170.00915.03
7.0.310.0230.00715.02
7.0.300.0300.00514.97
7.0.290.0310.00515.04
7.0.280.0290.00615.09
7.0.270.0280.00715.09
7.0.260.0280.00515.03
7.0.250.0330.00615.14
7.0.240.0310.00615.13
7.0.230.0290.00915.18
7.0.220.0320.00615.15
7.0.210.0220.00715.08
7.0.200.0210.00915.11
7.0.190.0240.00515.05
7.0.180.0270.00715.08
7.0.170.0150.01015.14
7.0.160.0330.00315.11
7.0.150.0250.00715.05
7.0.140.0220.00515.09
7.0.130.0230.00515.13
7.0.120.0180.01015.09
7.0.110.0350.00515.10
7.0.100.0180.01015.10
7.0.90.0190.00615.08
7.0.80.0330.00615.09
7.0.70.0190.00815.03
7.0.60.0310.00515.08
7.0.50.0250.00615.00
7.0.40.0260.00615.09
7.0.30.0290.00715.16
7.0.20.0280.00715.00
7.0.10.0200.00715.15
7.0.00.0190.00815.11
5.6.400.0140.00715.75
5.6.390.0130.00715.66
5.6.380.0130.00815.24
5.6.370.0110.00815.33
5.6.360.0120.00815.33
5.6.350.0110.00915.33
5.6.340.0150.00715.31
5.6.330.0120.00715.19
5.6.320.0140.00615.29
5.6.310.0130.00815.28
5.6.300.0120.00915.25
5.6.290.0120.01115.38
5.6.280.0110.00915.34
5.6.270.0140.00915.41
5.6.260.0150.00715.32
5.6.250.0110.00915.33
5.6.240.0130.01015.34
5.6.230.0130.00815.29
5.6.220.0120.01115.41
5.6.210.0140.00915.33
5.6.200.0130.00715.35
5.6.190.0150.00815.26
5.6.180.0170.00715.28
5.6.170.0130.00815.29
5.6.160.0150.00815.32
5.6.150.0130.00915.30
5.6.140.0140.00815.31
5.6.130.0120.00915.36
5.6.120.0140.00815.39
5.6.110.0140.00715.31
5.6.100.0140.00715.29
5.6.90.0140.00915.26
5.6.80.0090.01215.17
5.6.70.0120.00915.32
5.6.60.0140.00715.28
5.6.50.0120.00915.18
5.6.40.0120.00915.25
5.6.30.0100.01015.23
5.6.20.0130.00715.28
5.6.10.0110.00915.24
5.6.00.0130.00715.23
5.5.380.0150.00814.54
5.5.370.0130.00914.55
5.5.360.0150.00814.52
5.5.350.0120.01014.49
5.5.340.0120.00914.56
5.5.330.0130.00814.50
5.5.320.0160.00614.44
5.5.310.0130.00814.36
5.5.300.0120.00914.60
5.5.290.0130.00814.51
5.5.280.0160.00714.47
5.5.270.0130.00814.32
5.5.260.0110.00914.47
5.5.250.0110.01014.52
5.5.240.0130.00814.46
5.5.230.0150.00614.41
5.5.220.0110.01014.49
5.5.210.0100.00914.45
5.5.200.0130.00814.28
5.5.190.0100.01014.38
5.5.180.0150.00614.40
5.5.170.0130.00914.39
5.5.160.0100.01014.33
5.5.150.0110.00914.37
5.5.140.0140.00714.40
5.5.130.0130.00914.26
5.5.120.0150.00814.33
5.5.110.0110.00914.38
5.5.100.0110.01014.43
5.5.90.0120.00914.44
5.5.80.0110.00814.42
5.5.70.0130.01014.32
5.5.60.0110.00714.01
5.5.50.0110.00814.02
5.5.40.0160.00713.95
5.5.30.0100.00913.96
5.5.20.0100.00913.99
5.5.10.0110.00813.86
5.5.00.0120.00713.95
5.4.450.0120.00412.43
5.4.440.0100.00612.48
5.4.430.0110.00712.36
5.4.420.0100.00812.45
5.4.410.0100.00812.39
5.4.400.0100.00812.38
5.4.390.0100.00712.38
5.4.380.0100.00612.36
5.4.370.0100.00612.33
5.4.360.0090.00712.44
5.4.350.0070.00812.46
5.4.340.0120.00512.40
5.4.330.0100.00712.49
5.4.320.0110.00612.41
5.4.310.0090.00612.40
5.4.300.0110.00612.36
5.4.290.0110.00712.36
5.4.280.0090.00712.38
5.4.270.0090.00712.43
5.4.260.0110.00512.36
5.4.250.0130.00412.38
5.4.240.0100.00612.34
5.4.230.0110.00712.35
5.4.220.0080.00612.11
5.4.210.0090.00712.15
5.4.200.0100.00712.17
5.4.190.0080.00712.08
5.4.180.0130.00512.14
5.4.170.0130.00412.17
5.4.160.0100.00612.13
5.4.150.0080.00812.12
5.4.140.0100.00512.20
5.4.130.0100.00612.23
5.4.120.0090.00712.18
5.4.110.0090.00612.15
5.4.100.0090.00612.18
5.4.90.0100.00612.25
5.4.80.0110.00412.17
5.4.70.0110.00412.24
5.4.60.0110.00512.22
5.4.50.0100.00612.15
5.4.40.0090.00712.23
5.4.30.0090.00512.25
5.4.20.0090.00712.19
5.4.10.0100.00612.16
5.4.00.0100.00612.18
5.3.290.0100.00712.55
5.3.280.0100.00612.48
5.3.270.0090.00712.44
5.3.260.0090.00512.31
5.3.250.0100.00612.35
5.3.240.0080.00712.21
5.3.230.0110.00512.31
5.3.220.0110.00612.20
5.3.210.0090.00612.22
5.3.200.0090.00612.22
5.3.190.0090.00712.24
5.3.180.0090.00612.44
5.3.170.0090.00712.49
5.3.160.0070.00812.46
5.3.150.0100.00612.45
5.3.140.0090.00812.35
5.3.130.0090.00712.37
5.3.120.0090.00612.36
5.3.110.0070.00812.36
5.3.100.0070.00712.22
5.3.90.0110.00412.33
5.3.80.0080.00612.11
5.3.70.0080.00612.14
5.3.60.0090.00612.27
5.3.50.0070.00812.17
5.3.40.0110.00612.15
5.3.30.0100.00512.18
5.3.20.0090.00712.20
5.3.10.0100.00711.99
5.3.00.0070.00712.03

preferences:
52.46 ms | 400 KiB | 5 Q