3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public static $_bar; } class Foo1 extends TestClass { public static $_bar; } class Foo2 extends TestClass { public static $_bar; } //TestClass::$_bar = "tet"; Foo1::$_bar = 'Hello'; Foo2::$_bar = 'World'; echo Foo1::$_bar . ' ' . Foo2::$_bar; // Prints: World World

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.0030.01718.30
8.3.50.0210.01121.97
8.3.40.0040.01118.55
8.3.30.0070.00719.10
8.3.20.0070.00020.21
8.3.10.0050.00323.48
8.3.00.0040.00422.34
8.2.180.0080.00816.50
8.2.170.0100.01022.96
8.2.160.0100.00722.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00317.75
8.2.110.0030.00621.11
8.2.100.0080.00317.91
8.2.90.0050.00318.16
8.2.80.0040.00418.04
8.2.70.0000.00917.48
8.2.60.0000.00817.93
8.2.50.0050.00318.10
8.2.40.0040.00422.18
8.2.30.0030.00521.10
8.2.20.0070.00017.64
8.2.10.0000.00717.50
8.2.00.0000.00817.49
8.1.280.0110.01125.92
8.1.270.0050.00324.02
8.1.260.0080.00026.35
8.1.250.0130.00628.09
8.1.240.0000.00924.02
8.1.230.0000.01222.54
8.1.220.0040.00417.74
8.1.210.0120.00020.14
8.1.200.0000.01017.47
8.1.190.0030.00617.25
8.1.180.0040.00418.10
8.1.170.0070.00022.12
8.1.160.0070.00018.90
8.1.150.0040.00418.64
8.1.140.0040.00417.45
8.1.130.0060.00017.87
8.1.120.0030.00517.33
8.1.110.0040.00317.33
8.1.100.0070.00017.35
8.1.90.0030.00317.46
8.1.80.0000.00717.38
8.1.70.0000.00817.35
8.1.60.0080.00017.47
8.1.50.0050.00317.51
8.1.40.0040.00417.52
8.1.30.0000.00817.56
8.1.20.0040.00417.54
8.1.10.0040.00417.53
8.1.00.0000.00817.40
8.0.300.0000.00720.13
8.0.290.0000.00716.63
8.0.280.0070.00018.35
8.0.270.0040.00417.23
8.0.260.0030.00316.74
8.0.250.0040.00417.00
8.0.240.0000.00816.99
8.0.230.0080.00016.94
8.0.220.0030.00316.74
8.0.210.0000.00716.92
8.0.200.0000.00616.92
8.0.190.0060.00316.82
8.0.180.0070.00016.92
8.0.170.0000.00817.01
8.0.160.0000.00816.95
8.0.150.0070.00016.83
8.0.140.0030.00616.77
8.0.130.0090.00013.31
8.0.120.0060.00316.81
8.0.110.0040.00416.71
8.0.100.0040.00416.77
8.0.90.0000.00816.90
8.0.80.0130.00616.84
8.0.70.0040.00416.67
8.0.60.0050.00216.84
8.0.50.0000.00816.79
8.0.30.0150.01017.04
8.0.20.0100.00917.40
8.0.10.0040.00416.83
8.0.00.0100.00916.71
7.4.330.0060.00015.05
7.4.320.0030.00316.58
7.4.300.0060.00016.51
7.4.290.0040.00416.49
7.4.280.0000.00716.60
7.4.270.0030.00316.56
7.4.260.0040.00416.55
7.4.250.0090.00016.57
7.4.240.0020.00516.57
7.4.230.0030.00316.27
7.4.220.0090.00616.49
7.4.210.0070.00916.43
7.4.200.0070.00016.47
7.4.190.0030.00316.69
7.4.160.0130.00316.57
7.4.150.0060.01117.40
7.4.140.0050.01517.86
7.4.130.0060.01316.29
7.4.120.0110.00816.50
7.4.110.0100.00716.34
7.4.100.0080.00816.54
7.4.90.0140.00316.45
7.4.80.0030.01616.45
7.4.70.0070.01016.48
7.4.60.0100.00716.58
7.4.50.0030.00616.28
7.4.40.0060.00622.77
7.4.30.0090.01216.45
7.4.00.0030.01314.98
7.3.330.0030.00313.22
7.3.320.0000.00513.18
7.3.310.0050.00216.29
7.3.300.0000.00716.12
7.3.290.0070.01116.21
7.3.280.0050.01016.20
7.3.270.0100.00617.40
7.3.260.0070.01116.55
7.3.250.0110.00616.44
7.3.240.0060.01016.45
7.3.230.0120.00616.60
7.3.210.0100.00916.59
7.3.200.0060.01319.39
7.3.190.0060.00916.17
7.3.180.0070.01016.46
7.3.170.0060.01416.43
7.3.160.0080.00816.63
7.3.120.0030.01314.74
7.3.10.0140.00216.39
7.3.00.0090.00716.48
7.2.330.0090.01016.55
7.2.320.0090.01216.62
7.2.310.0140.00416.70
7.2.300.0030.01316.57
7.2.290.0060.00916.44
7.2.130.0090.00816.78
7.2.120.0070.01116.73
7.2.110.0110.00816.39
7.2.100.0120.00616.61
7.2.90.0130.00516.65
7.2.80.0120.01116.54
7.2.70.0070.01616.84
7.2.60.0090.01116.72
7.2.50.0140.00516.51
7.2.40.0090.00616.27
7.2.30.0110.00716.60
7.2.20.0100.00816.61
7.2.10.0130.00716.54
7.2.00.0080.01016.76
7.1.250.0110.00415.38
7.1.100.0080.00417.89
7.1.70.0000.01617.05
7.1.60.0150.00619.32
7.1.50.0100.01316.78
7.1.00.0070.07322.40
7.0.200.0080.00816.40
7.0.140.0000.07722.07
7.0.60.0270.06719.91
7.0.50.0100.08017.84
7.0.40.0230.07020.13
7.0.30.0300.07320.21
7.0.20.0330.04720.16
7.0.10.0130.08020.20
7.0.00.0100.07720.14
5.6.280.0000.07721.02
5.6.210.0200.06720.71
5.6.200.0070.05318.28
5.6.190.0030.04320.61
5.6.180.0330.05720.33
5.6.170.0370.06720.50
5.6.160.0130.07720.50
5.6.150.0100.07718.18
5.6.140.0170.02718.27
5.6.130.0030.06018.11
5.6.120.0230.06721.12
5.6.110.0130.07320.96
5.6.100.0000.09020.97
5.6.90.0070.08720.98
5.6.80.0000.07320.39
5.5.350.0230.07320.39
5.5.340.0000.04318.09
5.5.330.0030.04020.42
5.5.320.0300.07720.31
5.5.310.0300.06020.27
5.5.300.0030.03717.96
5.5.290.0030.04718.05
5.5.280.0100.06320.79
5.5.270.0030.04020.95
5.5.260.0200.07020.88
5.5.250.0170.06720.58
5.5.240.0130.06720.23
5.4.450.0270.04719.29
5.4.440.0230.07319.35
5.4.430.2200.06019.56
5.4.420.3430.04019.30
5.4.410.4330.03719.42
5.4.400.3870.04019.23
5.4.390.3730.03719.16
5.4.380.3600.03318.98
5.4.370.3700.04719.16
5.4.360.3830.03319.03
5.4.350.4300.03719.12
5.4.340.4400.04019.14
5.4.320.3770.03319.22
5.4.310.3670.04019.14
5.4.300.0270.05019.22
5.4.290.0230.03719.16
5.4.280.0200.04019.12
5.4.270.0170.05019.03
5.4.260.0230.03719.21
5.4.250.0270.03719.10
5.4.240.0200.04019.14
5.4.230.0200.03718.99
5.4.220.0270.03319.12
5.4.210.0200.04719.20
5.4.200.0270.07018.92
5.4.190.0200.04019.11
5.4.180.0300.02719.13
5.4.170.0230.04018.96
5.4.160.0270.04718.95
5.4.150.0270.03319.22
5.4.140.0200.03316.56
5.4.130.0170.03716.55
5.4.120.0270.03016.44
5.4.110.0230.03316.59
5.4.100.0200.03316.56
5.4.90.0230.03016.52
5.4.80.0230.03016.41
5.4.70.0200.03316.54
5.4.60.0230.03316.33
5.4.50.0200.04316.42
5.4.40.0130.03716.45
5.4.30.0200.03316.35
5.4.20.0130.04016.32
5.4.10.0270.02716.29
5.4.00.0230.03715.84
5.3.290.3870.04314.70
5.3.280.0200.04314.73
5.3.270.0200.04014.61
5.3.260.0170.03714.59
5.3.250.0170.04014.52
5.3.240.0170.04014.66
5.3.230.0230.03314.60
5.3.220.0200.03714.70
5.3.210.0200.03714.56
5.3.200.0200.03314.55
5.3.190.0170.04314.59
5.3.180.0230.04014.63
5.3.170.0230.03014.59
5.3.160.0230.04314.71
5.3.150.0300.03714.56
5.3.140.0200.03314.61
5.3.130.0200.03714.70
5.3.120.0170.04014.55
5.3.110.0200.03714.43
5.3.100.0130.04014.11
5.3.90.0270.07014.02
5.3.80.0230.05314.16
5.3.70.0270.07014.02
5.3.60.0470.05014.07
5.3.50.0230.06713.94
5.3.40.0330.06013.86
5.3.30.0270.05313.95
5.3.20.0330.06313.58
5.3.10.0330.04013.70
5.3.00.0230.03313.57
5.2.170.0200.05311.09
5.2.160.0170.04011.04
5.2.150.0200.03311.18
5.2.140.0230.05711.20
5.2.130.0330.04711.11
5.2.120.0230.06011.10
5.2.110.0200.03011.05
5.2.100.0170.03311.11
5.2.90.0270.05311.26
5.2.80.0200.05011.09
5.2.70.0270.03011.15
5.2.60.0270.03311.21
5.2.50.0300.05011.05
5.2.40.0200.04711.00
5.2.30.0200.06011.00
5.2.20.0130.06010.97
5.2.10.0270.05010.90
5.2.00.0330.04310.71
5.1.60.0200.05310.01
5.1.50.0270.05010.14
5.1.40.0230.0439.99
5.1.30.0200.04310.33
5.1.20.0130.03710.39
5.1.10.0200.04310.22
5.1.00.0170.02710.09
5.0.50.0130.0208.54
5.0.40.0130.0308.38
5.0.30.0100.0678.24
5.0.20.0100.0478.33
5.0.10.0170.0378.30
5.0.00.0130.0508.24
4.4.90.0100.0378.24
4.4.80.0170.0308.24
4.4.70.0100.0338.24
4.4.60.0070.0338.24
4.4.50.0130.0338.24
4.4.40.0070.0478.24
4.4.30.0100.0208.24
4.4.20.0100.0378.24
4.4.10.0100.0178.24
4.4.00.0130.0438.24
4.3.110.0130.0338.24
4.3.100.0100.0338.24
4.3.90.0070.0238.24
4.3.80.0100.0408.24
4.3.70.0070.0338.24
4.3.60.0130.0338.24
4.3.50.0130.0308.24
4.3.40.0100.0508.24
4.3.30.0030.0378.24
4.3.20.0000.0378.24
4.3.10.0030.0338.24
4.3.00.0130.0138.24

preferences:
43.54 ms | 401 KiB | 5 Q