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(); 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.0140.00718.55
8.3.50.0170.00016.38
8.3.40.0090.01218.84
8.3.30.0100.00718.71
8.3.20.0040.00420.21
8.3.10.0070.00421.69
8.3.00.0030.00519.68
8.2.180.0140.00318.52
8.2.170.0030.01022.96
8.2.160.0090.00919.04
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0030.00521.05
8.2.120.0040.00426.35
8.2.110.0060.00322.24
8.2.100.0060.00617.97
8.2.90.0000.00818.98
8.2.80.0050.00317.97
8.2.70.0030.00517.63
8.2.60.0000.00817.80
8.2.50.0060.00318.10
8.2.40.0090.00020.64
8.2.30.0040.00419.19
8.2.20.0000.00817.97
8.2.10.0040.00418.05
8.2.00.0000.00718.02
8.1.280.0120.00325.92
8.1.270.0040.00422.13
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00623.69
8.1.230.0110.00020.88
8.1.220.0070.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00917.22
8.1.190.0050.00317.10
8.1.180.0070.00018.10
8.1.170.0000.00818.54
8.1.160.0070.00018.82
8.1.150.0060.00318.66
8.1.140.0040.00419.34
8.1.130.0070.00018.76
8.1.120.0050.00217.39
8.1.110.0040.00417.19
8.1.100.0060.00317.16
8.1.90.0000.00717.33
8.1.80.0040.00417.34
8.1.70.0050.00217.25
8.1.60.0080.00017.43
8.1.50.0050.00317.45
8.1.40.0040.00417.33
8.1.30.0050.00317.60
8.1.20.0000.00717.65
8.1.10.0030.00517.52
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.44
8.0.270.0000.00717.22
8.0.260.0030.00316.92
8.0.250.0000.00716.93
8.0.240.0030.00616.98
8.0.230.0050.00316.94
8.0.220.0030.00316.82
8.0.210.0030.00516.91
8.0.200.0060.00016.99
8.0.190.0100.00016.95
8.0.180.0040.00416.93
8.0.170.0070.00016.84
8.0.160.0000.00716.93
8.0.150.0040.00416.73
8.0.140.0070.00016.80
8.0.130.0030.00313.34
8.0.120.0040.00416.90
8.0.110.0000.00816.87
8.0.100.0000.00716.88
8.0.90.0040.00416.89
8.0.80.0130.00316.89
8.0.70.0050.00316.77
8.0.60.0040.00416.88
8.0.50.0040.00417.00
8.0.30.0140.00517.09
8.0.20.0120.00617.40
8.0.10.0040.00417.01
8.0.00.0120.00616.91
7.4.330.0060.00015.55
7.4.320.0040.00416.54
7.4.300.0000.00616.62
7.4.290.0000.00716.51
7.4.280.0060.00316.59
7.4.270.0030.00316.64
7.4.260.0050.00516.59
7.4.250.0020.00516.51
7.4.240.0000.00716.49
7.4.230.0030.00316.71
7.4.220.0100.00916.57
7.4.210.0070.01016.64
7.4.200.0000.00716.35
7.4.160.0130.00616.38
7.4.150.0180.00017.40
7.4.140.0120.01017.86
7.4.130.0200.00616.61
7.4.120.0080.01416.53
7.4.110.0160.00316.48
7.4.100.0030.01316.54
7.4.90.0030.01516.47
7.4.80.0150.00919.39
7.4.70.0050.01116.46
7.4.60.0090.00616.39
7.4.50.0030.01316.57
7.4.40.0130.00316.45
7.4.30.0120.00416.43
7.4.00.0050.01114.98
7.3.330.0030.00313.35
7.3.320.0050.00013.39
7.3.310.0040.00416.27
7.3.300.0060.00016.38
7.3.290.0080.00616.34
7.3.280.0080.01016.35
7.3.270.0130.00317.40
7.3.260.0070.01216.27
7.3.250.0140.00516.31
7.3.240.0060.01116.51
7.3.230.0130.00316.36
7.3.210.0060.00916.45
7.3.200.0100.00716.41
7.3.190.0120.00316.39
7.3.180.0040.01316.30
7.3.170.0030.01316.43
7.3.160.0080.00816.44
7.3.120.0100.00615.10
7.3.110.0080.00814.89
7.3.100.0030.01614.66
7.3.90.0070.00714.83
7.3.80.0130.00314.82
7.3.70.0000.00914.78
7.3.60.0110.00414.85
7.3.50.0000.01214.87
7.3.40.0090.00314.97
7.3.30.0110.00314.84
7.3.20.0110.00316.36
7.3.10.0030.00816.61
7.3.00.0070.00716.61
7.2.330.0120.00616.54
7.2.320.0160.00716.62
7.2.310.0070.01016.38
7.2.300.0150.00616.21
7.2.290.0130.00316.58
7.2.250.0070.01415.12
7.2.240.0130.00615.12
7.2.230.0070.00715.15
7.2.220.0060.00914.52
7.2.210.0070.01015.15
7.2.200.0030.00914.83
7.2.190.0000.01314.94
7.2.180.0060.00914.94
7.2.170.0110.00414.75
7.2.80.0030.00716.54
7.2.60.0100.00616.95
7.2.00.0030.00918.93
7.1.330.0030.01015.82
7.1.320.0070.00715.61
7.1.310.0090.00615.59
7.1.300.0000.01515.71
7.1.290.0060.00615.78
7.1.280.0080.00415.76
7.1.270.0070.01015.80
7.1.260.0040.00815.49
7.1.200.0030.01015.75
7.1.100.0060.00617.91
7.1.70.0060.00616.97
7.1.60.0150.01135.00
7.1.50.0140.01434.67
7.1.40.0160.01334.43
7.1.30.0130.01634.42
7.1.20.0160.01334.53
7.1.10.0000.01716.45
7.1.00.0000.01416.29
7.0.200.0030.00916.73
7.0.190.0030.00916.58
7.0.180.0060.00616.24
7.0.170.0110.00316.09
7.0.160.0030.01116.39
7.0.150.0030.01416.08
7.0.140.0100.00316.15
7.0.130.0060.00816.28
7.0.120.0090.00616.61
7.0.110.0070.00716.43
7.0.100.0070.00716.27
7.0.90.0030.01016.27
7.0.80.0100.00716.22
7.0.70.0110.00416.29
7.0.60.0040.00815.99
7.0.50.0050.00916.02
7.0.40.0030.00916.47
7.0.30.0040.00916.32
7.0.20.0030.01016.35
7.0.10.0050.00816.28
7.0.00.0090.00416.21

preferences:
42.21 ms | 401 KiB | 5 Q