3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { echo 'baz'; } } class Ex { public $a; public function __construct() { $this->a = Foo; } public function doIt() { $this->a::bar(); } }

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.70.0110.00416.38
8.3.60.0160.00318.18
8.3.50.0150.00320.96
8.3.40.0110.00718.68
8.3.30.0040.01119.14
8.3.20.0050.00320.34
8.3.10.0080.00021.82
8.3.00.0000.00822.44
8.2.180.0050.01018.16
8.2.170.0080.00622.96
8.2.160.0120.00318.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0110.00726.16
8.2.120.0040.00419.52
8.2.110.0090.00021.97
8.2.100.0070.00317.97
8.2.90.0040.00419.28
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0000.00717.90
8.2.50.0030.00618.07
8.2.40.0060.00318.22
8.2.30.0000.00717.93
8.2.20.0040.00417.59
8.2.10.0000.00817.47
8.2.00.0060.00317.43
8.1.280.0100.00725.92
8.1.270.0000.00920.07
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0030.00623.66
8.1.230.0080.00319.07
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0070.00317.10
8.1.190.0030.00517.40
8.1.180.0040.00420.31
8.1.170.0000.00818.50
8.1.160.0000.00722.04
8.1.150.0050.00218.47
8.1.140.0030.00617.32
8.1.130.0040.00417.78
8.1.120.0070.00017.25
8.1.110.0030.00717.30
8.1.100.0050.00217.25
8.1.90.0000.00817.22
8.1.80.0050.00317.33
8.1.70.0070.00017.22
8.1.60.0030.00617.50
8.1.50.0000.00717.39
8.1.40.0080.00017.35
8.1.30.0070.00017.49
8.1.20.0030.00617.57
8.1.10.0040.00417.42
8.1.00.0000.01117.36
8.0.300.0070.00018.77
8.0.290.0000.00917.05
8.0.280.0000.00818.31
8.0.270.0000.00717.11
8.0.260.0040.00418.48
8.0.250.0000.00716.74
8.0.240.0030.00716.82
8.0.230.0070.00016.75
8.0.220.0000.00716.63
8.0.210.0070.00016.75
8.0.200.0030.00316.80
8.0.190.0000.00716.80
8.0.180.0000.00716.80
8.0.170.0050.00316.63
8.0.160.0000.00816.81
8.0.150.0030.00316.72
8.0.140.0040.00416.62
8.0.130.0000.00713.19
8.0.120.0050.00316.70
8.0.110.0040.00416.74
8.0.100.0080.00016.77
8.0.90.0000.00716.66
8.0.80.0030.01116.73
8.0.70.0040.00416.72
8.0.60.0040.00416.75
8.0.50.0000.00816.55
8.0.30.0090.00916.86
8.0.20.0140.00517.40
8.0.10.0050.00316.89
8.0.00.0120.00716.73
7.4.330.0000.00515.00
7.4.320.0000.00616.34
7.4.300.0000.00616.39
7.4.290.0080.00016.52
7.4.280.0000.00916.45
7.4.270.0030.00616.46
7.4.260.0080.00016.31
7.4.250.0030.00316.43
7.4.240.0000.00716.43
7.4.230.0000.00716.20
7.4.220.0100.01016.32
7.4.210.0070.00816.40
7.4.200.0070.00016.36
7.4.190.0000.00716.34
7.4.160.0090.00616.25
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0110.00616.51
7.4.120.0100.00716.43
7.4.110.0080.00816.38
7.4.100.0090.00916.29
7.4.90.0030.01316.38
7.4.80.0190.00319.39
7.4.70.0100.00616.46
7.4.60.0070.01016.43
7.4.50.0000.00516.42
7.4.40.0120.00622.77
7.4.30.0130.00316.29
7.4.00.0090.00614.55
7.3.330.0030.00313.01
7.3.320.0000.00612.94
7.3.310.0030.00316.07
7.3.300.0030.00316.24
7.3.290.0000.01616.10
7.3.280.0100.00616.18
7.3.270.0110.01417.40
7.3.260.0110.00616.08
7.3.250.0140.00516.27
7.3.240.0140.00316.48
7.3.230.0070.01016.39
7.3.210.0060.00916.08
7.3.200.0170.00319.39
7.3.190.0110.00616.43
7.3.180.0060.01216.49
7.3.170.0130.00716.34
7.3.160.0120.00316.09
7.3.120.0060.00614.72
7.2.330.0100.01016.24
7.2.320.0090.01316.49
7.2.310.0060.01016.42
7.2.300.0090.01216.21
7.2.290.0080.00916.26
7.2.60.0070.00716.62
7.2.00.0060.00318.98
7.1.200.0060.00615.36
7.1.100.0070.00717.94
7.1.70.0040.00416.99
7.1.60.0170.00719.82
7.1.50.0000.01516.77
7.1.00.0030.07322.45
7.0.200.0070.00716.62
7.0.140.0070.06721.96
7.0.60.0070.04020.07
7.0.50.0030.04717.87
7.0.40.0030.04320.09
7.0.30.0200.07020.21
7.0.20.0300.06320.24
7.0.10.0130.07720.19
7.0.00.0070.07720.06
5.6.280.0070.07021.08
5.6.210.0070.08020.61
5.6.200.0000.09718.29
5.6.190.0030.04320.50
5.6.180.0330.04320.61
5.6.170.0300.08020.44
5.6.160.0030.04320.48
5.6.150.0130.05318.27
5.6.140.0130.05318.27
5.6.130.0070.07318.14
5.6.120.0130.08021.01
5.6.110.0100.05320.94
5.6.100.0030.08721.14
5.6.90.0070.08021.06
5.6.80.0000.07720.45
5.5.350.0000.07720.54
5.5.340.0030.08318.02
5.5.330.0070.06720.19
5.5.320.0300.03720.52
5.5.310.0270.07020.24
5.5.300.0070.07317.96
5.5.290.0100.06717.99
5.5.280.0130.05020.69
5.5.270.0030.08320.67
5.5.260.0130.08020.68
5.5.250.0070.07320.55
5.5.240.0030.07720.27
5.4.450.0770.04719.17
5.4.440.0870.05719.55
5.4.430.0600.05719.34
5.4.420.0470.05019.47
5.4.410.0670.06019.35
5.4.400.0470.05318.51
5.4.390.0530.05018.58
5.4.380.0330.04318.79
5.4.370.0130.05318.75
5.4.360.0200.04318.70
5.4.350.0220.06512.04
5.4.340.0100.05812.04
5.4.320.0050.04512.52
5.4.310.0050.03812.52
5.4.300.0100.03912.52
5.4.290.0070.04512.51
5.4.280.0100.04612.41
5.4.270.0080.03912.41
5.4.260.0070.04412.41
5.4.250.0030.08019.09
5.4.240.0170.04718.99
5.4.230.0130.05018.79
5.4.220.0070.05718.99
5.4.210.0100.06018.74
5.4.200.0130.04718.76
5.4.190.0000.07718.96
5.4.180.0070.06718.93
5.4.170.0130.06318.77
5.4.160.0170.05018.94
5.4.150.0170.05318.82
5.4.140.0100.07016.45
5.4.130.0030.05316.36
5.4.120.0070.05316.44
5.4.110.0100.05316.43
5.4.100.0030.06016.67
5.4.90.0100.04716.46
5.4.80.0030.05316.41
5.4.70.0100.06016.57
5.4.60.0030.07016.49
5.4.50.0170.05016.63
5.4.40.0270.04716.51
5.4.30.0130.05016.34
5.4.20.0100.06716.35
5.4.10.0030.05716.62
5.4.00.0070.05715.80
5.3.290.0100.04312.80
5.3.280.0070.06714.77
5.3.270.0030.05714.82
5.3.260.0030.06714.70
5.3.250.0200.03714.77
5.3.240.0100.05014.51
5.3.230.0100.04714.77
5.3.220.0170.04714.57
5.3.210.0100.05014.40
5.3.200.0170.04314.71
5.3.190.0070.06714.74
5.3.180.0070.07314.41
5.3.170.0130.05714.70
5.3.160.0070.06714.58
5.3.150.0170.06714.65
5.3.140.0170.04314.65
5.3.130.0130.07314.38
5.3.120.0100.05314.55
5.3.110.0030.08014.68
5.3.100.0070.05014.22
5.3.90.0070.05714.00
5.3.80.0100.04314.09
5.3.70.0100.05014.19
5.3.60.0100.04714.09
5.3.50.0100.04714.14
5.3.40.0030.05014.18
5.3.30.0070.05014.13
5.3.20.0130.06013.77
5.3.10.0070.04713.66
5.3.00.0130.05713.63
5.2.170.0170.04710.98
5.2.160.0070.04011.23
5.2.150.0070.05311.10
5.2.140.0070.04011.22
5.2.130.0070.05711.27
5.2.120.0170.03011.19
5.2.110.0100.03311.08
5.2.100.0030.04311.18
5.2.90.0030.04011.16
5.2.80.0130.03311.17
5.2.70.0030.05311.00
5.2.60.0070.05711.01
5.2.50.0130.04711.20
5.2.40.0030.04710.83
5.2.30.0200.04011.06
5.2.20.0030.04310.99
5.2.10.0100.05010.93
5.2.00.0070.04710.63
5.1.60.0070.04310.07
5.1.50.0000.04010.08
5.1.40.0070.0339.82
5.1.30.0000.04010.41
5.1.20.0030.03710.43
5.1.10.0100.04710.13
5.1.00.0070.03310.13
5.0.50.0070.0308.64
5.0.40.0030.0238.42
5.0.30.0070.0508.20
5.0.20.0000.0308.15
5.0.10.0070.0378.01
5.0.00.0070.0508.22
4.4.90.0030.0206.88
4.4.80.0030.0236.88
4.4.70.0030.0236.88
4.4.60.0000.0276.88
4.4.50.0030.0236.88
4.4.40.0070.0406.88
4.4.30.0030.0206.84
4.4.20.0100.0206.82
4.4.10.0030.0336.82
4.4.00.0030.0336.82
4.3.110.0030.0276.82
4.3.100.0030.0276.82
4.3.90.0070.0176.82
4.3.80.0000.0336.77
4.3.70.0030.0176.77
4.3.60.0030.0206.76
4.3.50.0000.0236.76
4.3.40.0070.0306.76
4.3.30.0070.0206.76
4.3.20.0030.0206.76
4.3.10.0030.0206.76
4.3.00.0130.0206.71

preferences:
48.12 ms | 401 KiB | 5 Q