3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function who() { echo get_called_class(); } } class B extends A { public static function test() { static::who(); parent::who(); } } 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.40.0100.00718.84
8.3.30.0030.01020.21
8.3.20.0040.00420.04
8.3.10.0040.00421.86
8.3.00.0000.00822.51
8.2.170.0130.00322.96
8.2.160.0100.00322.08
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0070.00020.77
8.2.110.0030.00622.21
8.2.100.0000.01217.66
8.2.90.0040.00419.25
8.2.80.0050.00319.21
8.2.70.0030.00617.50
8.2.60.0090.00018.04
8.2.50.0080.00018.07
8.2.40.0040.00419.95
8.2.30.0000.00719.44
8.2.20.0090.00017.63
8.2.10.0080.00017.57
8.2.00.0040.00417.60
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00323.91
8.1.230.0040.00719.07
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.18
8.1.180.0050.00318.88
8.1.170.0000.00818.59
8.1.160.0040.00418.80
8.1.150.0100.00018.41
8.1.140.0040.00417.27
8.1.130.0080.00017.63
8.1.120.0040.00417.35
8.1.110.0040.00417.21
8.1.100.0030.00517.22
8.1.90.0040.00417.28
8.1.80.0030.00417.27
8.1.70.0040.00417.33
8.1.60.0040.00417.50
8.1.50.0040.00417.41
8.1.40.0060.00317.43
8.1.30.0080.00017.55
8.1.20.0050.00317.58
8.1.10.0000.00717.51
8.1.00.0060.00317.43
8.0.300.0000.00818.77
8.0.290.0030.00617.05
8.0.280.0070.00018.48
8.0.270.0030.00317.24
8.0.260.0000.00616.71
8.0.250.0070.00016.84
8.0.240.0030.00516.98
8.0.230.0070.00016.88
8.0.220.0030.00316.82
8.0.210.0070.00016.81
8.0.200.0000.00616.82
8.0.190.0070.00016.74
8.0.180.0000.00816.72
8.0.170.0050.00316.82
8.0.160.0070.00016.75
8.0.150.0040.00416.77
8.0.140.0000.00716.73
8.0.130.0060.00013.22
8.0.120.0040.00416.64
8.0.110.0000.00716.71
8.0.100.0000.00716.64
8.0.90.0000.00716.63
8.0.80.0080.00816.73
8.0.70.0000.00716.63
8.0.60.0000.00716.63
8.0.50.0000.00816.82
8.0.30.0080.01117.14
8.0.20.0100.01017.40
8.0.10.0070.00016.75
8.0.00.0160.00716.74
7.4.330.0000.00415.00
7.4.320.0030.00316.48
7.4.300.0030.00316.38
7.4.290.0070.00016.49
7.4.280.0030.00316.58
7.4.270.0060.00016.51
7.4.260.0030.00313.20
7.4.250.0050.00216.45
7.4.240.0050.00216.49
7.4.230.0050.00216.50
7.4.220.0090.00916.46
7.4.210.0090.00816.41
7.4.200.0000.00716.63
7.4.190.0030.00316.65
7.4.160.0140.00316.50
7.4.150.0030.01317.40
7.4.140.0100.00617.86
7.4.130.0060.01016.46
7.4.120.0100.00916.49
7.4.110.0100.00716.29
7.4.100.0080.01316.31
7.4.90.0090.00916.57
7.4.80.0120.00619.39
7.4.70.0150.00616.57
7.4.60.0100.00716.52
7.4.50.0050.00316.16
7.4.40.0090.00622.77
7.4.30.0040.01416.45
7.4.00.0100.00714.80
7.3.330.0000.00613.19
7.3.320.0000.00513.22
7.3.310.0000.00716.26
7.3.300.0000.00716.08
7.3.290.0000.01316.19
7.3.280.0080.00816.20
7.3.270.0090.00917.40
7.3.260.0090.00916.38
7.3.250.0110.00816.40
7.3.240.0120.00916.23
7.3.230.0120.00616.41
7.3.210.0130.00616.24
7.3.200.0070.01019.39
7.3.190.0080.00816.59
7.3.180.0030.01316.29
7.3.170.0110.00516.45
7.3.160.0060.00916.42
7.3.120.0090.00614.68
7.2.330.0000.01716.66
7.2.320.0030.01316.49
7.2.310.0110.01116.45
7.2.300.0030.01216.70
7.2.290.0100.00716.39
7.2.00.0060.00919.27
7.1.100.0050.00817.94
7.1.70.0000.00817.07
7.1.60.0070.01419.32
7.1.50.0070.01416.83
7.1.00.0100.06322.36
7.0.200.0000.00716.40
7.0.140.0000.07322.07
7.0.60.0100.06319.82
7.0.50.0070.08717.84
7.0.40.0070.04019.98
7.0.30.0270.04320.08
7.0.20.0330.06320.07
7.0.10.0270.07020.33
7.0.00.0170.07720.20
5.6.280.0000.07720.91
5.6.210.0070.04020.54
5.6.200.0070.06318.19
5.6.190.0030.05320.68
5.6.180.0170.06720.58
5.6.170.0200.04320.55
5.6.160.0030.09320.54
5.6.150.0030.08318.16
5.6.140.0230.05018.23
5.6.130.0070.03718.18
5.6.120.0030.05020.97
5.6.110.0100.08021.05
5.6.100.0100.07020.98
5.6.90.0170.07321.10
5.6.80.0100.07320.39
5.6.70.4530.04320.54
5.5.350.0200.03720.39
5.5.340.0100.07717.93
5.5.330.0030.04720.42
5.5.320.0300.06320.31
5.5.310.0300.04020.51
5.5.300.0100.08017.98
5.5.290.0030.07717.98
5.5.280.0070.04720.80
5.5.270.0070.08320.68
5.5.260.0030.08320.96
5.5.250.0070.08020.69
5.5.240.3730.04020.20
5.4.450.0130.04319.41
5.4.440.0230.04019.38
5.4.430.0230.03719.48
5.4.420.0170.04019.30
5.4.410.0270.04719.33
5.4.400.0300.05319.20
5.4.390.0230.07718.85
5.4.380.0330.07019.13
5.4.370.0270.07319.09
5.4.360.0330.06319.22
5.4.350.0270.05019.05
5.4.340.0300.06719.26
5.4.320.0370.03719.22
5.4.310.0270.06719.22
5.4.300.0300.07019.15
5.4.290.0270.04718.87
5.4.280.0300.06719.13
5.4.270.0300.04019.31
5.4.260.0330.06719.31
5.4.250.0330.06319.19
5.4.240.0270.04018.98
5.4.230.0270.06018.93
5.4.220.0370.06319.25
5.4.210.0300.07019.14
5.4.200.0330.07018.98
5.4.190.0270.05018.97
5.4.180.0300.06719.16
5.4.170.0200.05318.98
5.4.160.0230.08019.20
5.4.150.0330.06719.04
5.4.140.0400.05716.38
5.4.130.0300.04016.36
5.4.120.0230.04316.36
5.4.110.0330.06316.61
5.4.100.0270.04716.60
5.4.90.0200.04016.34
5.4.80.0330.06016.59
5.4.70.0270.04316.31
5.4.60.0330.06316.43
5.4.50.0270.05316.42
5.4.40.0270.07016.53
5.4.30.0270.05716.53
5.4.20.0230.07016.51
5.4.10.0200.07716.16
5.4.00.0230.07015.87
5.3.290.0300.07314.66
5.3.280.0330.07314.67
5.3.270.0330.06714.61
5.3.260.0370.06714.50
5.3.250.0330.06714.50
5.3.240.0230.06714.76
5.3.230.0270.04314.67
5.3.220.0230.06014.54
5.3.210.0300.04014.57
5.3.200.0270.07314.66
5.3.190.0300.06314.47
5.3.180.0370.06014.78
5.3.170.0270.05014.72
5.3.160.0230.06314.53
5.3.150.0270.07314.58
5.3.140.0270.04714.71
5.3.130.0230.05014.70
5.3.120.0230.04714.55
5.3.110.0300.06314.47
5.3.100.0300.06014.09
5.3.90.0270.07014.14
5.3.80.0230.06314.04
5.3.70.0230.07014.24
5.3.60.0270.06713.91
5.3.50.0300.05013.93
5.3.40.0230.07013.88
5.3.30.0230.06713.99
5.3.20.0270.07013.92
5.3.10.0200.06013.59
5.3.00.0230.05713.64
5.2.170.0200.04312.21
5.2.160.0230.06012.21
5.2.150.0200.05712.21
5.2.140.0200.05712.21
5.2.130.0230.05712.21
5.2.120.0200.06012.21
5.2.110.0130.04712.21
5.2.100.0130.04012.21
5.2.90.0170.06012.21
5.2.80.0170.04012.21
5.2.70.0330.04012.21
5.2.60.0270.05312.21
5.2.50.0230.05712.21
5.2.40.0170.05712.21
5.2.30.0200.05712.21
5.2.20.0230.05712.21
5.2.10.0170.06012.21
5.2.00.0300.04712.21
5.1.60.0200.05012.21
5.1.50.0230.04712.21
5.1.40.0200.05012.21
5.1.30.0200.04312.21
5.1.20.0230.04712.21
5.1.10.0170.03012.21
5.1.00.0130.06012.21
5.0.50.0130.02712.21
5.0.40.0130.04012.21
5.0.30.0100.04312.21
5.0.20.0100.03712.21
5.0.10.0170.03312.21
5.0.00.0170.05312.21
4.4.90.0100.03312.21
4.4.80.0170.03012.21
4.4.70.0100.03312.21
4.4.60.0130.03012.21
4.4.50.0130.03312.21
4.4.40.0170.04012.21
4.4.30.0070.04012.21
4.4.20.0100.01712.21
4.4.10.0030.02712.21
4.4.00.0100.03312.21
4.3.110.0100.03712.21
4.3.100.0100.03312.21
4.3.90.0130.03012.21
4.3.80.0130.05312.21
4.3.70.0070.03712.21
4.3.60.0070.02312.21
4.3.50.0170.03012.21
4.3.40.0100.04012.21
4.3.30.0100.01712.21
4.3.20.0030.04012.21
4.3.10.0070.03012.21
4.3.00.0000.03012.21

preferences:
37.95 ms | 400 KiB | 5 Q