3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { protected static function whoami(){ echo 'Base'; } public static function whoareyou(){ static::whoami(); } } class A extends Base { public static function test(){ Base::whoareyou(); self::whoareyou(); parent::whoareyou(); A::whoareyou(); static::whoareyou(); } public static function whoami(){ echo 'A'; } } class B extends A { public static function whoami() { echo 'B'; } } B::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.0100.01016.50
8.3.50.0190.00316.39
8.3.40.0110.00418.85
8.3.30.0070.00718.59
8.3.20.0070.00020.18
8.3.10.0040.00423.54
8.3.00.0080.00019.56
8.2.180.0140.00318.54
8.2.170.0070.00722.96
8.2.160.0070.00718.95
8.2.150.0090.00624.18
8.2.140.0040.00424.66
8.2.130.0060.00319.30
8.2.120.0070.00026.35
8.2.110.0070.00320.46
8.2.100.0000.01117.78
8.2.90.0000.00819.22
8.2.80.0090.00017.97
8.2.70.0060.00317.50
8.2.60.0000.00818.04
8.2.50.0050.00318.10
8.2.40.0080.00020.45
8.2.30.0040.00420.95
8.2.20.0040.00417.86
8.2.10.0040.00417.92
8.2.00.0000.00817.93
8.1.280.0130.00725.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00420.89
8.1.230.0080.00319.14
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00617.22
8.1.190.0050.00317.00
8.1.180.0000.00818.10
8.1.170.0050.00318.51
8.1.160.0000.00818.87
8.1.150.0050.00218.75
8.1.140.0060.00319.49
8.1.130.0000.00718.79
8.1.120.0030.00517.37
8.1.110.0030.00517.17
8.1.100.0040.00417.22
8.1.90.0040.00417.34
8.1.80.0000.00717.31
8.1.70.0030.00317.36
8.1.60.0040.00417.39
8.1.50.0030.00617.45
8.1.40.0090.00017.42
8.1.30.0030.00517.41
8.1.20.0030.00617.57
8.1.10.0000.00917.47
8.1.00.0000.00717.34
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0070.00018.50
8.0.270.0030.00317.20
8.0.260.0000.00616.85
8.0.250.0040.00416.82
8.0.240.0040.00416.79
8.0.230.0040.00416.91
8.0.220.0030.00316.79
8.0.210.0000.00716.86
8.0.200.0060.00016.77
8.0.190.0060.00316.90
8.0.180.0030.00516.84
8.0.170.0000.00716.74
8.0.160.0000.00716.88
8.0.150.0040.00416.67
8.0.140.0070.00016.84
8.0.130.0030.00313.16
8.0.120.0030.00616.68
8.0.110.0040.00416.86
8.0.100.0040.00416.86
8.0.90.0000.00716.63
8.0.80.0070.01316.77
8.0.70.0040.00416.75
8.0.60.0080.00016.76
8.0.50.0030.00516.73
8.0.30.0080.01116.98
8.0.20.0100.01017.40
8.0.10.0040.00416.91
8.0.00.0070.01016.58
7.4.330.0000.00515.55
7.4.320.0000.00716.54
7.4.300.0000.00616.60
7.4.290.0030.00316.39
7.4.280.0070.00016.57
7.4.270.0030.00316.51
7.4.260.0000.00816.44
7.4.250.0050.00216.51
7.4.240.0000.00916.48
7.4.230.0070.00016.57
7.4.220.0070.01116.50
7.4.210.0060.00916.53
7.4.200.0000.00716.55
7.4.160.0140.00216.55
7.4.150.0090.00917.40
7.4.140.0120.01217.86
7.4.130.0060.01216.42
7.4.120.0100.01216.42
7.4.110.0090.00616.29
7.4.100.0080.00916.42
7.4.90.0100.00616.41
7.4.80.0060.01219.39
7.4.70.0060.01016.39
7.4.60.0100.00716.47
7.4.50.0070.00716.54
7.4.40.0090.01216.36
7.4.30.0140.00316.65
7.4.00.0040.00815.18
7.3.330.0020.00213.31
7.3.320.0060.00013.07
7.3.310.0000.00716.21
7.3.300.0040.00416.26
7.3.290.0110.00616.21
7.3.280.0090.00816.21
7.3.270.0030.01417.40
7.3.260.0080.01016.42
7.3.250.0110.00616.26
7.3.240.0120.00816.53
7.3.230.0040.01416.52
7.3.210.0120.00916.36
7.3.200.0100.00616.55
7.3.190.0070.01016.16
7.3.180.0080.01216.21
7.3.170.0070.01016.26
7.3.160.0130.00316.42
7.3.10.0060.00616.40
7.3.00.0030.00616.29
7.2.330.0120.00616.40
7.2.320.0150.00316.61
7.2.310.0120.00416.31
7.2.300.0080.00816.52
7.2.290.0080.00816.59
7.2.130.0110.00316.55
7.2.120.0040.00716.89
7.2.110.0040.01116.88
7.2.100.0000.00716.53
7.2.90.0030.00916.66
7.2.80.0000.01416.71
7.2.70.0080.00416.36
7.2.60.0100.00416.83
7.2.50.0100.00716.85
7.2.40.0090.00616.76
7.2.30.0030.01316.57
7.2.20.0060.00616.89
7.2.10.0000.01416.88
7.2.00.0070.00518.01
7.1.250.0120.00315.54
7.1.200.0080.00415.36
7.1.100.0520.00615.98
7.1.70.0080.01216.83
7.1.60.0280.01635.05
7.1.50.0250.01634.63
7.1.40.0270.01734.32
7.1.30.0280.01634.34
7.1.20.0300.01334.64
7.1.10.0110.00916.63
7.1.00.0040.01516.41
7.0.200.0120.00816.63
7.0.190.0140.00616.50
7.0.180.0060.01416.18
7.0.170.0100.01015.94
7.0.160.0190.01016.07
7.0.150.0090.01016.20
7.0.140.0060.01316.27
7.0.130.0070.01316.67
7.0.120.0120.01316.68
7.0.110.0030.01716.18
7.0.100.0040.01616.22
7.0.90.0000.01916.22
7.0.80.0130.00816.43
7.0.70.0140.00916.38
7.0.60.0160.00415.88
7.0.50.0080.01316.50
7.0.40.0060.01116.48
7.0.30.0090.00916.32
7.0.20.0090.01116.35
7.0.10.0100.01016.48
7.0.00.0030.01716.47

preferences:
37.56 ms | 401 KiB | 5 Q