3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { protected static $property = 'foo'; public function method() { echo static::$property . "\n"; } } class Child extends Base { public function __construct() { static::$property = 'bar'; } } echo "base1\n"; $base1 = new Base(); $base1->method(); echo "child\n"; $child = new Child(); $child->method(); echo "base2\n"; $base2 = new Base(); $base2->method();

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.43
8.3.50.0120.01121.99
8.3.40.0170.00318.84
8.3.30.0030.01218.70
8.3.20.0150.00418.59
8.3.10.0060.01020.45
8.3.00.0100.00017.50
8.2.180.0080.00816.38
8.2.170.0070.01022.96
8.2.160.0000.01522.13
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0140.00426.16
8.2.120.0040.00419.89
8.2.110.0030.00622.30
8.2.100.0040.00717.78
8.2.90.0050.00319.21
8.2.80.0030.00618.04
8.2.70.0050.00317.50
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0080.00018.34
8.2.30.0000.00719.80
8.2.20.0000.00817.77
8.2.10.0040.00417.66
8.2.00.0040.00417.53
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0090.00926.35
8.1.250.0140.00328.09
8.1.240.0000.01022.42
8.1.230.0080.00320.89
8.1.220.0040.00418.77
8.1.210.0000.00818.79
8.1.200.0030.00717.48
8.1.190.0000.00817.40
8.1.180.0060.00318.10
8.1.170.0000.00818.91
8.1.160.0000.00818.80
8.1.150.0030.00518.64
8.1.140.0000.00717.45
8.1.130.0040.00417.91
8.1.120.0000.00717.47
8.1.110.0090.00017.47
8.1.100.0000.00717.50
8.1.90.0000.00817.41
8.1.80.0040.00417.35
8.1.70.0070.00417.44
8.1.60.0030.00617.55
8.1.50.0000.00717.38
8.1.40.0030.00617.42
8.1.30.0000.00817.62
8.1.20.0030.00617.53
8.1.10.0080.00017.50
8.1.00.0030.00617.51
8.0.300.0030.00319.85
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0030.00317.23
8.0.260.0050.00316.73
8.0.250.0000.00816.93
8.0.240.0050.00416.95
8.0.230.0080.00016.85
8.0.220.0000.00716.93
8.0.210.0000.00716.94
8.0.200.0070.00016.97
8.0.190.0040.00416.92
8.0.180.0070.00016.91
8.0.170.0070.00316.83
8.0.160.0060.00316.94
8.0.150.0040.00416.86
8.0.140.0070.00316.89
8.0.130.0000.00713.32
8.0.120.0050.00216.86
8.0.110.0050.00316.70
8.0.100.0040.00416.78
8.0.90.0000.00816.70
8.0.80.0040.01416.87
8.0.70.0040.00416.86
8.0.60.0000.00716.83
8.0.50.0040.00416.89
8.0.30.0080.01416.90
8.0.20.0110.01017.40
8.0.10.0050.00216.79
8.0.00.0100.00716.73
7.4.330.0050.00014.71
7.4.320.0060.00016.46
7.4.300.0070.00016.56
7.4.290.0030.00316.50
7.4.280.0050.00316.44
7.4.270.0030.00316.54
7.4.260.0040.00313.22
7.4.250.0040.00416.39
7.4.240.0000.00816.45
7.4.230.0000.00716.50
7.4.220.0090.00616.66
7.4.210.0060.01016.59
7.4.200.0000.00716.61
7.4.190.0030.00316.53
7.4.160.0070.01016.35
7.4.150.0060.01217.40
7.4.140.0090.01117.86
7.4.130.0100.00616.43
7.4.120.0080.01016.42
7.4.110.0140.00416.47
7.4.100.0120.00616.45
7.4.90.0000.01716.52
7.4.80.0070.01419.03
7.4.70.0100.01616.48
7.4.60.0130.01016.68
7.4.50.0040.00416.54
7.4.40.0000.01022.27
7.4.30.0080.00816.69
7.4.10.0060.00914.68
7.4.00.0070.00514.72
7.3.330.0050.00013.37
7.3.320.0030.00313.18
7.3.310.0070.00016.12
7.3.300.0070.00016.26
7.3.290.0070.00716.27
7.3.280.0060.01016.30
7.3.270.0100.01417.40
7.3.260.0100.00818.24
7.3.250.0080.01216.44
7.3.240.0100.00716.31
7.3.230.0030.01416.50
7.3.210.0090.00916.57
7.3.200.0090.01219.39
7.3.190.0180.00316.33
7.3.180.0030.01316.45
7.3.170.0110.00616.64
7.3.160.0030.01216.21
7.3.130.0070.01014.58
7.3.120.0070.01114.80
7.3.110.0100.01014.79
7.3.100.0110.00414.95
7.3.90.0000.01714.76
7.3.80.0050.00314.51
7.3.70.0000.01314.89
7.3.60.0070.01314.62
7.3.50.0070.00714.59
7.3.40.0000.01514.80
7.3.30.0070.01014.44
7.3.20.0080.00816.57
7.3.10.0040.00716.52
7.3.00.0060.00916.71
7.2.330.0140.00316.72
7.2.320.0060.01216.42
7.2.310.0130.00916.86
7.2.300.0150.00716.88
7.2.290.0060.01516.64
7.2.260.0070.01315.29
7.2.250.0100.01015.29
7.2.240.0100.00315.36
7.2.230.0100.00314.69
7.2.220.0090.00615.20
7.2.210.0040.01215.10
7.2.200.0100.00715.25
7.2.190.0070.00615.04
7.2.180.0060.00615.14
7.2.170.0090.00915.15
7.2.160.0060.00914.95
7.2.150.0060.00617.02
7.2.140.0090.00617.14
7.2.130.0050.01116.94
7.2.120.0050.00716.94
7.2.110.0050.00516.94
7.2.100.0070.00816.89
7.2.90.0080.00617.00
7.2.80.0090.00516.88
7.2.70.0050.01116.87
7.2.60.0050.00616.90
7.2.50.0020.00917.05
7.2.40.0070.00516.97
7.2.30.0060.00517.00
7.2.20.0040.01016.93
7.2.10.0020.01416.84
7.2.00.0060.01017.04
7.1.330.0030.01015.82
7.1.320.0070.00715.76
7.1.310.0090.00915.59
7.1.300.0030.01215.73
7.1.290.0030.00915.64
7.1.280.0090.00615.57
7.1.270.0040.01115.73
7.1.260.0060.00315.63
7.1.250.0070.00515.73
7.1.240.0060.00615.77
7.1.230.0130.00315.69
7.1.220.0030.01015.61
7.1.210.0000.01315.70
7.1.200.0030.01015.72
7.1.190.0060.00615.60
7.1.180.0030.00615.75
7.1.170.0070.00415.45
7.1.160.0060.00815.63
7.1.150.0000.00815.67
7.1.140.0070.01015.78
7.1.130.0030.00915.48
7.1.120.0040.00815.84
7.1.110.0000.01015.93
7.1.100.0030.01015.62
7.1.90.0000.00915.60
7.1.80.0030.01315.91
7.1.70.0050.00316.32
7.1.60.0060.01017.59
7.1.50.0070.01116.27
7.1.40.0040.01115.40
7.1.30.0060.00915.62
7.1.20.0030.01215.85
7.1.10.0070.00715.73
7.1.00.0020.03619.10
7.0.330.0100.00315.10
7.0.320.0070.00715.27
7.0.310.0070.00715.15
7.0.300.0060.00915.31
7.0.290.0040.00915.45
7.0.280.0080.00415.30
7.0.270.0080.00815.41
7.0.260.0030.00915.41
7.0.250.0030.00915.50
7.0.240.0000.00815.28
7.0.230.0130.00015.12
7.0.220.0060.00915.35
7.0.210.0080.00315.53
7.0.200.0000.01016.04
7.0.190.0080.00615.54
7.0.180.0060.00615.50
7.0.170.0070.01015.37
7.0.160.0100.00715.32
7.0.150.0090.00615.37
7.0.140.0040.03818.73
7.0.130.0040.00815.38
7.0.120.0030.01015.46
7.0.110.0060.00315.46
7.0.100.0000.01115.36
7.0.90.0060.00915.43
7.0.80.0040.00715.60
7.0.70.0100.00315.53
7.0.60.0080.04117.58
7.0.50.0030.04816.70
7.0.40.0070.04215.78
7.0.30.0070.04215.79
7.0.20.0090.03715.77
7.0.10.0140.03715.74
7.0.00.0050.03115.78
5.6.400.0110.00614.33
5.6.390.0040.01214.48
5.6.380.0060.00314.44
5.6.370.0000.01614.42
5.6.360.0040.01114.65
5.6.350.0080.00414.38
5.6.340.0080.00314.04
5.6.330.0030.01314.37
5.6.320.0070.00714.34
5.6.310.0090.00314.52
5.6.300.0060.00614.53
5.6.290.0030.00614.48
5.6.280.0030.04117.96
5.6.270.0050.00514.37
5.6.260.0060.00314.32
5.6.250.0030.00614.63
5.6.240.0000.01314.69
5.6.230.0030.01014.26
5.6.220.0030.01314.19
5.6.210.0030.04417.54
5.6.200.0090.03016.32
5.6.190.0140.03516.28
5.6.180.0050.04316.22
5.6.170.0090.03316.21
5.6.160.0130.04016.31
5.6.150.0050.04416.22
5.6.140.0120.03616.19
5.6.130.0000.04716.21
5.6.120.0060.04516.36
5.6.110.0080.04216.29
5.6.100.0060.02916.35
5.6.90.0050.04416.19
5.6.80.0030.04515.89
5.6.70.0110.03916.07
5.6.60.0090.02815.87
5.6.50.0080.02016.04
5.6.40.0080.03315.95
5.6.30.0080.04215.93
5.6.20.0030.04315.85
5.6.10.0080.04015.88
5.6.00.0090.04115.93
5.5.380.0070.01014.34
5.5.370.0090.00314.17
5.5.360.0070.00714.39
5.5.350.1870.02817.23
5.5.340.0050.03616.06
5.5.330.0110.04016.22
5.5.320.0050.03716.21
5.5.310.0050.04416.28
5.5.300.0080.03516.18
5.5.290.0050.04416.07
5.5.280.0030.04616.09
5.5.270.0070.03016.03
5.5.260.0100.04416.19
5.5.250.0020.04716.07
5.5.240.0050.04415.96
5.5.230.0010.02415.83
5.5.220.0050.02715.94
5.5.210.0050.04315.89
5.5.200.0070.02015.93
5.5.190.0030.03415.93
5.5.180.0070.04215.81
5.5.170.0000.00914.17
5.5.160.0080.04215.63
5.5.150.0100.04115.81
5.5.140.0060.04315.88
5.5.130.0080.04115.74
5.5.120.0090.04015.90
5.5.110.0050.04315.87
5.5.100.0020.02515.66
5.5.90.0050.04415.76
5.5.80.0040.04215.65
5.5.70.0140.03615.76
5.5.60.0100.03615.76
5.5.50.0070.02215.84
5.5.40.0070.04315.56
5.5.30.0080.03115.74
5.5.20.0050.02715.76
5.5.10.0020.02515.72
5.5.00.0080.02815.73
5.4.450.0070.04016.61
5.4.440.0100.04016.63
5.4.430.0030.04616.62
5.4.420.0090.03016.57
5.4.410.0070.03716.56
5.4.400.0050.03516.47
5.4.390.0030.04316.41
5.4.380.0100.02116.44
5.4.370.0050.02216.42
5.4.360.0070.02016.45
5.4.350.0070.03016.40
5.4.340.0070.02016.38
5.4.330.0000.01013.80
5.4.320.0050.02916.42
5.4.310.0080.02216.38
5.4.300.0100.04016.42
5.4.290.0080.03516.42
5.4.280.0070.03716.41
5.4.270.0050.04416.46
5.4.260.0030.04716.43
5.4.250.0050.03316.40
5.4.240.0030.02616.46
5.4.230.0100.03816.43
5.4.220.0080.03716.41
5.4.210.0030.02316.42
5.4.200.0070.04016.34
5.4.190.0070.04216.40
5.4.180.0010.02316.38
5.4.170.0050.02016.40
5.4.160.0030.02016.33
5.4.150.0020.02316.45
5.4.140.0030.01815.08
5.4.130.0050.01715.10
5.4.120.0050.02015.14
5.4.110.0080.03315.20
5.4.100.0060.04115.14
5.4.90.0050.02515.08
5.4.80.0020.02215.11
5.4.70.0030.02215.19
5.4.60.0000.02715.08
5.4.50.0020.02215.16
5.4.40.0000.02415.19
5.4.30.0020.02215.10
5.4.20.0020.02315.18
5.4.10.0020.02315.18
5.4.00.0020.02114.84
5.3.290.0090.01714.25
5.3.280.0130.02614.21
5.3.270.0020.02214.19
5.3.260.0000.02514.22
5.3.250.0020.02314.26
5.3.240.0000.02514.13
5.3.230.0020.02314.21
5.3.220.0050.02014.29
5.3.210.0050.02114.21
5.3.200.0060.02114.19
5.3.190.0030.02914.20
5.3.180.0050.02014.18
5.3.170.0050.03314.21
5.3.160.0050.02114.17
5.3.150.0050.02114.21
5.3.140.0000.02414.19
5.3.130.0050.02014.17
5.3.120.0050.02114.20
5.3.110.0030.02314.22
5.3.100.0040.02013.95
5.3.90.0000.02213.92
5.3.80.0000.02413.92
5.3.70.0020.02213.94
5.3.60.0050.02013.95
5.3.50.0040.01813.89
5.3.40.0020.02213.82
5.3.30.0060.01613.86
5.3.20.0030.02013.78
5.3.10.0050.01913.75
5.3.00.0060.01813.82
5.2.170.0000.03011.16
5.2.160.0000.03311.20
5.2.150.0000.03011.11
5.2.140.0070.03011.16
5.2.130.0030.03011.11
5.2.120.0030.02711.15
5.2.110.0000.03011.13
5.2.100.0000.03011.16
5.2.90.0030.02711.00
5.2.80.0030.02711.13
5.2.70.0030.02711.13
5.2.60.0000.03011.05
5.2.50.0000.03011.23
5.2.40.0030.02711.02
5.2.30.0030.02710.86
5.2.20.0070.02311.00
5.2.10.0000.04710.87
5.2.00.0000.03010.71
5.1.60.0000.02310.08
5.1.50.0130.03310.00
5.1.40.0100.04010.02
5.1.30.0000.04710.39
5.1.20.0030.05710.31
5.1.10.0030.04010.06
5.1.00.0070.05310.12
5.0.50.0070.0209.15
5.0.40.0030.0239.15
5.0.30.0030.0409.15
5.0.20.0030.0379.15
5.0.10.0000.0409.15
5.0.00.0030.0679.15
4.4.90.0000.0179.15
4.4.80.0030.0109.15
4.4.70.0000.0179.15
4.4.60.0030.0139.15
4.4.50.0070.0179.15
4.4.40.0000.0279.15
4.4.30.0200.0109.15
4.4.20.0000.0409.15
4.4.10.0100.0209.15
4.4.00.0030.0579.15
4.3.110.0030.0309.15
4.3.100.0000.0209.15
4.3.90.0000.0179.15
4.3.80.0070.0439.15
4.3.70.0030.0339.15
4.3.60.0000.0309.15
4.3.50.0030.0379.15
4.3.40.0000.0339.15
4.3.30.0000.0409.15
4.3.20.0030.0309.15
4.3.10.0000.0209.15
4.3.00.0030.0209.15

preferences:
40.94 ms | 401 KiB | 5 Q