3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function getStatic() { return function () { }; } public function getNoStatic() { return function () { }; } } $a = new A; $fs = A::getStatic(); $fns = $a->getNoStatic(); var_dump($fs->is_static); // true var_dump($fns->is_static); // false

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.0140.00718.43
8.3.50.0250.00521.90
8.3.40.0140.00318.71
8.3.30.0110.00418.54
8.3.20.0030.00618.73
8.3.10.0100.00321.01
8.3.00.0000.00921.86
8.2.180.0030.01017.00
8.2.170.0090.00622.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0040.00421.12
8.2.110.0060.00320.21
8.2.100.0040.00717.91
8.2.90.0040.00419.23
8.2.80.0040.00418.04
8.2.70.0100.00017.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0050.00318.09
8.2.30.0070.00021.27
8.2.20.0090.00017.65
8.2.10.0000.00717.66
8.2.00.0040.00717.58
8.1.280.0070.00725.92
8.1.270.0000.00723.99
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0030.00622.50
8.1.230.0040.00720.99
8.1.220.0000.00818.77
8.1.210.0000.00819.02
8.1.200.0060.00317.23
8.1.190.0040.00417.51
8.1.180.0000.00818.10
8.1.170.0080.00018.42
8.1.160.0000.00718.90
8.1.150.0040.00418.65
8.1.140.0040.00417.38
8.1.130.0000.00717.71
8.1.120.0080.00317.47
8.1.110.0030.00517.44
8.1.100.0050.00217.42
8.1.90.0030.00317.38
8.1.80.0070.00017.51
8.1.70.0000.00717.38
8.1.60.0040.00417.64
8.1.50.0050.00317.52
8.1.40.0030.00517.38
8.1.30.0000.00817.68
8.1.20.0050.00317.49
8.1.10.0040.00417.48
8.1.00.0050.00517.47
8.0.300.0040.00419.88
8.0.290.0030.00317.16
8.0.280.0030.00518.46
8.0.270.0030.00317.08
8.0.260.0040.00416.84
8.0.250.0040.00416.93
8.0.240.0000.00916.86
8.0.230.0030.00316.99
8.0.220.0030.00516.80
8.0.210.0000.00716.82
8.0.200.0000.00716.99
8.0.190.0000.00717.01
8.0.180.0000.00716.88
8.0.170.0040.00417.01
8.0.160.0000.00716.86
8.0.150.0060.00316.91
8.0.140.0040.00416.91
8.0.130.0030.00313.32
8.0.120.0040.00416.94
8.0.110.0040.00416.83
8.0.100.0040.00417.01
8.0.90.0020.00516.95
8.0.80.0120.00416.86
8.0.70.0000.00716.84
8.0.60.0050.00317.02
8.0.50.0050.00316.86
8.0.30.0110.01117.24
8.0.20.0090.01017.40
8.0.10.0020.00516.98
8.0.00.0070.01316.81
7.4.330.0030.00314.80
7.4.320.0060.00016.50
7.4.300.0030.00316.51
7.4.290.0040.00416.52
7.4.280.0030.00316.54
7.4.270.0030.00316.48
7.4.260.0030.00313.33
7.4.250.0040.00416.57
7.4.240.0000.00716.62
7.4.230.0070.00016.40
7.4.220.0140.00816.50
7.4.210.0090.00716.54
7.4.200.0040.00416.61
7.4.190.0000.00716.67
7.4.160.0100.00516.39
7.4.150.0030.01417.40
7.4.140.0140.01117.86
7.4.130.0110.00516.57
7.4.120.0110.00616.55
7.4.110.0140.01016.50
7.4.100.0060.01216.39
7.4.90.0150.00616.77
7.4.80.0100.01019.39
7.4.70.0090.00816.41
7.4.60.0090.01316.67
7.4.50.0000.00816.65
7.4.40.0090.00422.52
7.4.30.0090.00916.55
7.4.00.0140.00415.09
7.3.330.0050.00013.37
7.3.320.0050.00013.36
7.3.310.0070.00016.23
7.3.300.0040.00416.36
7.3.290.0100.01016.45
7.3.280.0070.00916.35
7.3.270.0040.01317.40
7.3.260.0070.01018.24
7.3.250.0110.00916.45
7.3.240.0070.01016.37
7.3.230.0100.00716.43
7.3.210.0030.01316.43
7.3.200.0180.00519.39
7.3.190.0120.00616.39
7.3.180.0050.01116.48
7.3.170.0060.00916.52
7.3.160.0030.01216.51
7.3.120.0060.00614.93
7.3.10.0030.01016.32
7.3.00.0030.01116.59
7.2.330.0120.00616.57
7.2.320.0120.00616.73
7.2.310.0080.01116.68
7.2.300.0090.00916.64
7.2.290.0090.00616.78
7.2.130.0050.00816.81
7.2.120.0060.00816.76
7.2.110.0060.00916.86
7.2.100.0080.00616.79
7.2.90.0040.01116.89
7.2.80.0050.00816.98
7.2.70.0050.00816.87
7.2.60.0050.00716.86
7.2.50.0100.00316.74
7.2.40.0020.00916.82
7.2.30.0100.00516.87
7.2.20.0050.01016.71
7.2.10.0090.00616.83
7.2.00.0070.00917.65
7.1.250.0100.00315.61
7.1.240.0130.00315.60
7.1.230.0090.00615.64
7.1.220.0060.00915.67
7.1.210.0110.00615.57
7.1.200.0080.00515.74
7.1.190.0090.00615.76
7.1.180.0060.00615.43
7.1.170.0130.00315.70
7.1.160.0150.00315.21
7.1.150.0060.00915.80
7.1.140.0060.00615.72
7.1.130.0120.00315.72
7.1.120.0070.01015.63
7.1.110.0110.00415.45
7.1.100.0080.00316.90
7.1.90.0110.00415.56
7.1.80.0000.01415.63
7.1.70.0090.00416.38
7.1.60.0080.01317.39
7.1.50.0120.00716.25
7.1.40.0100.00315.54
7.1.30.0000.01015.62
7.1.20.0110.00315.54
7.1.10.0130.00315.44
7.1.00.0090.01918.95
7.0.330.0060.00615.28
7.0.320.0090.00315.04
7.0.310.0120.00315.23
7.0.300.0120.00015.13
7.0.290.0070.01115.35
7.0.280.0120.00314.98
7.0.270.0100.00315.11
7.0.260.0040.01115.07
7.0.250.0110.00315.16
7.0.240.0030.01015.46
7.0.230.0130.00315.31
7.0.220.0130.00015.35
7.0.210.0110.00315.38
7.0.200.0050.00516.10
7.0.190.0130.00315.21
7.0.180.0080.00715.37
7.0.170.0200.00615.32
7.0.160.0000.01515.43
7.0.150.0150.00615.33
7.0.140.0050.04318.79
7.0.130.0090.00915.22
7.0.120.0120.00815.26
7.0.110.0090.00615.17
7.0.100.0100.00314.93
7.0.90.0070.00715.00
7.0.80.0060.01015.31
7.0.70.0030.04718.53
7.0.60.0070.03618.34
7.0.50.0020.02918.58
7.0.40.0060.02816.44
7.0.30.0070.04516.50
7.0.20.0090.04416.63
7.0.10.0000.03716.61
7.0.00.0040.04516.57
5.6.380.0100.00714.25
5.6.370.0060.00614.32
5.6.360.0030.00714.50
5.6.350.0040.00714.54
5.6.340.0060.00314.23
5.6.330.0140.00013.86
5.6.320.0030.00813.66
5.6.310.0110.00014.20
5.6.300.0080.00814.03
5.6.290.0050.00814.12
5.6.280.0050.03817.58
5.6.270.0000.01013.93
5.6.260.0040.00814.04
5.6.250.0150.00414.11
5.6.240.0080.00814.26
5.6.230.0140.00614.40
5.6.220.0020.03917.42
5.6.210.0050.04517.40
5.6.200.0090.04517.69
5.6.190.0070.04017.64
5.6.180.0050.04517.65
5.6.170.0050.04717.53
5.6.160.0030.04317.86
5.6.150.0030.04817.45
5.6.140.0070.04517.56
5.6.130.0070.04717.63
5.6.120.0060.04317.68
5.6.110.0060.04317.75
5.6.100.0090.04017.66
5.6.90.0100.04017.61
5.6.80.0070.04017.22
5.6.70.0040.04117.33
5.6.60.0000.04817.26
5.6.50.0070.04017.20
5.6.40.0040.04417.13
5.6.30.0050.03217.34
5.6.20.0040.02717.24
5.6.10.0070.01817.31
5.6.00.0040.02117.22
5.5.380.0070.00711.05
5.5.370.0080.00011.07
5.5.360.0030.04315.88
5.5.350.0050.03015.78
5.5.340.0050.04216.06
5.5.330.0050.03015.90
5.5.320.0030.04816.02
5.5.310.0030.03715.93
5.5.300.0090.03816.00
5.5.290.0020.04515.88
5.5.280.0030.02615.96
5.5.270.0020.04716.05
5.5.260.0060.02815.85
5.5.250.0030.02915.83
5.5.240.0030.03215.56
5.5.230.0000.04715.60
5.5.220.0100.03115.51
5.5.210.0030.04215.54
5.5.200.0040.04015.65
5.5.190.0040.02915.55
5.5.180.0030.04315.53
5.5.170.0000.00911.14
5.5.160.0030.02115.65
5.5.150.0000.03715.57
5.5.140.0020.02315.52
5.5.130.0100.03715.45
5.5.120.0030.02315.67
5.5.110.0050.02115.53
5.5.100.0050.01815.54
5.5.90.0020.02415.48
5.5.80.0030.02915.58
5.5.70.0020.02915.62
5.5.60.0070.02815.48
5.5.50.0070.02015.53
5.5.40.0040.02015.63
5.5.30.0000.02915.48
5.5.20.0050.02515.57
5.5.10.0020.03915.55
5.5.00.0000.02515.47
5.4.450.0030.04115.09
5.4.440.0040.02315.25
5.4.430.0050.03615.06
5.4.420.0020.03615.22
5.4.410.0070.03715.16
5.4.400.0080.03314.97
5.4.390.0020.04314.92
5.4.380.0000.03815.05
5.4.370.0030.04014.89
5.4.360.0070.03915.06
5.4.350.0000.03615.05
5.4.340.0070.03815.07
5.4.330.0040.00410.90
5.4.320.0020.02215.02
5.4.310.0020.02115.01
5.4.300.0030.03615.03
5.4.290.0050.01815.02
5.4.280.0030.02314.88
5.4.270.0040.01915.03
5.4.260.0050.02015.10
5.4.250.0030.02214.97
5.4.240.0050.03514.96
5.4.230.0040.02214.92
5.4.220.0050.02014.98
5.4.210.0050.01815.04
5.4.200.0030.02214.96
5.4.190.0030.01814.99
5.4.180.0050.02015.06
5.4.170.0000.02614.96
5.4.160.0050.03314.96
5.4.150.0040.02115.02
5.4.140.0020.02213.71
5.4.130.0020.02213.68
5.4.120.0030.01813.67
5.4.110.0020.02013.71
5.4.100.0010.03513.72
5.4.90.0060.01913.73
5.4.80.0070.01713.72
5.4.70.0080.01013.72
5.4.60.0030.02113.62
5.4.50.0020.02013.68
5.4.40.0040.03913.70
5.4.30.0060.01713.64
5.4.20.0050.02213.64
5.4.10.0070.01613.67
5.4.00.0040.02513.44
5.3.290.0010.02312.79
5.3.280.0020.02812.76
5.3.270.0000.03212.83
5.3.260.0060.01812.79
5.3.250.0040.01912.74
5.3.240.0000.02212.82
5.3.230.0070.01512.81
5.3.220.0040.02212.71
5.3.210.0000.02912.77
5.3.200.0030.02112.80
5.3.190.0000.02112.73
5.3.180.0020.02212.73
5.3.170.0040.02412.77
5.3.160.0020.02012.79
5.3.150.0040.01712.80
5.3.140.0000.02112.80
5.3.130.0100.01312.70
5.3.120.0060.01912.69
5.3.110.0030.03212.80
5.3.100.0030.03112.51
5.3.90.0000.01912.47
5.3.80.0030.02512.47
5.3.70.0040.01812.42
5.3.60.0020.03012.49
5.3.50.0020.02412.39
5.3.40.0060.03312.40
5.3.30.0020.03512.46
5.3.20.0000.02012.26
5.3.10.0040.03112.33
5.3.00.0040.03912.33
5.2.170.0020.01511.54
5.2.160.0020.03311.54
5.2.150.0030.02111.54
5.2.140.0060.01311.54
5.2.130.0020.03411.54
5.2.120.0000.03611.54
5.2.110.0030.03311.54
5.2.100.0020.03311.54
5.2.90.0050.03011.54
5.2.80.0050.03311.54
5.2.70.0070.03011.54
5.2.60.0030.03111.54
5.2.50.0040.02211.54
5.2.40.0060.02911.54
5.2.30.0000.03511.54
5.2.20.0030.03111.54
5.2.10.0050.02111.54
5.2.00.0050.02811.54
5.1.60.0030.02511.54
5.1.50.0050.02611.54
5.1.40.0030.02511.54
5.1.30.0010.03211.54
5.1.20.0060.02711.54
5.1.10.0050.02611.54
5.1.00.0050.02311.54
5.0.50.0010.02111.54
5.0.40.0030.02111.54
5.0.30.0010.03111.54
5.0.20.0040.02311.54
5.0.10.0000.02411.54
5.0.00.0040.02911.54
4.4.90.0000.01811.54
4.4.80.0010.01811.54
4.4.70.0030.01711.54
4.4.60.0050.01811.54
4.4.50.0010.01511.54
4.4.40.0070.01811.54
4.4.30.0030.02011.54
4.4.20.0030.02011.54
4.4.10.0030.01811.54
4.4.00.0040.02511.54
4.3.110.0020.01911.54
4.3.100.0040.01711.54
4.3.90.0040.01711.54
4.3.80.0040.02011.54
4.3.70.0000.02111.54
4.3.60.0020.02111.54
4.3.50.0040.01511.54
4.3.40.0030.02411.54
4.3.30.0020.01711.54
4.3.20.0030.01811.54
4.3.10.0010.01511.54
4.3.00.0010.01311.54

preferences:
43.53 ms | 401 KiB | 5 Q