3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function run() { return call_user_func(array('Bar', 'getValue')); } static function getValue() { return 'Foo'; } } class Bar extends Foo { public static function getValue() { return 'Bar'; } } $x = new Bar; echo $x->run();

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.0040.01118.30
8.3.50.0130.00516.34
8.3.40.0120.00318.71
8.3.30.0120.00318.60
8.3.20.0090.00018.74
8.3.10.0100.00020.29
8.3.00.0040.00419.50
8.2.180.0090.00616.38
8.2.170.0090.00622.96
8.2.160.0090.00620.69
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0100.00318.47
8.2.110.0060.00320.52
8.2.100.0080.00417.72
8.2.90.0040.00419.05
8.2.80.0040.00419.32
8.2.70.0000.00817.50
8.2.60.0030.00617.92
8.2.50.0000.00918.07
8.2.40.0030.00619.95
8.2.30.0050.00218.03
8.2.20.0050.00317.71
8.2.10.0040.00417.49
8.2.00.0000.01017.64
8.1.280.0000.01425.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00321.89
8.1.230.0080.00320.97
8.1.220.0050.00518.77
8.1.210.0000.00719.08
8.1.200.0030.00617.23
8.1.190.0070.00017.41
8.1.180.0040.00418.10
8.1.170.0000.00818.90
8.1.160.0060.00318.69
8.1.150.0070.00018.61
8.1.140.0070.00017.38
8.1.130.0000.00717.73
8.1.120.0030.00317.43
8.1.110.0000.00817.33
8.1.100.0070.00017.29
8.1.90.0030.00517.34
8.1.80.0030.00317.29
8.1.70.0030.00317.37
8.1.60.0000.00817.58
8.1.50.0000.00817.50
8.1.40.0080.00017.50
8.1.30.0030.00617.63
8.1.20.0040.00417.51
8.1.10.0050.00317.61
8.1.00.0080.00017.38
8.0.300.0000.00719.98
8.0.290.0070.00016.63
8.0.280.0080.00018.43
8.0.270.0030.00317.25
8.0.260.0050.00316.68
8.0.250.0050.00216.86
8.0.240.0040.00417.00
8.0.230.0040.00416.90
8.0.220.0000.00816.84
8.0.210.0070.00016.84
8.0.200.0040.00416.89
8.0.190.0050.00316.92
8.0.180.0020.00516.82
8.0.170.0050.00516.81
8.0.160.0000.00716.86
8.0.150.0000.00816.78
8.0.140.0030.00716.67
8.0.130.0000.00513.29
8.0.120.0000.00716.66
8.0.110.0030.00416.81
8.0.100.0030.00616.79
8.0.90.0040.00416.67
8.0.80.0060.00916.77
8.0.70.0040.00416.63
8.0.60.0000.00716.84
8.0.50.0000.00716.69
8.0.30.0060.01417.09
8.0.20.0080.01117.00
8.0.10.0000.00816.96
8.0.00.0120.00916.92
7.4.330.0050.00012.92
7.4.320.0030.00516.54
7.4.300.0060.00016.57
7.4.290.0030.00316.49
7.4.280.0030.00716.48
7.4.270.0030.00316.49
7.4.260.0060.00013.22
7.4.250.0050.00316.53
7.4.240.0000.00716.60
7.4.230.0050.00216.66
7.4.220.0060.00916.59
7.4.210.0060.01316.59
7.4.200.0000.00716.63
7.4.190.0020.00516.77
7.4.160.0030.01316.49
7.4.150.0190.00016.55
7.4.140.0160.00016.39
7.4.130.0110.00716.38
7.4.120.0130.00316.50
7.4.110.0160.00616.70
7.4.100.0140.00916.48
7.4.90.0000.01816.62
7.4.80.0130.00719.39
7.4.70.0030.01316.51
7.4.60.0140.00416.39
7.4.50.0020.00216.35
7.4.40.0030.01316.31
7.4.30.0060.01116.63
7.4.00.0030.01014.79
7.3.330.0000.00713.05
7.3.320.0000.00713.07
7.3.310.0000.00716.26
7.3.300.0050.00216.10
7.3.290.0080.00816.26
7.3.280.0120.00716.19
7.3.270.0040.01216.23
7.3.260.0070.01016.19
7.3.250.0130.00616.33
7.3.240.0000.02016.29
7.3.230.0160.00016.57
7.3.210.0080.00816.24
7.3.200.0090.00616.32
7.3.190.0120.00416.25
7.3.180.0080.00816.44
7.3.170.0100.00716.17
7.3.160.0110.00616.31
7.3.120.0080.00814.75
7.2.330.0120.00916.61
7.2.320.0120.00916.55
7.2.310.0100.01016.70
7.2.300.0070.01416.46
7.2.290.0090.00916.55
7.2.60.0090.00617.01
7.2.00.0030.01018.96
7.1.200.0000.01315.45
7.1.100.0000.01117.64
7.1.70.0000.01016.88
7.1.60.0110.01419.30
7.1.50.0090.01216.83
7.1.00.0000.06022.34
7.0.200.0280.00314.51
7.0.140.0030.07322.09
7.0.120.0030.06322.04
7.0.60.0030.07719.86
7.0.50.0030.08317.80
7.0.40.0000.05720.20
7.0.30.0630.04720.26
7.0.20.0300.08020.20
7.0.10.0200.09020.06
7.0.00.0170.06320.23
5.6.280.0000.07721.07
5.6.210.0200.07720.54
5.6.200.0070.08018.25
5.6.190.0070.08020.47
5.6.180.0270.08020.42
5.6.170.0530.06320.55
5.6.160.0000.06320.46
5.6.150.0030.04318.18
5.6.140.0070.03718.23
5.6.130.0100.07718.12
5.6.120.0030.05720.99
5.6.110.0100.07321.12
5.6.100.0100.08021.01
5.6.90.0070.08020.97
5.6.80.0070.08020.36
5.6.70.0400.07320.37
5.5.350.0330.07320.42
5.5.340.0000.05317.96
5.5.330.0170.08020.42
5.5.320.0330.06020.21
5.5.310.0300.07320.25
5.5.300.0000.07318.05
5.5.290.0030.06017.95
5.5.280.0000.06320.66
5.5.270.0070.04720.89
5.5.260.0030.04320.88
5.5.250.0030.04020.59
5.5.240.0130.04020.07
5.4.450.0000.04319.18
5.4.440.0070.03319.47
5.4.430.0030.03719.56
5.4.420.0030.04319.47
5.4.410.0000.04019.20
5.4.400.0070.03319.02
5.4.390.0030.03718.87
5.4.380.0000.04019.16
5.4.370.0030.03719.20
5.4.360.0030.03718.85
5.4.350.0000.04019.12
5.4.340.0100.03019.12
5.4.320.0030.03719.08
5.4.310.0030.03719.24
5.4.300.0030.04019.25
5.4.290.0130.07019.11
5.4.280.0030.05319.20
5.4.270.0100.04719.14
5.4.260.0100.07318.88
5.4.250.0000.08719.15
5.4.240.0030.07319.20
5.4.230.0100.06719.23
5.4.220.0130.06019.20
5.4.210.0170.06019.12
5.4.200.0130.07319.20
5.4.190.0100.06019.11
5.4.180.0100.04318.97
5.4.170.0100.07318.91
5.4.160.0100.06718.83
5.4.150.0070.07719.13
5.4.140.0030.06316.31
5.4.130.0100.07016.39
5.4.120.0030.03716.50
5.4.110.0070.04316.46
5.4.100.0100.07316.48
5.4.90.0000.04316.44
5.4.80.0070.03316.70
5.4.70.0030.05016.45
5.4.60.0070.07316.31
5.4.50.0100.06316.35
5.4.40.0070.04016.35
5.4.30.0100.07016.36
5.4.20.0100.05016.38
5.4.10.0030.05016.43
5.4.00.0070.07015.77
5.3.290.0030.04014.66
5.3.280.0030.06714.63
5.3.270.0070.05714.61
5.3.260.0030.05014.56
5.3.250.0030.04714.63
5.3.240.0030.06714.63
5.3.230.0130.07014.62
5.3.220.0070.08014.49
5.3.210.0130.06714.62
5.3.200.0070.05314.64
5.3.190.0070.07714.57
5.3.180.0030.04714.72
5.3.170.0130.05714.57
5.3.160.0000.07314.55
5.3.150.0070.03314.57
5.3.140.0070.07314.57
5.3.130.0030.04014.58
5.3.120.0000.04714.47
5.3.110.0070.04014.57
5.3.100.0000.04713.93
5.3.90.0030.04314.04
5.3.80.0130.06314.20
5.3.70.0130.03314.03
5.3.60.0130.03314.08
5.3.50.0070.03713.95
5.3.40.0100.07013.90
5.3.30.0170.06313.91
5.3.20.0030.04713.71
5.3.10.0100.07013.80
5.3.00.0070.06713.68
5.2.170.0030.03011.16
5.2.160.0100.03311.20
5.2.150.0000.04011.10
5.2.140.0070.05311.22
5.2.130.0000.03311.11
5.2.120.0030.03011.15
5.2.110.0030.04011.15
5.2.100.0030.06311.15
5.2.90.0000.05011.08
5.2.80.0030.05011.09
5.2.70.0000.05011.11
5.2.60.0000.03311.09
5.2.50.0030.03011.10
5.2.40.0030.06710.95
5.2.30.0100.03310.89
5.2.20.0030.03010.85
5.2.10.0030.03710.86
5.2.00.0100.05310.68
5.1.60.0000.0509.97
5.1.50.0100.05010.15
5.1.40.0030.0409.89
5.1.30.0070.02710.50
5.1.20.0000.03010.31
5.1.10.0000.03310.03
5.1.00.0070.03010.13
5.0.50.0030.0208.71
5.0.40.0070.0438.71
5.0.30.0100.0308.71
5.0.20.0070.0308.71
5.0.10.0000.0338.71
5.0.00.0030.0708.71
4.4.90.0030.0178.71
4.4.80.0030.0138.71
4.4.70.0000.0178.71
4.4.60.0030.0278.71
4.4.50.0030.0338.71
4.4.40.0000.0278.71
4.4.30.0070.0278.71
4.4.20.0000.0408.71
4.4.10.0070.0108.71
4.4.00.0030.0578.71
4.3.110.0000.0408.71
4.3.100.0030.0138.71
4.3.90.0070.0138.71
4.3.80.0000.0578.71
4.3.70.0000.0208.71
4.3.60.0100.0138.71
4.3.50.0030.0178.71
4.3.40.0030.0438.71
4.3.30.0000.0238.71
4.3.20.0000.0338.71
4.3.10.0070.0208.71
4.3.00.0070.0338.71

preferences:
61.07 ms | 401 KiB | 5 Q