3v4l.org

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

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.0110.00416.50
8.3.50.0150.00717.51
8.3.40.0090.00618.54
8.3.30.0140.00018.42
8.3.20.0080.00018.44
8.3.10.0050.00320.23
8.3.00.0040.00419.09
8.2.180.0040.01216.38
8.2.170.0180.00022.96
8.2.160.0100.00321.06
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.36
8.2.110.0100.00021.18
8.2.100.0120.00017.47
8.2.90.0060.00317.58
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0060.00317.91
8.2.50.0060.00318.07
8.2.40.0040.00418.03
8.2.30.0070.00318.00
8.2.20.0060.00319.38
8.2.10.0030.00617.63
8.2.00.0000.00817.61
8.1.280.0110.00725.92
8.1.270.0060.00324.66
8.1.260.0070.00726.35
8.1.250.0140.00028.09
8.1.240.0080.00022.02
8.1.230.0120.00022.77
8.1.220.0070.00017.74
8.1.210.0050.00318.77
8.1.200.0000.01017.13
8.1.190.0040.00417.50
8.1.180.0040.00418.10
8.1.170.0040.00418.77
8.1.160.0000.00718.73
8.1.150.0040.00418.57
8.1.140.0000.00717.39
8.1.130.0030.00317.78
8.1.120.0030.00317.27
8.1.110.0050.00217.41
8.1.100.0080.00017.44
8.1.90.0040.00417.32
8.1.80.0070.00017.36
8.1.70.0000.00717.40
8.1.60.0030.00617.61
8.1.50.0000.00717.48
8.1.40.0040.00417.47
8.1.30.0070.00017.66
8.1.20.0040.00417.66
8.1.10.0050.00317.42
8.1.00.0000.00717.43
8.0.300.0040.00420.05
8.0.290.0050.00316.63
8.0.280.0030.00318.44
8.0.270.0000.00717.19
8.0.260.0030.00316.82
8.0.250.0040.00416.99
8.0.240.0070.00016.84
8.0.230.0000.00716.86
8.0.220.0070.00016.83
8.0.210.0070.00016.84
8.0.200.0030.00316.76
8.0.190.0000.00716.85
8.0.180.0070.00016.70
8.0.170.0030.00616.73
8.0.160.0000.00716.88
8.0.150.0040.00416.75
8.0.140.0040.00416.78
8.0.130.0000.00613.18
8.0.120.0060.00316.83
8.0.110.0000.00716.71
8.0.100.0020.00516.76
8.0.90.0000.00716.89
8.0.80.0040.01816.82
8.0.70.0040.00316.80
8.0.60.0030.00616.64
8.0.50.0050.00316.79
8.0.30.0150.00716.98
8.0.20.0070.01117.10
8.0.10.0040.00416.82
8.0.00.0070.01116.50
7.4.330.0050.00012.93
7.4.320.0030.00616.36
7.4.300.0030.00316.62
7.4.290.0030.00316.57
7.4.280.0080.00016.61
7.4.270.0000.00616.48
7.4.260.0000.00513.29
7.4.250.0040.00416.41
7.4.240.0000.00716.44
7.4.230.0050.00316.42
7.4.220.0100.01416.57
7.4.210.0060.00916.61
7.4.200.0030.00316.55
7.4.190.0030.00316.46
7.4.160.0070.01416.57
7.4.150.0110.00616.55
7.4.140.0050.01416.33
7.4.130.0070.00916.61
7.4.120.0100.00816.43
7.4.110.0100.00816.58
7.4.100.0090.00916.71
7.4.90.0090.01416.36
7.4.80.0140.00619.39
7.4.70.0120.00916.42
7.4.60.0150.00916.52
7.4.50.0000.00516.49
7.4.40.0000.01416.27
7.4.30.0130.00316.38
7.4.00.0040.00814.91
7.3.330.0030.00313.26
7.3.320.0030.00313.03
7.3.310.0040.00416.19
7.3.300.0030.00316.32
7.3.290.0060.00916.18
7.3.280.0030.01316.22
7.3.270.0120.00616.41
7.3.260.0160.00616.58
7.3.250.0060.01516.34
7.3.240.0090.01116.21
7.3.230.0170.00716.54
7.3.210.0100.00716.27
7.3.200.0160.00616.17
7.3.190.0060.01016.15
7.3.180.0140.00316.28
7.3.170.0070.01016.28
7.3.160.0120.00316.25
7.3.120.0040.01114.95
7.2.330.0000.01716.31
7.2.320.0070.01016.68
7.2.310.0110.00716.27
7.2.300.0060.01116.35
7.2.290.0110.00716.19
7.1.200.0000.00815.57
7.1.70.0030.00616.91
7.1.60.0110.01419.40
7.1.50.0040.00816.79
7.1.00.0070.07322.27
7.0.200.0330.00414.56
7.0.140.0000.07722.02
7.0.120.0100.06721.96
7.0.60.0070.04320.03
7.0.50.0000.05017.91
7.0.40.0070.05320.27
7.0.30.0370.07320.28
7.0.20.0330.04320.19
7.0.10.0070.09020.10
7.0.00.0030.08720.18
5.6.210.0070.06720.61
5.6.200.0070.04318.18
5.6.190.0030.04320.27
5.6.180.4170.04020.46
5.6.170.0330.07320.56
5.6.160.0070.08320.71
5.6.150.0130.06318.20
5.6.140.0030.05318.26
5.6.130.0200.07018.19
5.6.120.0070.07720.99
5.6.110.0000.04720.95
5.6.100.0070.07721.09
5.6.90.0100.09020.98
5.6.80.0100.06020.25
5.6.70.3100.03020.38
5.5.350.0070.07020.30
5.5.340.0070.06717.95
5.5.330.0130.07020.29
5.5.320.0300.04020.20
5.5.310.0270.08320.35
5.5.300.0070.05317.95
5.5.290.0130.03717.98
5.5.280.0070.08320.93
5.5.270.0130.08020.77
5.5.260.0100.08020.65
5.5.250.0200.07020.61
5.5.240.0030.07320.02
5.4.450.0070.06719.31
5.4.440.0070.03719.41
5.4.430.0000.04719.56
5.4.420.0000.08319.17
5.4.410.0070.05319.31
5.4.400.0170.05719.08
5.4.390.0070.04019.15
5.4.380.0130.07019.00
5.4.370.0230.05719.23
5.4.360.0170.05718.88
5.4.350.0200.06319.20
5.4.340.0030.06319.24
5.4.320.0070.04019.25
5.4.310.0030.06018.85
5.4.300.0000.05319.23
5.4.290.0070.04019.14
5.4.280.0030.04019.07
5.4.270.0000.07718.89
5.4.260.0130.04019.14
5.4.250.0000.05019.23
5.4.240.0100.03319.07
5.4.230.0070.04318.97
5.4.220.0030.07719.23
5.4.210.0070.08018.84
5.4.200.0130.07319.23
5.4.190.0070.07019.19
5.4.180.0130.06319.14
5.4.170.0100.06718.84
5.4.160.0030.03719.09
5.4.150.0030.04719.12
5.4.140.0000.04016.51
5.4.130.0030.04016.34
5.4.120.0030.04016.31
5.4.110.0030.03716.54
5.4.100.0030.03716.46
5.4.90.0030.03316.48
5.4.80.0070.03716.53
5.4.70.0000.03716.38
5.4.60.0070.03016.27
5.4.50.0000.04016.38
5.4.40.0030.03316.41
5.4.30.0000.03716.38
5.4.20.0070.03016.25
5.4.10.0070.03316.27
5.4.00.0030.03315.86
5.3.290.0030.05014.71
5.3.280.0030.05714.50
5.3.270.0030.04714.77
5.3.260.0070.03714.64
5.3.250.0070.04014.64
5.3.240.0070.03714.66
5.3.230.0000.04014.60
5.3.220.0030.03714.71
5.3.210.0070.03314.63
5.3.200.0070.03714.64
5.3.190.0100.03714.62
5.3.180.0070.03314.56
5.3.170.0000.04314.61
5.3.160.0000.03714.59
5.3.150.0030.03714.61
5.3.140.0000.04014.59
5.3.130.0000.04014.62
5.3.120.0000.05014.61
5.3.110.0030.03714.62
5.3.100.0000.04014.04
5.3.90.0100.03014.18
5.3.80.0100.02713.94
5.3.70.0100.03014.07
5.3.60.0000.03713.98
5.3.50.0030.03314.02
5.3.40.0000.03713.99
5.3.30.0100.03013.88
5.3.20.0000.03713.61
5.3.10.0070.03013.58
5.3.00.0000.03713.67
5.2.170.0000.03311.19
5.2.160.0030.03011.11
5.2.150.0030.03011.10
5.2.140.0000.03011.12
5.2.130.0030.02711.18
5.2.120.0030.02711.27
5.2.110.0030.03011.13
5.2.100.0030.02711.11
5.2.90.0070.02311.16
5.2.80.0000.03711.15
5.2.70.0000.03010.98
5.2.60.0000.03010.94
5.2.50.0000.03011.01
5.2.40.0000.03011.05
5.2.30.0030.02710.94
5.2.20.0070.02311.00
5.2.10.0030.06311.01
5.2.00.0000.03710.73
5.1.60.0000.0309.96
5.1.50.0070.0409.98
5.1.40.0070.0439.97
5.1.30.0070.04710.39
5.1.20.0030.03010.24
5.1.10.0070.05310.14
5.1.00.0070.05010.21
5.0.50.0030.0208.52
5.0.40.0030.0338.48
5.0.30.0100.0508.20
5.0.20.0000.0238.27
5.0.10.0070.0138.20
5.0.00.0030.0638.24
4.4.90.0000.0178.09
4.4.80.0000.0178.09
4.4.70.0070.0108.09
4.4.60.0000.0208.09
4.4.50.0000.0208.09
4.4.40.0070.0238.09
4.4.30.0030.0278.09
4.4.20.0070.0338.09
4.4.10.0000.0238.09
4.4.00.0030.0378.09
4.3.110.0030.0208.09
4.3.100.0030.0178.09
4.3.90.0000.0178.09
4.3.80.0000.0308.09
4.3.70.0000.0278.09
4.3.60.0030.0278.09
4.3.50.0070.0278.09
4.3.40.0030.0478.09
4.3.30.0000.0338.09
4.3.20.0000.0238.09
4.3.10.0000.0408.09
4.3.00.0030.0338.09

preferences:
61.35 ms | 400 KiB | 5 Q