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.60.0070.01318.55
8.3.50.0170.00522.05
8.3.40.0120.00318.63
8.3.30.0150.00618.96
8.3.20.0040.00420.34
8.3.10.0030.00522.14
8.3.00.0070.00022.43
8.2.180.0090.00918.34
8.2.170.0090.00622.96
8.2.160.0140.00020.77
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0050.00226.16
8.2.120.0080.00019.23
8.2.110.0070.00320.28
8.2.100.0080.00417.78
8.2.90.0000.00819.27
8.2.80.0080.00017.97
8.2.70.0030.00717.63
8.2.60.0070.00017.80
8.2.50.0050.00518.07
8.2.40.0000.00818.03
8.2.30.0000.01017.87
8.2.20.0070.00017.58
8.2.10.0000.00717.52
8.2.00.0020.00517.59
8.1.280.0110.00725.92
8.1.270.0030.00622.20
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.18
8.1.230.0000.01220.84
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0100.00016.97
8.1.190.0000.00817.10
8.1.180.0080.00018.64
8.1.170.0030.00618.47
8.1.160.0000.00721.86
8.1.150.0040.00418.54
8.1.140.0050.00317.31
8.1.130.0030.00317.80
8.1.120.0000.01017.24
8.1.110.0040.00417.22
8.1.100.0020.00517.33
8.1.90.0040.00417.36
8.1.80.0060.00317.23
8.1.70.0030.00317.29
8.1.60.0000.00817.40
8.1.50.0050.00217.41
8.1.40.0040.00417.34
8.1.30.0030.00617.55
8.1.20.0040.00417.59
8.1.10.0030.00617.51
8.1.00.0040.00417.32
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0070.00017.12
8.0.260.0000.00616.92
8.0.250.0040.00416.91
8.0.240.0040.00416.80
8.0.230.0000.00716.74
8.0.220.0000.00716.80
8.0.210.0000.00716.83
8.0.200.0000.00716.89
8.0.190.0000.00716.77
8.0.180.0050.00316.88
8.0.170.0040.00416.84
8.0.160.0070.00016.78
8.0.150.0000.00716.82
8.0.140.0040.00416.76
8.0.130.0030.00313.26
8.0.120.0040.00416.82
8.0.110.0080.00016.82
8.0.100.0040.00416.82
8.0.90.0000.00716.68
8.0.80.0090.00616.70
8.0.70.0030.00516.75
8.0.60.0080.00016.79
8.0.50.0070.00016.80
8.0.30.0090.01217.08
8.0.20.0090.00917.40
8.0.10.0040.00416.90
8.0.00.0130.00716.83
7.4.330.0000.00515.00
7.4.320.0000.00616.54
7.4.300.0000.00616.61
7.4.290.0030.00316.45
7.4.280.0080.00016.40
7.4.270.0060.00316.49
7.4.260.0030.00316.56
7.4.250.0050.00316.46
7.4.240.0030.00316.49
7.4.230.0040.00416.48
7.4.220.0030.01416.49
7.4.210.0100.00516.55
7.4.200.0070.00016.32
7.4.190.0070.00016.69
7.4.160.0090.00616.57
7.4.150.0060.01117.40
7.4.140.0110.00717.86
7.4.130.0130.00816.46
7.4.120.0170.00216.39
7.4.110.0130.00316.46
7.4.100.0040.00616.56
7.4.90.0170.00616.60
7.4.80.0180.00019.39
7.4.70.0070.01116.46
7.4.60.0130.00316.27
7.4.50.0000.00816.30
7.4.40.0040.01522.77
7.4.30.0090.00616.57
7.4.00.0100.00315.04
7.3.330.0000.00613.09
7.3.320.0030.00313.02
7.3.310.0000.00716.04
7.3.300.0030.00316.11
7.3.290.0100.00716.19
7.3.280.0080.00916.21
7.3.270.0100.00617.40
7.3.260.0170.00016.45
7.3.250.0120.00516.36
7.3.240.0100.00716.25
7.3.230.0160.00316.46
7.3.210.0070.01116.14
7.3.200.0150.00619.39
7.3.190.0090.00616.34
7.3.180.0030.01216.19
7.3.170.0040.01216.45
7.3.160.0080.00816.18
7.3.120.0040.01414.52
7.2.330.0130.01016.55
7.2.320.0070.01616.41
7.2.310.0130.00316.65
7.2.300.0080.00816.60
7.2.290.0120.00916.35
7.2.00.0030.01019.43
7.1.200.0030.01015.50
7.1.100.0030.00818.26
7.1.70.0000.00717.13
7.1.60.0140.00319.82
7.1.50.0070.01716.63
7.1.00.0100.07022.35
7.0.200.0060.00616.40
7.0.140.0070.07022.04
7.0.60.0130.08019.88
7.0.50.0030.08317.88
7.0.40.0030.05320.31
7.0.30.0300.07720.26
7.0.20.0370.07720.06
7.0.10.0330.07320.15
7.0.00.0000.04320.10
5.6.280.0000.07720.93
5.6.210.0030.07720.75
5.6.200.0100.08318.19
5.6.190.0030.07720.55
5.6.180.1700.04020.39
5.6.170.0200.08320.55
5.6.160.0030.04020.50
5.6.150.0200.06318.20
5.6.140.0030.05718.15
5.6.130.0030.09018.16
5.6.120.0100.04320.89
5.6.110.0030.09321.12
5.6.100.0100.08720.99
5.6.90.0000.08021.00
5.6.80.0030.05020.41
5.6.70.4100.04320.48
5.5.350.0000.08320.49
5.5.340.0130.07318.09
5.5.330.0030.04720.27
5.5.320.0270.07320.34
5.5.310.0200.04720.34
5.5.300.0130.07018.04
5.5.290.0130.07017.95
5.5.280.0030.04320.88
5.5.270.0170.03320.89
5.5.260.0230.06720.95
5.5.250.0030.05320.64
5.5.240.0030.04020.16
5.4.450.0370.06019.17
5.4.440.0530.05719.19
5.4.430.0070.05719.56
5.4.420.0030.06019.52
5.4.410.0200.04319.21
5.4.400.1070.00018.82
5.4.390.0830.00018.56
5.4.380.0470.04718.64
5.4.370.0300.04718.75
5.4.360.0270.04718.81
5.4.350.0270.05318.75
5.4.340.0230.05718.80
5.4.320.0060.03712.50
5.4.310.0050.03912.50
5.4.300.0040.03712.50
5.4.290.0050.03812.50
5.4.280.0080.03612.39
5.4.270.0090.03312.39
5.4.260.0170.05318.62
5.4.250.0100.04718.78
5.4.240.0130.07018.86
5.4.230.0030.05318.80
5.4.220.0030.05718.86
5.4.210.0030.05718.86
5.4.200.0030.05318.78
5.4.190.0070.05018.66
5.4.180.0100.04718.68
5.4.170.0100.04718.66
5.4.160.0070.07318.88
5.4.150.0070.05318.61
5.4.140.0070.05016.61
5.4.130.0100.04716.39
5.4.120.0070.07316.60
5.4.110.0030.06316.48
5.4.100.0200.06016.55
5.4.90.0130.04316.26
5.4.80.0030.05016.45
5.4.70.0130.04716.24
5.4.60.0170.04716.38
5.4.50.0100.04316.36
5.4.40.0130.04316.44
5.4.30.0070.05016.18
5.4.20.0070.04716.17
5.4.10.0130.04316.36
5.4.00.0100.04715.78
5.3.290.0020.04712.80
5.3.280.0130.04314.68
5.3.270.0070.05314.63
5.3.260.0170.04314.62
5.3.250.0100.04714.70
5.3.240.0030.05014.43
5.3.230.0030.05314.82
5.3.220.0030.05314.54
5.3.210.0130.04314.55
5.3.200.0070.04714.39
5.3.190.0030.05314.67
5.3.180.0070.05014.79
5.3.170.0130.04314.70
5.3.160.0070.05014.41
5.3.150.0100.06014.73
5.3.140.0030.05314.56
5.3.130.0000.06014.38
5.3.120.0100.05014.53
5.3.110.0100.04714.71
5.3.100.0070.05313.94
5.3.90.0130.06714.15
5.3.80.0200.06013.98
5.3.70.0030.05314.11
5.3.60.0130.04314.00
5.3.50.0100.04714.12
5.3.40.0100.04714.02
5.3.30.0070.04713.93
5.3.20.0070.05013.78
5.3.10.0170.03713.48
5.3.00.0130.04313.71
5.2.170.0070.04011.13
5.2.160.0070.03711.14
5.2.150.0030.04311.11
5.2.140.0030.04311.12
5.2.130.0030.04011.09
5.2.120.0070.03711.29
5.2.110.0100.03311.26
5.2.100.0030.04011.09
5.2.90.0100.03711.09
5.2.80.0030.06011.11
5.2.70.0000.04711.25
5.2.60.0130.03010.88
5.2.50.0100.05711.11
5.2.40.0070.04011.08
5.2.30.0130.03311.04
5.2.20.0030.04011.05
5.2.10.0070.04010.95
5.2.00.0100.03310.80
5.1.60.0100.02710.10
5.1.50.0030.03710.21
5.1.40.0100.02710.13
5.1.30.0100.03010.55
5.1.20.0030.04010.34
5.1.10.0100.03010.05
5.1.00.0030.03710.04
5.0.50.0030.0338.52
5.0.40.0000.0308.33
5.0.30.0030.0408.29
5.0.20.0030.0278.43
5.0.10.0030.0378.18
5.0.00.0030.0538.09
4.4.90.0000.0237.67
4.4.80.0000.0237.67
4.4.70.0000.0237.67
4.4.60.0030.0207.67
4.4.50.0070.0177.44
4.4.40.0030.0377.44
4.4.30.0030.0207.44
4.4.20.0070.0277.44
4.4.10.0030.0207.44
4.4.00.0030.0307.44
4.3.110.0030.0307.44
4.3.100.0030.0207.44
4.3.90.0030.0207.44
4.3.80.0070.0307.44
4.3.70.0000.0237.44
4.3.60.0070.0177.44
4.3.50.0000.0237.44
4.3.40.0070.0307.44
4.3.30.0000.0237.44
4.3.20.0000.0237.44
4.3.10.0000.0307.44
4.3.00.0000.0277.07

preferences:
29.22 ms | 401 KiB | 5 Q