3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { static::who(); } public static function who() { echo __CLASS__."\n"; } } class B extends A { public static function test() { A::foo(); parent::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.00618.18
8.3.50.0150.00716.38
8.3.40.0040.01118.71
8.3.30.0210.00018.46
8.3.20.0040.00420.38
8.3.10.0070.00321.90
8.3.00.0080.00019.67
8.2.180.0150.00318.43
8.2.170.0070.00722.96
8.2.160.0140.00419.00
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0070.00020.99
8.2.120.0050.00326.35
8.2.110.0090.00020.35
8.2.100.0060.00617.72
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0000.00818.04
8.2.50.0090.00018.10
8.2.40.0030.00520.47
8.2.30.0040.00419.03
8.2.20.0000.00717.87
8.2.10.0000.00718.00
8.2.00.0000.00717.99
8.1.280.0110.00325.92
8.1.270.0080.00022.14
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.47
8.1.230.0000.01019.16
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0040.00418.57
8.1.160.0020.00519.08
8.1.150.0030.00720.68
8.1.140.0040.00419.51
8.1.130.0000.00718.77
8.1.120.0070.00017.23
8.1.110.0040.00417.30
8.1.100.0030.00517.19
8.1.90.0030.00617.38
8.1.80.0040.00417.32
8.1.70.0040.00417.33
8.1.60.0030.00517.42
8.1.50.0040.00417.51
8.1.40.0000.00817.43
8.1.30.0040.00417.61
8.1.20.0080.00017.60
8.1.10.0000.00817.51
8.1.00.0000.00817.49
8.0.300.0000.00918.77
8.0.290.0000.00816.63
8.0.280.0040.00418.34
8.0.270.0000.00717.25
8.0.260.0060.00016.82
8.0.250.0070.00016.90
8.0.240.0040.00416.78
8.0.230.0000.00716.94
8.0.220.0000.00816.80
8.0.210.0040.00216.88
8.0.200.0030.00316.86
8.0.190.0030.00716.78
8.0.180.0000.00716.82
8.0.170.0000.00816.75
8.0.160.0070.00016.87
8.0.150.0040.00716.67
8.0.140.0000.00816.81
8.0.130.0000.00513.30
8.0.120.0000.00716.84
8.0.110.0000.00816.89
8.0.100.0030.00516.83
8.0.90.0040.00416.62
8.0.80.0120.00416.79
8.0.70.0040.00416.81
8.0.60.0070.00016.84
8.0.50.0000.00816.66
8.0.30.0110.00517.01
8.0.20.0110.00917.40
8.0.10.0000.00716.78
8.0.00.0170.01016.90
7.4.330.0030.00315.55
7.4.320.0000.00716.52
7.4.300.0060.00016.52
7.4.290.0040.00416.55
7.4.280.0060.00316.64
7.4.270.0050.00316.46
7.4.260.0050.00516.56
7.4.250.0070.00016.50
7.4.240.0040.00416.63
7.4.230.0030.00316.40
7.4.220.0040.01516.58
7.4.210.0070.01316.57
7.4.200.0030.00316.49
7.4.160.0090.01216.42
7.4.150.0110.00717.40
7.4.140.0150.00717.86
7.4.130.0070.01416.49
7.4.120.0110.01016.36
7.4.110.0170.00716.48
7.4.100.0100.00716.50
7.4.90.0120.00616.66
7.4.80.0140.00419.39
7.4.70.0180.00016.46
7.4.60.0040.01216.32
7.4.50.0080.00616.29
7.4.40.0030.01516.36
7.4.30.0100.01016.59
7.4.00.0020.01214.71
7.3.330.0050.00013.11
7.3.320.0030.00313.25
7.3.310.0000.00816.23
7.3.300.0030.00316.25
7.3.290.0050.00916.22
7.3.280.0110.00616.23
7.3.270.0110.00617.40
7.3.260.0060.01316.33
7.3.250.0110.00716.28
7.3.240.0090.01016.25
7.3.230.0140.00716.48
7.3.210.0100.00716.32
7.3.200.0140.00416.23
7.3.190.0070.00716.54
7.3.180.0060.00916.38
7.3.170.0090.00616.37
7.3.160.0140.00716.51
7.3.120.0070.01114.73
7.3.110.0100.00714.78
7.3.100.0100.00614.67
7.3.90.0060.01214.75
7.3.80.0100.00614.59
7.3.70.0000.01314.74
7.3.60.0070.00714.53
7.3.50.0110.00414.43
7.3.40.0070.01014.80
7.3.30.0090.00314.81
7.3.20.0040.01116.57
7.3.10.0090.00616.54
7.3.00.0060.00916.57
7.2.330.0160.00316.29
7.2.320.0180.00416.62
7.2.310.0100.00716.49
7.2.300.0070.01016.61
7.2.290.0180.00016.58
7.2.250.0070.01314.77
7.2.240.0040.01514.84
7.2.230.0100.00715.14
7.2.220.0180.00015.02
7.2.210.0070.01114.79
7.2.200.0060.00914.96
7.2.190.0080.00814.66
7.2.180.0090.00614.86
7.2.170.0030.01015.00
7.2.60.0090.00316.72
7.2.00.0060.00619.29
7.1.330.0060.00615.89
7.1.320.0090.00615.60
7.1.310.0030.01315.72
7.1.300.0040.00715.64
7.1.290.0040.00815.65
7.1.280.0060.00615.70
7.1.270.0080.00615.55
7.1.260.0040.00415.64
7.1.200.0110.00415.57
7.1.100.0080.00517.71
7.1.70.0040.00816.91
7.1.60.0160.01034.73
7.1.50.0230.00734.40
7.1.40.0270.01734.29
7.1.30.0260.01634.11
7.1.20.0160.01234.32
7.1.10.0000.01316.46
7.1.00.0060.00916.44
7.0.200.0040.00816.57
7.0.190.0060.01316.64
7.0.180.0120.00916.10
7.0.170.0030.01016.34
7.0.160.0060.00616.25
7.0.150.0040.00816.39
7.0.140.0060.00616.00
7.0.130.0070.00716.62
7.0.120.0060.00616.49
7.0.110.0090.00416.20
7.0.100.0100.00316.45
7.0.90.0050.00816.02
7.0.80.0080.00516.23
7.0.70.0030.01316.46
7.0.60.0060.00616.03
7.0.50.0090.00516.18
7.0.40.0070.00716.30
7.0.30.0000.01316.16
7.0.20.0090.00416.41
7.0.10.0030.01016.38
7.0.00.0060.00916.45

preferences:
48.04 ms | 401 KiB | 5 Q