3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Abs { const PREFIX = 'Abstract'; static $prefix = 'Abstract'; } class Concrete extends Abs { const PREFIX = 'Concrete'; static $prefix = 'Concrete'; public function getPrefix() { echo "self: " . self::PREFIX . "\n"; echo "static: " . static::PREFIX . "\n"; echo "self: " . self::$prefix . "\n"; echo "static: " . static::$prefix . "\n\n"; } } $concrete = new Concrete(); $concrete->getPrefix(); $abs = new Abs(); $abs->getPrefix();

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.0040.01118.82
8.3.30.0070.01419.15
8.3.20.0040.00420.29
8.3.10.0080.00020.50
8.3.00.0040.00419.38
8.2.170.0110.00422.96
8.2.160.0130.00320.33
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0070.00022.11
8.2.110.0000.00919.14
8.2.100.0000.01417.81
8.2.90.0000.00819.17
8.2.80.0080.00017.97
8.2.70.0040.00417.48
8.2.60.0000.00718.05
8.2.50.0130.00318.07
8.2.40.0000.00818.05
8.2.30.0000.00719.11
8.2.20.0080.00017.78
8.2.10.0040.00417.93
8.2.00.0040.00417.80
8.1.270.0050.00322.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00021.16
8.1.230.0000.01117.42
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00818.63
8.1.160.0000.00721.93
8.1.150.0070.00018.76
8.1.140.0070.00017.36
8.1.130.0020.00517.82
8.1.120.0000.00717.37
8.1.110.0030.00517.34
8.1.100.0070.00017.34
8.1.90.0040.00317.34
8.1.80.0000.00717.46
8.1.70.0070.00017.34
8.1.60.0050.00517.48
8.1.50.0030.00517.43
8.1.40.0050.00317.42
8.1.30.0040.00417.63
8.1.20.0000.00917.58
8.1.10.0000.00817.60
8.1.00.0040.00417.53
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0030.00318.35
8.0.270.0040.00417.16
8.0.260.0030.00317.16
8.0.250.0030.00316.93
8.0.240.0000.00817.06
8.0.230.0070.00016.99
8.0.220.0000.00716.97
8.0.210.0070.00016.95
8.0.200.0070.00016.86
8.0.190.0000.00716.91
8.0.180.0040.00416.94
8.0.170.0000.00816.96
8.0.160.0080.00016.91
8.0.150.0030.00316.89
8.0.140.0050.00216.79
8.0.130.0050.00013.36
8.0.120.0040.00416.95
8.0.110.0060.00316.95
8.0.100.0050.00316.93
8.0.90.0040.00416.84
8.0.80.0040.01116.89
8.0.70.0050.00316.96
8.0.60.0050.00316.80
8.0.50.0000.00716.85
8.0.30.0150.00817.28
8.0.20.0080.01217.40
8.0.10.0000.00816.92
8.0.00.0080.01416.84
7.4.330.0020.00215.09
7.4.320.0060.00016.53
7.4.300.0000.00616.59
7.4.290.0040.00416.66
7.4.280.0040.00416.48
7.4.270.0030.00316.47
7.4.260.0060.00316.48
7.4.250.0040.00416.57
7.4.240.0040.00416.63
7.4.230.0030.00316.57
7.4.220.0150.00416.55
7.4.210.0130.00316.57
7.4.200.0030.00316.71
7.4.160.0050.01016.46
7.4.150.0100.01417.40
7.4.140.0120.00517.86
7.4.130.0100.00716.48
7.4.120.0060.01316.53
7.4.110.0060.01016.45
7.4.100.0100.00716.41
7.4.90.0000.01816.41
7.4.80.0080.00919.37
7.4.70.0070.01316.59
7.4.60.0080.01116.37
7.4.50.0040.00416.27
7.4.40.0130.00316.70
7.4.30.0080.00816.41
7.4.10.0070.01015.00
7.4.00.0130.00415.04
7.3.330.0000.00513.32
7.3.320.0070.00013.28
7.3.310.0020.00516.37
7.3.300.0070.00016.21
7.3.290.0030.01016.37
7.3.280.0100.00816.30
7.3.270.0110.00617.40
7.3.260.0110.00716.34
7.3.250.0100.00716.35
7.3.240.0090.00816.36
7.3.230.0100.01016.50
7.3.210.0110.00616.36
7.3.200.0080.01419.39
7.3.190.0100.01316.49
7.3.180.0150.00716.49
7.3.170.0160.00016.33
7.3.160.0100.00616.45
7.3.130.0030.00914.88
7.3.120.0070.01114.88
7.3.110.0060.00914.63
7.3.100.0060.01014.70
7.3.90.0030.00814.83
7.3.80.0050.00714.79
7.3.70.0080.00614.65
7.3.60.0040.00714.79
7.3.50.0050.00814.88
7.3.40.0060.00914.77
7.3.30.0060.00514.90
7.3.20.0040.00916.63
7.3.10.0020.01316.70
7.3.00.0020.01216.66
7.2.330.0060.01416.79
7.2.320.0150.00616.72
7.2.310.0110.01516.82
7.2.300.0140.00316.49
7.2.290.0130.00316.83
7.2.260.0070.01014.85
7.2.250.0090.00814.91
7.2.240.0050.01215.12
7.2.230.0070.00715.00
7.2.220.0060.00715.07
7.2.210.0070.00515.12
7.2.200.0040.01215.13
7.2.190.0090.00714.95
7.2.180.0080.00615.06
7.2.170.0060.01014.98
7.2.160.0080.01014.95
7.2.150.0090.00816.94
7.2.140.0020.01216.86
7.2.130.0040.00916.85
7.2.120.0070.00816.94
7.2.110.0060.00716.76
7.2.100.0120.00416.88
7.2.90.0030.00916.84
7.2.80.0050.01016.96
7.2.70.0020.01217.06
7.2.60.0120.01016.80
7.2.50.0080.00916.80
7.2.40.0060.00916.94
7.2.30.0090.00716.77
7.2.20.0060.00716.84
7.2.10.0050.00816.93
7.2.00.0070.00617.56
7.1.330.0020.01315.70
7.1.320.0010.01115.69
7.1.310.0080.00315.73
7.1.300.0020.01015.59
7.1.290.0080.00515.54
7.1.280.0080.00715.68
7.1.270.0070.00615.71
7.1.260.0070.00815.71
7.1.250.0040.00815.56
7.1.240.0050.00715.48
7.1.230.0010.01015.50
7.1.220.0070.00515.56
7.1.210.0050.00815.62
7.1.200.0090.00815.50
7.1.190.0060.00815.67
7.1.180.0050.00615.67
7.1.170.0070.00715.54
7.1.160.0090.00515.60
7.1.150.0000.01115.72
7.1.140.0020.01015.43
7.1.130.0080.00315.66
7.1.120.0020.00915.64
7.1.110.0080.00515.70
7.1.100.0060.00816.42
7.1.90.0040.00615.67
7.1.80.0060.00715.78
7.1.70.0050.00916.12
7.1.60.0070.00816.87
7.1.50.0060.01015.92
7.1.40.0050.01215.55
7.1.30.0070.00715.58
7.1.20.0090.00515.79
7.1.10.0110.00515.78
7.1.00.0090.02817.91
7.0.330.0070.00615.04
7.0.320.0060.00515.01
7.0.310.0040.00915.16
7.0.300.0000.00915.27
7.0.290.0040.00915.28
7.0.280.0030.01115.28
7.0.270.0020.01315.21
7.0.260.0030.00515.13
7.0.250.0100.00315.15
7.0.240.0050.00815.40
7.0.230.0080.00515.32
7.0.220.0100.00215.33
7.0.210.0040.01015.33
7.0.200.0060.00615.79
7.0.190.0110.00515.37
7.0.180.0050.00815.24
7.0.170.0050.00815.21
7.0.160.0050.00615.10
7.0.150.0080.00515.43
7.0.140.0050.03017.52
7.0.130.0110.00515.27
7.0.120.0100.00315.32
7.0.110.0040.02016.75
7.0.100.0070.01716.72
7.0.90.0050.03016.92
7.0.80.0020.02816.74
7.0.70.0120.02116.76
7.0.60.0200.02016.99
7.0.50.0040.02816.92
7.0.40.0060.03015.49
7.0.30.0010.02515.44
7.0.20.0070.01815.47
7.0.10.0090.03015.45
7.0.00.0060.01615.57
5.6.400.0050.00514.28
5.6.390.0060.00314.48
5.6.380.0030.00714.11
5.6.370.0070.00714.26
5.6.360.0020.01214.40
5.6.350.0100.00214.23
5.6.340.0030.00814.34
5.6.330.0030.00814.22
5.6.320.0050.00714.24
5.6.310.0060.00814.20
5.6.300.0030.00914.14
5.6.290.0070.00414.22
5.6.280.0090.02516.55
5.6.270.0010.01014.36
5.6.260.0060.01616.32
5.6.250.0050.02316.28
5.6.240.0020.01916.41
5.6.230.0030.03016.25
5.6.220.0020.02816.34
5.6.210.0070.02516.38
5.6.200.0070.02916.32
5.6.190.0050.03116.38
5.6.180.0040.02016.33
5.6.170.0060.01816.32
5.6.160.0070.03116.31
5.6.150.0070.01816.33
5.6.140.0080.02516.23
5.6.130.0050.01916.34
5.6.120.0060.03416.35
5.6.110.0070.02916.37
5.6.100.0070.02816.40
5.6.90.0070.01716.36
5.6.80.0040.02016.26
5.6.70.0030.02616.10
5.6.60.0030.03016.27
5.6.50.0080.02716.16
5.6.40.0060.02916.00
5.6.30.0070.03116.05
5.6.20.0040.02316.13
5.6.10.0050.02216.08
5.6.00.0070.01916.06
5.5.380.0060.02114.43
5.5.370.0000.03214.46
5.5.360.0090.02014.36
5.5.350.0080.01814.68
5.5.340.0070.03014.66
5.5.330.0040.02914.78
5.5.320.0090.01514.66
5.5.310.0110.01514.54
5.5.300.0060.01914.72
5.5.290.0080.01614.67
5.5.280.0060.01814.55
5.5.270.0080.01614.64
5.5.260.0100.02514.69
5.5.250.0090.02614.62
5.5.240.0070.02914.43
5.5.230.0030.01814.51
5.5.220.0050.02114.48
5.5.210.0040.01614.49
5.5.200.0030.01914.40
5.5.190.0050.02814.42
5.5.180.0070.02114.34
5.5.170.0050.00712.81
5.5.160.0030.03014.27
5.5.150.0050.02514.28
5.5.140.0110.02414.40
5.5.130.0060.01914.37
5.5.120.0070.02814.37
5.5.110.0050.03014.25
5.5.100.0070.02814.30
5.5.90.0080.01514.44
5.5.80.0070.02014.37
5.5.70.0030.02014.33
5.5.60.0020.03314.25
5.5.50.0060.03114.35
5.5.40.0040.02214.33
5.5.30.0040.02914.31
5.5.20.0040.03314.39
5.5.10.0060.01814.31
5.5.00.0100.02514.25
5.4.450.0080.01614.28
5.4.440.0070.01614.16
5.4.430.0050.01614.21
5.4.420.0060.02714.23
5.4.410.0060.01514.20
5.4.400.0040.01414.15
5.4.390.0030.01714.12
5.4.380.0080.02214.08
5.4.370.0090.02314.08
5.4.360.0050.03114.08
5.4.350.0050.02614.15
5.4.340.0050.02314.05
5.4.330.0070.00411.62
5.4.320.0060.02914.05
5.4.310.0060.01714.12
5.4.300.0050.01714.07
5.4.290.0070.02214.08
5.4.280.0070.02414.05
5.4.270.0040.01714.17
5.4.260.0040.01814.07
5.4.250.0050.02214.11
5.4.240.0060.02414.15
5.4.230.0060.02714.05
5.4.220.0040.02814.11
5.4.210.0000.03214.10
5.4.200.0080.02714.07
5.4.190.0040.01614.06
5.4.180.0040.02114.17
5.4.170.0040.01614.07
5.4.160.0050.01614.06
5.4.150.0070.02414.12
5.4.140.0070.02613.21
5.4.130.0030.01613.27
5.4.120.0090.02313.23
5.4.110.0060.02713.23
5.4.100.0030.02613.21
5.4.90.0050.02313.24
5.4.80.0090.01913.21
5.4.70.0040.02313.27
5.4.60.0070.02913.24
5.4.50.0060.02913.21
5.4.40.0060.02613.24
5.4.30.0050.02813.25
5.4.20.0040.01713.25
5.4.10.0030.02813.28
5.4.00.0050.01613.02
5.3.290.0100.03213.08
5.3.280.0080.02113.12
5.3.270.0060.03313.11
5.3.260.0080.03613.19
5.3.250.0060.03713.14
5.3.240.0070.03913.12
5.3.230.0050.02213.04
5.3.220.0030.02613.15
5.3.210.0060.04213.11
5.3.200.0060.03313.17
5.3.190.0040.02113.08
5.3.180.0030.04013.17
5.3.170.0030.03313.16
5.3.160.0070.03913.12
5.3.150.0050.03913.11
5.3.140.0080.03713.17
5.3.130.0050.03613.16
5.3.120.0070.03813.09
5.3.110.0050.03113.10
5.3.100.0050.01812.88
5.3.90.0080.04012.89
5.3.80.0020.02912.83
5.3.70.0040.02312.82
5.3.60.0070.01812.83
5.3.50.0010.02412.80
5.3.40.0000.02512.80
5.3.30.0020.02112.77
5.3.20.0030.02112.65
5.3.10.0030.02112.68
5.3.00.0020.01712.64
5.2.170.0000.02111.77
5.2.160.0050.01511.77
5.2.150.0020.01911.77
5.2.140.0080.01311.77
5.2.130.0050.01811.77
5.2.120.0030.01711.77
5.2.110.0030.01511.77
5.2.100.0050.01611.77
5.2.90.0020.01611.77
5.2.80.0040.01711.77
5.2.70.0030.01711.77
5.2.60.0030.01511.77
5.2.50.0020.01711.77
5.2.40.0040.01611.77
5.2.30.0030.01511.77
5.2.20.0060.03111.77
5.2.10.0030.01311.77
5.2.00.0000.02011.77
5.1.60.0030.01511.77
5.1.50.0000.01411.77
5.1.40.0020.01511.77
5.1.30.0030.01311.77
5.1.20.0020.01811.77
5.1.10.0020.01511.77
5.1.00.0000.01411.77
5.0.50.0020.01011.77
5.0.40.0000.01311.77
5.0.30.0020.01511.77
5.0.20.0000.01011.77
5.0.10.0020.01011.77
5.0.00.0000.01711.77
4.4.90.0050.00711.77
4.4.80.0040.00711.77
4.4.70.0020.00911.77
4.4.60.0000.00911.77
4.4.50.0000.01411.77
4.4.40.0010.01611.77
4.4.30.0000.01111.77
4.4.20.0000.01111.77
4.4.10.0050.00311.77
4.4.00.0030.01311.77
4.3.110.0020.00911.77
4.3.100.0050.00511.77
4.3.90.0020.00711.77
4.3.80.0000.01511.77
4.3.70.0000.01011.77
4.3.60.0040.00511.77
4.3.50.0040.00511.77
4.3.40.0010.01111.77
4.3.30.0000.00811.77
4.3.20.0020.00811.77
4.3.10.0000.01011.77
4.3.00.0010.00911.77

preferences:
39.52 ms | 400 KiB | 5 Q