3v4l.org

run code in 300+ PHP versions simultaneously
<?php class First { const CONSTANTA = 1; public static function doAction() { print static::CONSTANTA; } } class Second extends First { const CONSTANTA = 2; } Second::doAction();

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.0060.00918.77
8.3.30.0100.00719.14
8.3.20.0080.00020.26
8.3.10.0080.00021.81
8.3.00.0040.00422.52
8.2.170.0140.00022.96
8.2.160.0110.00422.08
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00622.27
8.2.110.0070.00422.05
8.2.100.0080.00317.66
8.2.90.0000.00718.85
8.2.80.0040.00417.97
8.2.70.0030.00617.25
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0030.00618.22
8.2.30.0040.00417.98
8.2.20.0000.00717.48
8.2.10.0040.00417.72
8.2.00.0000.00817.65
8.1.270.0090.00023.96
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0000.00823.84
8.1.230.0040.00719.16
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0000.01017.22
8.1.190.0000.00817.17
8.1.180.0000.00818.10
8.1.170.0030.00618.42
8.1.160.0000.00722.00
8.1.150.0000.00718.52
8.1.140.0000.00717.38
8.1.130.0000.00717.75
8.1.120.0080.00017.44
8.1.110.0070.00017.35
8.1.100.0030.00317.35
8.1.90.0000.01017.39
8.1.80.0030.00317.27
8.1.70.0000.00717.25
8.1.60.0040.00417.49
8.1.50.0000.00817.43
8.1.40.0040.00417.47
8.1.30.0050.00317.51
8.1.20.0000.00817.57
8.1.10.0000.00817.46
8.1.00.0030.00617.46
8.0.300.0050.00318.77
8.0.290.0000.00717.05
8.0.280.0030.00318.43
8.0.270.0000.00717.31
8.0.260.0070.00016.80
8.0.250.0030.00316.99
8.0.240.0040.00416.88
8.0.230.0030.00316.83
8.0.220.0000.00716.77
8.0.210.0030.00516.79
8.0.200.0070.00016.85
8.0.190.0030.00416.94
8.0.180.0000.00716.87
8.0.170.0030.00616.95
8.0.160.0000.00716.79
8.0.150.0000.00716.73
8.0.140.0050.00316.67
8.0.130.0000.00613.24
8.0.120.0020.00516.79
8.0.110.0040.00416.77
8.0.100.0000.00716.75
8.0.90.0000.00916.64
8.0.80.0060.01016.77
8.0.70.0050.00216.79
8.0.60.0000.00716.86
8.0.50.0000.00716.78
8.0.30.0050.01317.01
8.0.20.0130.00517.40
8.0.10.0040.00416.73
8.0.00.0120.00816.57
7.4.330.0050.00015.02
7.4.320.0030.00316.53
7.4.300.0030.00316.51
7.4.290.0030.00616.44
7.4.280.0030.00316.43
7.4.270.0000.00816.37
7.4.260.0000.00716.42
7.4.250.0070.00016.31
7.4.240.0020.00516.48
7.4.230.0080.00016.32
7.4.220.0060.00916.46
7.4.210.0040.01016.53
7.4.200.0030.00316.43
7.4.190.0030.00316.68
7.4.160.0060.01016.57
7.4.150.0050.01117.40
7.4.140.0090.00917.86
7.4.130.0120.00416.36
7.4.120.0080.01016.38
7.4.110.0130.00316.68
7.4.100.0090.01516.19
7.4.90.0090.00916.30
7.4.80.0120.00619.39
7.4.70.0030.01316.42
7.4.60.0060.01316.33
7.4.50.0040.00416.57
7.4.40.0040.01522.77
7.4.30.0040.01816.45
7.4.10.0070.01114.88
7.4.00.0020.01414.64
7.3.330.0000.00713.15
7.3.320.0030.00313.29
7.3.310.0000.00716.09
7.3.300.0070.00016.22
7.3.290.0080.00816.27
7.3.280.0090.00616.29
7.3.270.0090.00917.40
7.3.260.0100.00716.26
7.3.250.0060.01016.27
7.3.240.0080.00816.38
7.3.230.0060.00916.39
7.3.210.0100.01316.34
7.3.200.0160.00719.39
7.3.190.0090.01216.53
7.3.180.0080.00816.42
7.3.170.0120.00316.57
7.3.160.0090.00916.20
7.3.130.0070.01014.79
7.3.120.0060.00714.87
7.3.110.0000.02014.85
7.3.100.0030.01014.71
7.3.90.0040.00814.58
7.3.80.0130.00014.78
7.3.70.0060.00914.62
7.3.60.0000.01414.84
7.3.50.0000.00914.70
7.3.40.0070.00714.70
7.3.30.0080.00514.63
7.3.20.0030.01016.67
7.3.10.0050.00816.57
7.3.00.0060.00616.51
7.2.330.0060.01116.80
7.2.320.0030.01416.37
7.2.310.0120.00616.33
7.2.300.0060.01116.60
7.2.290.0100.00616.68
7.2.260.0040.01115.25
7.2.250.0070.01115.24
7.2.240.0000.01814.91
7.2.230.0090.00415.05
7.2.220.0060.00914.71
7.2.210.0030.01314.75
7.2.200.0060.00315.09
7.2.190.0030.01215.04
7.2.180.0120.00315.10
7.2.170.0060.00915.08
7.2.160.0040.00714.73
7.2.150.0000.01317.01
7.2.140.0050.00516.79
7.2.130.0090.00616.71
7.2.120.0090.00716.80
7.2.110.0070.00816.96
7.2.100.0050.00916.84
7.2.90.0070.01116.97
7.2.80.0050.00916.88
7.2.70.0060.00316.67
7.2.60.0050.01016.86
7.2.50.0090.00516.89
7.2.40.0070.00816.81
7.2.30.0030.01116.94
7.2.20.0070.00816.96
7.2.10.0040.00916.75
7.2.00.0050.01017.65
7.1.330.0030.00615.42
7.1.320.0110.00415.72
7.1.310.0070.00715.41
7.1.300.0030.01315.77
7.1.290.0000.01015.62
7.1.280.0040.01215.48
7.1.270.0000.00915.50
7.1.260.0100.00015.30
7.1.250.0070.00715.62
7.1.240.0070.00715.45
7.1.230.0000.00915.75
7.1.220.0040.01115.63
7.1.210.0070.00715.35
7.1.200.0030.00915.56
7.1.190.0070.00715.50
7.1.180.0070.01015.50
7.1.170.0080.00815.77
7.1.160.0060.00615.60
7.1.150.0050.00315.50
7.1.140.0070.00415.69
7.1.130.0100.00315.60
7.1.120.0070.00315.63
7.1.110.0100.00015.79
7.1.100.0040.00816.71
7.1.90.0030.00915.40
7.1.80.0030.00715.63
7.1.70.0060.00716.18
7.1.60.0040.01417.57
7.1.50.0070.00916.27
7.1.40.0000.01315.58
7.1.30.0040.00815.72
7.1.20.0000.01015.45
7.1.10.0060.00615.34
7.1.00.0030.04319.01
7.0.330.0040.00715.39
7.0.320.0030.00615.27
7.0.310.0030.00715.11
7.0.300.0000.01415.35
7.0.290.0070.00715.36
7.0.280.0000.00915.34
7.0.270.0080.00315.11
7.0.260.0080.00815.14
7.0.250.0090.00015.52
7.0.240.0090.00615.11
7.0.230.0030.00915.14
7.0.220.0100.00315.07
7.0.210.0030.00615.27
7.0.200.0080.00516.07
7.0.190.0080.00414.98
7.0.180.0070.00715.41
7.0.170.0070.00715.41
7.0.160.0040.00815.50
7.0.150.0000.00815.30
7.0.140.0020.04218.80
7.0.130.0040.00415.30
7.0.120.0030.01015.24
7.0.110.0110.00415.37
7.0.100.0040.00815.35
7.0.90.0030.01015.48
7.0.80.0000.01415.44
7.0.70.0030.00615.37
7.0.60.0080.04317.63
7.0.50.0090.04116.70
7.0.40.0070.04516.78
7.0.30.0200.04016.76
7.0.20.0180.04316.77
7.0.10.0130.03216.80
7.0.00.0030.03316.70
5.6.400.0060.00614.16
5.6.390.0070.00714.11
5.6.380.0040.00714.03
5.6.370.0060.00914.13
5.6.360.0030.01314.43
5.6.350.0040.00714.18
5.6.340.0040.00414.46
5.6.330.0100.00713.99
5.6.320.0080.00414.15
5.6.310.0050.00514.20
5.6.300.0000.01414.49
5.6.290.0150.00014.34
5.6.280.0020.04117.65
5.6.270.0030.01014.25
5.6.260.0060.00614.17
5.6.250.0030.00914.41
5.6.240.0060.00614.29
5.6.230.0000.01514.34
5.6.220.0090.00314.12
5.6.210.0050.04617.41
5.6.200.0150.02516.09
5.6.190.0050.04217.54
5.6.180.0030.04117.42
5.6.170.0170.02517.34
5.6.160.0090.03717.25
5.6.150.0070.04516.19
5.6.140.0030.02616.12
5.6.130.0100.03816.09
5.6.120.0010.03617.57
5.6.110.0030.02717.66
5.6.100.0070.04417.57
5.6.90.0030.04517.58
5.6.80.0080.04117.43
5.6.70.0320.03217.23
5.6.60.0040.01113.79
5.6.50.0080.00414.27
5.6.40.0100.00014.17
5.6.30.0030.00714.18
5.6.20.0090.00314.16
5.6.10.0000.01714.21
5.6.00.0060.00314.09
5.5.380.0060.00814.08
5.5.370.0050.00514.00
5.5.360.0050.00514.15
5.5.350.0070.03717.25
5.5.340.0070.04216.12
5.5.330.0070.04417.25
5.5.320.0090.03217.17
5.5.310.0120.02317.23
5.5.300.0090.04016.08
5.5.290.0070.02016.00
5.5.280.0050.04117.46
5.5.270.0040.03417.40
5.5.260.0090.04217.51
5.5.250.0110.01817.39
5.5.240.0050.04117.06
5.5.230.0040.01113.84
5.5.220.0000.00814.15
5.5.210.0000.01514.20
5.5.200.0040.01114.01
5.5.190.0040.01114.20
5.5.180.0140.00314.32
5.5.170.0000.01114.09
5.5.160.0080.00414.08
5.5.150.0100.00313.99
5.5.140.0070.00714.16
5.5.130.0030.00914.30
5.5.120.0090.00613.87
5.5.110.0090.00614.07
5.5.100.0090.00014.14
5.5.90.0090.00614.18
5.5.80.0120.00413.96
5.5.70.0040.00414.03
5.5.60.0040.01514.21
5.5.50.0060.01014.15
5.5.40.0080.00014.05
5.5.30.0000.01414.09
5.5.20.0100.00314.38
5.5.10.0030.00514.14
5.5.00.0040.00714.08
5.4.450.0580.02016.36
5.4.440.0450.03316.44
5.4.430.0100.02916.39
5.4.420.0230.03216.39
5.4.410.0020.03516.05
5.4.400.0090.02716.03
5.4.390.0050.03016.06
5.4.380.0100.03015.95
5.4.370.0080.03315.99
5.4.360.0240.02115.93
5.4.350.0150.02815.93
5.4.340.0120.03615.89
5.4.330.0070.00413.30
5.4.320.0040.02312.90
5.4.310.0020.02312.90
5.4.300.0020.02512.90
5.4.290.0090.02112.90
5.4.280.0050.02912.84
5.4.270.0050.03212.84
5.4.260.0040.03412.84
5.4.250.0080.03212.84
5.4.240.0130.02312.84
5.4.230.0050.03312.83
5.4.220.0090.02812.83
5.4.210.0080.03712.83
5.4.200.0110.04212.83
5.4.190.0070.03412.83
5.4.180.0090.02412.83
5.4.170.0050.03512.83
5.4.160.0080.03012.83
5.4.150.0060.04212.83
5.4.140.0080.04112.67
5.4.130.0100.03512.67
5.4.120.0040.03512.65
5.4.110.0080.03612.64
5.4.100.0110.03812.64
5.4.90.0050.03412.65
5.4.80.0080.02812.65
5.4.70.0080.02912.64
5.4.60.0080.04312.64
5.4.50.0070.03412.64
5.4.40.0120.04912.64
5.4.30.0060.03212.63
5.4.20.0100.02912.64
5.4.10.0020.03612.63
5.4.00.0050.03812.38
5.3.290.0050.02413.05
5.3.280.0070.03813.01
5.3.270.0070.03613.01
5.3.260.0070.03413.01
5.3.250.0060.03913.01
5.3.240.0090.04513.01
5.3.230.0080.03413.01
5.3.220.0070.04112.99
5.3.210.0110.04612.99
5.3.200.0090.03012.99
5.3.190.0080.03312.99
5.3.180.0070.02712.99
5.3.170.0100.02812.99
5.3.160.0090.02812.99
5.3.150.0140.04412.99
5.3.140.0060.02612.98
5.3.130.0090.02612.98
5.3.120.0060.02812.98
5.3.110.0020.03112.98
5.3.100.0060.02612.71
5.3.90.0090.02612.69
5.3.80.0050.02512.69
5.3.70.0100.03612.69
5.3.60.0060.03112.68
5.3.50.0080.04112.65
5.3.40.0130.03612.65
5.3.30.0070.03312.63
5.3.20.0100.03212.52
5.3.10.0130.04512.50
5.3.00.0100.04012.50
5.2.170.0100.0479.19
5.2.160.0040.0389.19
5.2.150.0050.0339.19
5.2.140.0100.0299.19
5.2.130.0030.0409.14
5.2.120.0070.0339.14
5.2.110.0090.0439.15
5.2.100.0190.0659.15
5.2.90.0080.0749.14
5.2.80.0130.0609.14
5.2.70.0070.0429.14
5.2.60.0150.0479.09
5.2.50.0040.0539.06
5.2.40.0230.0649.03
5.2.30.0160.0839.02
5.2.20.0110.0749.00
5.2.10.0160.0548.91
5.2.00.0110.0528.79
5.1.60.0060.0388.07
5.1.50.0100.0458.07
5.1.40.0080.0538.05
5.1.30.0190.0538.39
5.1.20.0090.0488.42
5.1.10.0080.0408.15
5.1.00.0120.0828.14
5.0.50.0050.0456.62
5.0.40.0110.0286.48
5.0.30.0040.0426.29
5.0.20.0060.0296.26
5.0.10.0080.0516.24
5.0.00.0120.0526.23
4.4.90.0090.0334.78
4.4.80.0060.0454.76
4.4.70.0070.0324.75
4.4.60.0040.0244.75
4.4.50.0140.0444.77
4.4.40.0090.0414.71
4.4.30.0060.0234.76
4.4.20.0070.0294.85
4.4.10.0100.0564.85
4.4.00.0060.0394.76
4.3.110.0110.0724.67
4.3.100.0080.0324.67
4.3.90.0230.0814.63
4.3.80.0150.0904.58
4.3.70.0060.0364.63
4.3.60.0030.0174.63
4.3.50.0060.0554.63
4.3.40.0070.0604.54
4.3.30.0040.0263.29
4.3.20.0030.0243.27
4.3.10.0060.0383.23
4.3.00.0200.01013.64

preferences:
28.32 ms | 400 KiB | 5 Q