3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { stati::who(); } public static function who() { echo __CLASS__."\n"; } } class B extends A { public static function test() { A::foo(); paren::foo(); self::foo(); } public static function who() { echo __CLASS__."\n"; } } class C extends B { public static function who() { echo __CLASS__."\n"; } } C::test();

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.0090.01218.40
8.3.50.0070.00716.26
8.3.40.0110.00418.64
8.3.30.0140.00318.63
8.3.20.0080.00020.07
8.3.10.0070.00323.61
8.3.00.0080.00019.68
8.2.180.0130.00718.29
8.2.170.0120.00322.96
8.2.160.0080.00819.04
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.29
8.2.120.0040.00426.35
8.2.110.0030.00620.41
8.2.100.0000.01117.78
8.2.90.0030.00619.27
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0060.00317.91
8.2.50.0000.00818.10
8.2.40.0060.00320.60
8.2.30.0000.00719.23
8.2.20.0040.00417.95
8.2.10.0000.00718.10
8.2.00.0040.00417.93
8.1.280.0090.00925.92
8.1.270.0040.00422.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00321.03
8.1.230.0070.00418.97
8.1.220.0000.00817.74
8.1.210.0070.00318.77
8.1.200.0030.00617.10
8.1.190.0040.00417.10
8.1.180.0000.00718.10
8.1.170.0040.00420.30
8.1.160.0000.00818.94
8.1.150.0070.00318.67
8.1.140.0070.00019.49
8.1.130.0030.00318.75
8.1.120.0040.00417.23
8.1.110.0040.00417.17
8.1.100.0000.00817.36
8.1.90.0000.00717.38
8.1.80.0000.00717.32
8.1.70.0030.00317.32
8.1.60.0040.00417.41
8.1.50.0000.00817.41
8.1.40.0040.00417.49
8.1.30.0000.00817.54
8.1.20.0040.00417.55
8.1.10.0030.00617.45
8.1.00.0000.00817.41
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0000.00817.18
8.0.260.0000.00616.72
8.0.250.0030.00316.89
8.0.240.0100.00016.93
8.0.230.0070.00016.95
8.0.220.0070.00016.92
8.0.210.0000.00716.89
8.0.200.0000.00716.92
8.0.190.0080.00316.88
8.0.180.0070.00016.83
8.0.170.0000.00716.95
8.0.160.0040.00416.90
8.0.150.0070.00416.82
8.0.140.0040.00416.82
8.0.130.0000.00513.30
8.0.120.0070.00316.85
8.0.110.0070.00016.75
8.0.100.0070.00016.78
8.0.90.0040.00416.84
8.0.80.0070.01416.77
8.0.70.0080.00016.83
8.0.60.0070.00016.84
8.0.50.0050.00316.75
8.0.30.0100.00717.08
8.0.20.0120.00717.40
8.0.10.0040.00416.86
8.0.00.0080.01116.72
7.4.330.0030.00515.55
7.4.320.0030.00316.37
7.4.300.0000.00616.53
7.4.290.0000.00716.54
7.4.280.0000.00816.44
7.4.270.0000.00816.45
7.4.260.0070.00016.44
7.4.250.0030.00316.41
7.4.240.0000.00716.54
7.4.230.0070.00016.32
7.4.220.0110.00716.43
7.4.210.0090.01316.56
7.4.200.0000.00716.58
7.4.160.0120.00316.42
7.4.150.0150.00317.40
7.4.140.0120.00817.86
7.4.130.0070.00916.40
7.4.120.0100.01016.36
7.4.110.0070.01116.38
7.4.100.0160.00716.45
7.4.90.0080.00816.42
7.4.80.0090.01219.39
7.4.70.0060.00916.70
7.4.60.0130.00316.49
7.4.50.0030.01316.43
7.4.40.0100.01016.62
7.4.30.0080.01116.57
7.4.00.0070.01015.02
7.3.330.0060.00013.33
7.3.320.0030.00313.37
7.3.310.0040.00416.40
7.3.300.0070.00016.24
7.3.290.0020.01316.39
7.3.280.0080.01016.34
7.3.270.0040.01317.40
7.3.260.0100.00716.47
7.3.250.0130.01016.47
7.3.240.0080.01216.41
7.3.230.0190.00316.60
7.3.210.0130.00316.46
7.3.200.0100.01216.32
7.3.190.0110.00516.31
7.3.180.0060.00916.51
7.3.170.0110.00616.28
7.3.160.0080.00816.35
7.3.120.0070.01114.51
7.3.110.0110.00814.88
7.3.100.0070.01114.99
7.3.90.0070.01014.78
7.3.80.0030.01014.81
7.3.70.0100.00714.79
7.3.60.0040.00714.85
7.3.50.0030.01214.61
7.3.40.0100.00714.94
7.3.30.0090.00614.87
7.3.20.0000.01016.68
7.3.10.0080.00816.65
7.3.00.0090.00516.47
7.2.330.0080.00816.55
7.2.320.0120.02016.57
7.2.310.0110.00816.58
7.2.300.0030.01416.37
7.2.290.0030.01516.49
7.2.250.0040.01115.11
7.2.240.0130.00715.07
7.2.230.0000.01115.02
7.2.220.0030.00714.68
7.2.210.0150.00414.96
7.2.200.0030.01414.85
7.2.190.0030.00714.93
7.2.180.0110.00714.94
7.2.170.0040.01115.00
7.2.130.0100.00716.77
7.2.120.0090.00316.76
7.2.110.0060.00916.91
7.2.100.0000.01116.66
7.2.90.0070.00716.81
7.2.80.0060.00916.71
7.2.70.0080.00416.91
7.2.60.0060.00516.66
7.2.50.0030.00916.61
7.2.40.0060.00616.65
7.2.30.0000.01116.80
7.2.20.0080.00416.74
7.2.10.0030.01316.60
7.2.00.0010.00917.98
7.1.330.0070.00715.55
7.1.320.0040.00415.70
7.1.310.0030.00915.62
7.1.300.0030.00915.42
7.1.290.0000.00915.54
7.1.280.0060.00915.57
7.1.270.0090.00315.30
7.1.260.0070.00315.66
7.1.250.0030.01215.75
7.1.240.0140.00015.68
7.1.230.0080.00315.72
7.1.220.0000.01215.66
7.1.210.0140.00015.52
7.1.200.0050.00415.69
7.1.190.0040.01215.69
7.1.180.0030.00615.57
7.1.170.0090.00315.35
7.1.160.0070.00715.57
7.1.150.0040.00415.57
7.1.140.0070.00715.39
7.1.130.0060.00615.65
7.1.120.0040.01115.60
7.1.110.0060.00315.52
7.1.100.0100.00516.87
7.1.90.0120.00015.52
7.1.80.0030.00715.66
7.1.70.0040.01016.35
7.1.60.0150.00625.30
7.1.50.0170.00625.09
7.1.40.0140.00824.93
7.1.30.0070.01224.87
7.1.20.0120.00725.13
7.1.10.0060.00515.89
7.1.00.0040.00716.04
7.0.330.0070.00715.30
7.0.320.0080.00415.46
7.0.310.0000.01415.26
7.0.300.0000.01015.34
7.0.290.0050.00515.38
7.0.280.0030.00714.94
7.0.270.0030.00915.43
7.0.260.0030.01215.18
7.0.250.0070.00315.36
7.0.240.0030.00615.12
7.0.230.0030.00615.14
7.0.220.0070.00315.45
7.0.210.0080.00415.29
7.0.200.0020.01416.04
7.0.190.0040.00915.97
7.0.180.0070.00615.85
7.0.170.0070.00615.68
7.0.160.0080.00615.75
7.0.150.0030.00815.80
7.0.140.0050.00815.63
7.0.130.0040.00715.83
7.0.120.0020.01015.79
7.0.110.0060.00715.82
7.0.100.0040.00715.67
7.0.90.0090.00315.62
7.0.80.0030.00915.67
7.0.70.0040.00915.56
7.0.60.0060.00715.71
7.0.50.0070.00315.89
7.0.40.0020.00914.82
7.0.30.0050.00714.81
7.0.20.0030.01014.69
7.0.10.0050.00614.82
7.0.00.0070.00514.65
5.6.380.0090.00614.29

preferences:
36.86 ms | 401 KiB | 5 Q