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.0150.00016.47
8.3.50.0120.00821.34
8.3.40.0070.00718.87
8.3.30.0070.01118.88
8.3.20.0070.00020.21
8.3.10.0060.00321.78
8.3.00.0080.00023.66
8.2.180.0120.00316.75
8.2.170.0150.00022.96
8.2.160.0070.01020.35
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00419.82
8.2.120.0040.00426.35
8.2.110.0060.00322.25
8.2.100.0120.00017.84
8.2.90.0040.00419.18
8.2.80.0000.00818.16
8.2.70.0000.00917.75
8.2.60.0030.00618.03
8.2.50.0000.00818.07
8.2.40.0000.00722.18
8.2.30.0000.00719.32
8.2.20.0000.00717.79
8.2.10.0070.00017.97
8.2.00.0070.00018.09
8.1.280.0110.00425.92
8.1.270.0110.00423.81
8.1.260.0060.00328.09
8.1.250.0070.00028.09
8.1.240.0180.00423.96
8.1.230.0080.00423.98
8.1.220.0060.00317.78
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.22
8.1.180.0020.00518.10
8.1.170.0090.00018.59
8.1.160.0040.00420.77
8.1.150.0040.00418.95
8.1.140.0080.00019.54
8.1.130.0030.00317.77
8.1.120.0000.00817.46
8.1.110.0000.00917.34
8.1.100.0030.00617.47
8.1.90.0070.00017.47
8.1.80.0070.00017.36
8.1.70.0030.00317.48
8.1.60.0040.00417.44
8.1.50.0030.00517.56
8.1.40.0000.00817.43
8.1.30.0050.00317.70
8.1.20.0080.00017.56
8.1.10.0050.00317.58
8.1.00.0020.00517.50
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.33
8.0.270.0000.00817.25
8.0.260.0000.00817.31
8.0.250.0080.00017.05
8.0.240.0060.00016.85
8.0.230.0000.00716.89
8.0.220.0040.00416.93
8.0.210.0070.00016.84
8.0.200.0000.00616.98
8.0.190.0040.00417.01
8.0.180.0040.00416.99
8.0.170.0050.00316.86
8.0.160.0000.00716.99
8.0.150.0040.00416.90
8.0.140.0040.00416.81
8.0.130.0000.00513.37
8.0.120.0000.00816.82
8.0.110.0060.00316.78
8.0.100.0040.00416.94
8.0.90.0020.00517.00
8.0.80.0080.00816.94
8.0.70.0080.00016.89
8.0.60.0000.00816.97
8.0.50.0000.00716.82
8.0.30.0110.00517.15
8.0.20.0140.00517.40
8.0.10.0050.00217.11
8.0.00.0100.01216.86
7.4.330.0000.00516.69
7.4.320.0000.00616.61
7.4.300.0030.00316.62
7.4.290.0030.00316.57
7.4.280.0030.00616.51
7.4.270.0050.00216.46
7.4.260.0040.00416.45
7.4.250.0080.00016.61
7.4.240.0000.00816.46
7.4.230.0030.00316.35
7.4.220.0060.01216.42
7.4.210.0030.01316.62
7.4.200.0030.00316.31
7.4.160.0060.01016.43
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0130.00616.48
7.4.120.0140.00616.73
7.4.110.0070.01316.75
7.4.100.0140.00316.51
7.4.90.0100.00716.40
7.4.80.0070.01019.39
7.4.70.0100.00716.41
7.4.60.0090.01416.61
7.4.50.0100.00316.68
7.4.40.0110.00616.35
7.4.30.0070.01116.51
7.4.00.0070.01015.03
7.3.330.0060.00013.18
7.3.320.0000.00613.36
7.3.310.0030.00316.42
7.3.300.0000.00716.45
7.3.290.0100.00716.34
7.3.280.0060.00916.38
7.3.270.0140.00717.40
7.3.260.0110.00616.59
7.3.250.0120.00716.35
7.3.240.0080.01416.45
7.3.230.0140.00316.39
7.3.210.0110.00816.42
7.3.200.0040.01619.39
7.3.190.0060.01216.33
7.3.180.0100.00616.35
7.3.170.0060.01316.59
7.3.160.0030.01316.52
7.3.120.0070.01114.59
7.3.110.0070.01114.97
7.3.100.0090.00614.74
7.3.90.0060.00914.58
7.3.80.0090.00314.68
7.3.70.0030.01414.95
7.3.60.0090.00614.89
7.3.50.0000.01714.65
7.3.40.0070.00414.91
7.3.30.0100.00714.80
7.3.20.0030.01416.73
7.3.10.0040.01116.45
7.3.00.0060.00916.65
7.2.330.0060.01216.79
7.2.320.0070.01116.50
7.2.310.0090.01416.64
7.2.300.0090.01316.67
7.2.290.0130.00616.87
7.2.250.0150.00415.36
7.2.240.0030.01715.30
7.2.230.0110.00715.05
7.2.220.0000.01314.98
7.2.210.0060.00915.18
7.2.200.0100.00615.08
7.2.190.0000.01615.21
7.2.180.0090.00915.05
7.2.170.0040.00715.18
7.2.80.0040.01116.48
7.2.60.0040.01116.92
7.2.00.0060.00619.52
7.1.330.0040.01115.63
7.1.320.0030.01315.73
7.1.310.0090.00615.65
7.1.300.0070.01015.39
7.1.290.0030.01215.71
7.1.280.0060.01315.54
7.1.270.0040.01115.71
7.1.260.0080.00415.88
7.1.200.0000.01015.70
7.1.100.0030.00718.27
7.1.70.0000.00816.95
7.1.60.0030.02019.27
7.1.50.0070.01416.84
7.1.00.0000.08022.42
7.0.200.0070.00316.40
7.0.60.0100.08721.80
7.0.50.0000.04317.88
7.0.40.0070.04720.13
7.0.30.0100.05720.17
7.0.20.0170.04320.09
7.0.10.0100.07320.05
7.0.00.0070.04720.06
5.6.280.0030.03020.91
5.6.210.0030.07020.51
5.6.200.0130.05018.18
5.6.190.0070.05720.63
5.6.180.0330.07020.46
5.6.170.0230.06320.55
5.6.160.0100.07720.49
5.6.150.0170.07318.15
5.6.140.0000.06318.27
5.6.130.0100.05318.11
5.6.120.0000.05321.12
5.6.110.0070.08721.09
5.6.100.0170.05021.12
5.6.90.0000.09020.97
5.6.80.0070.06320.49
5.5.350.0070.08020.28
5.5.340.0130.04318.02
5.5.330.0000.09020.27
5.5.320.0200.04720.27
5.5.310.0300.05020.37
5.5.300.0030.08317.95
5.5.290.0030.08317.93
5.5.280.0030.08020.85
5.5.270.0000.04320.89
5.5.260.0100.08320.74
5.5.250.0130.07720.69
5.5.240.0130.07320.27

preferences:
48.24 ms | 401 KiB | 5 Q