3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static $someFunction; // Throws error. static function foo() { (static::$someFunction)(); } // Works static function bar() { $func = static::$someFunction; $func(); } } A::$someFunction = function() { print "wtf\n";}; A::bar(); A::foo();

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.00716.35
8.3.50.0100.01021.20
8.3.40.0150.00018.72
8.3.30.0120.00318.79
8.3.20.0040.00420.20
8.3.10.0070.00021.69
8.3.00.0040.00423.66
8.2.180.0110.00416.50
8.2.170.0120.00922.96
8.2.160.0070.00720.52
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00819.83
8.2.120.0040.00426.35
8.2.110.0090.00021.93
8.2.100.0040.00717.92
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0030.00717.93
8.2.50.0000.00818.07
8.2.40.0100.00020.33
8.2.30.0050.00220.66
8.2.20.0030.00617.80
8.2.10.0040.00418.13
8.2.00.0050.00217.97
8.1.280.0110.00325.92
8.1.270.0180.00024.02
8.1.260.0090.00028.09
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0110.00019.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0080.00017.23
8.1.180.0000.00718.10
8.1.170.0040.00418.59
8.1.160.0040.00420.82
8.1.150.0040.00418.93
8.1.140.0040.00419.50
8.1.130.0080.00017.67
8.1.120.0000.00817.39
8.1.110.0000.00717.46
8.1.100.0000.00817.45
8.1.90.0040.00417.36
8.1.80.0000.00717.37
8.1.70.0080.00017.30
8.1.60.0040.00417.59
8.1.50.0040.00417.56
8.1.40.0050.00317.40
8.1.30.0040.00417.56
8.1.20.0060.00317.60
8.1.10.0000.00817.62
8.1.00.0030.00617.40
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0030.00318.34
8.0.270.0030.00517.22
8.0.260.0060.00017.34
8.0.250.0000.00716.96
8.0.240.0030.00316.79
8.0.230.0030.00316.82
8.0.220.0070.00016.84
8.0.210.0000.00716.84
8.0.200.0030.00316.95
8.0.190.0060.00316.96
8.0.180.0040.00416.81
8.0.170.0000.00716.92
8.0.160.0050.00316.82
8.0.150.0000.00716.79
8.0.140.0040.00416.86
8.0.130.0050.00013.36
8.0.120.0080.00016.79
8.0.110.0000.00716.89
8.0.100.0070.00016.91
8.0.90.0030.00416.92
8.0.80.0100.01016.89
8.0.70.0040.00417.00
8.0.60.0000.00716.99
8.0.50.0040.00416.78
8.0.30.0120.00617.21
8.0.20.0090.01017.40
8.0.10.0030.00516.86
8.0.00.0110.00916.69
7.4.330.0060.00016.79
7.4.320.0060.00016.63
7.4.300.0000.00716.51
7.4.290.0080.00016.49
7.4.280.0000.00916.56
7.4.270.0040.00416.49
7.4.260.0000.00716.50
7.4.250.0040.00416.45
7.4.240.0040.00316.50
7.4.230.0070.00016.40
7.4.220.0180.00616.56
7.4.210.0120.00316.55
7.4.200.0030.00316.32
7.4.160.0180.00316.45
7.4.150.0030.01417.40
7.4.140.0100.01117.86
7.4.130.0120.00516.54
7.4.120.0140.00316.47
7.4.110.0100.01016.34
7.4.100.0110.01116.47
7.4.90.0030.01416.29
7.4.80.0120.00819.39
7.4.70.0100.00716.59
7.4.60.0120.00916.55
7.4.50.0000.01716.20
7.4.40.0060.01216.36
7.4.30.0090.01216.56
7.4.00.0090.00914.96
7.3.330.0030.00313.31
7.3.320.0030.00313.23
7.3.310.0000.00716.20
7.3.300.0030.00316.31
7.3.290.0080.00916.26
7.3.280.0140.00516.25
7.3.270.0110.00617.40
7.3.260.0110.01116.27
7.3.250.0110.00716.38
7.3.240.0120.00816.29
7.3.230.0100.01016.39
7.3.210.0120.00616.22
7.3.200.0080.00819.39
7.3.190.0150.00716.38
7.3.180.0080.00816.23
7.3.170.0090.00916.33
7.3.160.0090.00916.47
7.3.120.0130.00514.73
7.3.110.0070.01015.07
7.3.100.0060.00714.74
7.3.90.0050.00514.77
7.3.80.0050.00514.74
7.3.70.0030.00914.79
7.3.60.0080.00314.49
7.3.50.0020.00914.83
7.3.40.0060.00414.64
7.3.30.0050.00714.62
7.3.20.0100.00316.49
7.3.10.0030.00716.63
7.3.00.0040.00716.58
7.2.330.0080.00816.50
7.2.320.0120.00916.71
7.2.310.0130.00316.61
7.2.300.0080.01116.78
7.2.290.0100.00616.55
7.2.250.0080.00815.20
7.2.240.0060.01015.17
7.2.230.0030.01015.18
7.2.220.0040.01015.03
7.2.210.0040.00715.05
7.2.200.0020.01115.06
7.2.190.0000.01314.83
7.2.180.0060.00615.11
7.2.170.0040.00815.02
7.2.160.0050.00615.03
7.2.150.0020.01117.04
7.2.140.0110.00216.92
7.2.130.0040.01116.98
7.2.120.0070.00716.77
7.2.110.0060.00516.88
7.2.100.0020.00916.92
7.2.90.0050.00916.85
7.2.80.0090.00516.99
7.2.70.0030.01016.90
7.2.60.0090.00616.87
7.2.50.0060.00616.75
7.2.40.0000.01116.90
7.2.30.0040.01016.98
7.2.20.0080.00417.13
7.2.10.0070.00416.87
7.2.00.0030.01017.86
7.1.330.0030.01215.56
7.1.320.0040.00915.77
7.1.310.0050.00615.70
7.1.300.0080.00515.55
7.1.290.0020.01015.68
7.1.280.0030.00915.47
7.1.270.0080.00515.66
7.1.260.0040.00815.69
7.1.250.0070.00515.72
7.1.240.0070.00715.52
7.1.230.0060.00315.49
7.1.220.0100.00315.77
7.1.210.0070.00715.45
7.1.200.0020.01215.68
7.1.190.0070.00615.76
7.1.180.0000.01515.29
7.1.170.0050.00315.49
7.1.160.0100.00315.64
7.1.150.0100.00315.39
7.1.140.0070.00715.54
7.1.130.0060.00615.77
7.1.120.0030.01215.81
7.1.110.0090.00015.64
7.1.100.0020.01216.74
7.1.90.0070.00715.77
7.1.80.0030.00615.71
7.1.70.0090.00416.29
7.1.60.0030.01717.44
7.1.50.0060.00916.12
7.1.40.0060.00615.70
7.1.30.0070.00715.69
7.1.20.0030.01015.41
7.1.10.0040.00415.76
7.1.00.0040.04419.01
7.0.330.0070.00715.07
7.0.320.0090.00015.52
7.0.310.0030.01015.39
7.0.300.0060.00615.41
7.0.290.0060.00615.34
7.0.280.0000.01115.07
7.0.270.0040.00415.42
7.0.260.0100.00315.38
7.0.250.0050.00515.54
7.0.240.0060.00915.38
7.0.230.0030.00915.39
7.0.220.0060.00615.37
7.0.210.0030.01015.13
7.0.200.0050.00815.84
7.0.190.0040.01115.24
7.0.180.0060.00615.36
7.0.170.0070.00415.36
7.0.160.0140.00015.19
7.0.150.0030.00615.36
7.0.140.0030.01015.31
7.0.130.0060.00315.44
7.0.120.0030.00915.36
7.0.110.0060.00815.37
7.0.100.0030.04017.67
7.0.90.0050.02417.70
7.0.80.0070.02317.73
7.0.70.0020.04317.69
7.0.60.0090.02017.65
7.0.50.0050.03017.71
7.0.40.0060.02416.70
7.0.30.0030.02716.82
7.0.20.0080.02216.78
7.0.10.0070.02416.69
7.0.00.0020.02716.75
5.6.400.0090.00014.43
5.6.390.0030.01314.52
5.6.380.0040.01114.32
5.6.370.0040.00714.13
5.6.360.0090.00014.22
5.6.350.0000.01314.06
5.6.340.0040.01114.13
5.6.330.0040.01114.11
5.6.320.0070.00714.25
5.6.310.0030.01013.77
5.6.300.0000.01114.30
5.6.290.0040.01114.07
5.6.280.0030.02317.65
5.6.270.0060.00314.33
5.6.260.0030.00914.03
5.6.250.0030.02817.38
5.6.240.0090.03717.38
5.6.230.0080.02017.20
5.6.220.0110.01817.38
5.6.210.0050.02417.34
5.6.200.0050.02617.67
5.6.190.0050.02417.61
5.6.180.0100.02217.45
5.6.170.0090.03317.71
5.6.160.0070.02217.44
5.6.150.0030.02517.70
5.6.140.0080.02217.42
5.6.130.0030.02917.63
5.6.120.0030.02717.51
5.6.110.0020.02917.69
5.6.100.0050.03117.52
5.6.90.0070.02517.66
5.6.80.0050.02317.17
5.6.70.0060.02117.20
5.6.60.0040.02517.19
5.6.50.0060.02117.20
5.6.40.0030.02317.11
5.6.30.0050.03717.22
5.6.20.0110.03617.21
5.6.10.0100.04017.30
5.6.00.0100.03017.33
5.5.380.0030.02117.28
5.5.370.0050.02217.15
5.5.360.0080.02117.24
5.5.350.0050.02517.20
5.5.340.0070.02517.62
5.5.330.0040.02617.33
5.5.320.0030.03817.41
5.5.310.0070.02517.19
5.5.300.0050.02817.32
5.5.290.0070.02317.39
5.5.280.0050.02517.43
5.5.270.0040.02317.49
5.5.260.0050.02517.60
5.5.250.0050.03917.08
5.5.240.0030.02516.98
5.5.230.0040.02317.01
5.5.220.0040.03017.10
5.5.210.0050.02717.09
5.5.200.0100.01817.14
5.5.190.0050.02217.06
5.5.180.0050.03216.90
5.5.170.0050.00514.07
5.5.160.0050.02717.19
5.5.150.0040.02617.14
5.5.140.0030.04217.13
5.5.130.0080.04117.11
5.5.120.0070.03717.22
5.5.110.0070.04317.12
5.5.100.0050.03816.94
5.5.90.0050.04417.05
5.5.80.0070.02817.15
5.5.70.0100.03717.10
5.5.60.0050.04517.08
5.5.50.0090.03017.06
5.5.40.0100.03217.05
5.5.30.0130.03216.96
5.5.20.0090.03917.13
5.5.10.0080.04217.08
5.5.00.0050.03416.97

preferences:
67.85 ms | 401 KiB | 5 Q