3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private function __construct() {} } class bar extends foo { private function __construct() {} private function __destruct() {} static public function foob() { return new self(); } } var_dump(bar::foob());

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.0190.00018.68
8.3.50.0070.00922.04
8.3.40.0070.01418.98
8.3.30.0110.00419.05
8.3.20.0070.00020.31
8.3.10.0070.00023.54
8.3.00.0070.00020.85
8.2.180.0090.00616.50
8.2.170.0070.00722.96
8.2.160.0090.00520.43
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0080.00322.05
8.2.100.0120.00017.78
8.2.90.0000.00817.91
8.2.80.0040.00417.97
8.2.70.0060.00317.48
8.2.60.0070.00717.68
8.2.50.0040.00418.07
8.2.40.0050.00319.95
8.2.30.0040.00418.05
8.2.20.0040.00417.73
8.2.10.0070.00018.02
8.2.00.0040.00417.75
8.1.280.0090.00625.92
8.1.270.0060.00323.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.50
8.1.230.0040.00720.89
8.1.220.0030.00517.74
8.1.210.0030.00718.91
8.1.200.0060.00317.13
8.1.190.0000.00817.00
8.1.180.0040.00418.10
8.1.170.0000.00818.61
8.1.160.0000.00721.93
8.1.150.0040.00418.55
8.1.140.0040.00417.23
8.1.130.0000.00717.70
8.1.120.0070.00017.27
8.1.110.0080.00017.32
8.1.100.0000.00817.23
8.1.90.0070.00017.34
8.1.80.0070.00017.36
8.1.70.0030.00317.32
8.1.60.0040.00417.53
8.1.50.0080.00017.46
8.1.40.0090.00417.40
8.1.30.0050.00317.56
8.1.20.0000.00817.46
8.1.10.0060.00317.48
8.1.00.0040.00417.45
8.0.300.0070.00020.04
8.0.290.0040.00416.93
8.0.280.0030.00318.30
8.0.270.0000.00717.23
8.0.260.0000.00717.14
8.0.250.0000.00716.99
8.0.240.0080.00016.84
8.0.230.0060.00016.92
8.0.220.0030.00316.86
8.0.210.0070.00016.91
8.0.200.0060.00016.98
8.0.190.0080.00016.96
8.0.180.0070.00016.81
8.0.170.0000.00816.88
8.0.160.0000.00816.89
8.0.150.0070.00416.72
8.0.140.0040.00416.74
8.0.130.0000.00613.32
8.0.120.0020.00516.73
8.0.110.0000.00816.79
8.0.100.0030.00316.67
8.0.90.0000.00716.87
8.0.80.0110.00416.83
8.0.70.0080.00016.85
8.0.60.0040.00417.00
8.0.50.0050.00316.70
8.0.30.0120.00717.03
8.0.20.0100.01117.40
8.0.10.0000.00716.80
8.0.00.0110.00616.80
7.4.330.0000.00515.07
7.4.320.0070.00016.23
7.4.300.0000.00716.48
7.4.290.0030.00316.44
7.4.280.0070.00016.33
7.4.270.0000.00716.38
7.4.260.0040.00416.50
7.4.250.0040.00416.38
7.4.240.0020.00516.48
7.4.230.0070.00016.59
7.4.220.0130.00316.49
7.4.210.0030.01016.38
7.4.200.0070.00016.45
7.4.160.0080.00816.39
7.4.150.0130.00517.40
7.4.140.0130.00617.86
7.4.130.0100.00616.30
7.4.120.0090.00816.41
7.4.110.0030.01416.62
7.4.100.0150.00916.43
7.4.90.0100.00916.44
7.4.80.0110.01119.39
7.4.70.0110.00716.54
7.4.60.0090.01216.64
7.4.50.0050.00016.50
7.4.40.0060.01116.44
7.4.30.0060.01016.55
7.4.00.0020.01115.06
7.3.330.0020.00213.34
7.3.320.0000.00513.18
7.3.310.0000.00716.31
7.3.300.0030.00316.38
7.3.290.0120.00316.30
7.3.280.0110.00816.38
7.3.270.0110.00617.40
7.3.260.0150.00316.38
7.3.250.0100.00916.46
7.3.240.0140.00916.20
7.3.230.0070.01016.39
7.3.210.0100.00716.38
7.3.200.0160.00619.39
7.3.190.0130.01016.28
7.3.180.0070.00716.57
7.3.170.0030.01316.33
7.3.160.0080.00816.23
7.3.120.0050.00814.75
7.3.110.0100.00714.53
7.3.100.0100.00714.87
7.3.90.0140.00314.53
7.3.80.0130.00314.51
7.3.70.0040.01114.72
7.3.60.0100.00714.80
7.3.50.0000.01514.73
7.3.40.0030.00814.74
7.3.30.0080.00314.62
7.3.20.0060.00916.77
7.3.10.0040.00816.50
7.3.00.0000.01316.71
7.2.330.0110.01116.61
7.2.320.0090.01316.33
7.2.310.0080.01216.59
7.2.300.0120.00416.47
7.2.290.0090.01216.34
7.2.250.0060.00914.94
7.2.240.0040.01414.80
7.2.230.0060.01215.00
7.2.220.0110.00014.91
7.2.210.0030.00914.45
7.2.200.0060.00914.93
7.2.190.0060.00614.68
7.2.180.0030.01014.96
7.2.170.0060.00614.70
7.2.60.0030.00916.65
7.2.00.0040.00819.40
7.1.330.0090.00915.71
7.1.320.0040.01115.46
7.1.310.0110.00315.54
7.1.300.0030.01015.36
7.1.290.0060.00615.44
7.1.280.0030.00715.45
7.1.270.0060.00615.71
7.1.260.0060.00615.54
7.1.200.0070.00715.72
7.1.70.0000.00717.21
7.1.60.0070.00717.13
7.1.50.0130.00716.57
7.1.00.0100.07022.30
7.0.200.0090.00316.64
7.0.140.0000.07722.09
7.0.60.0000.08321.80
7.0.50.0070.03717.94
7.0.40.0130.07020.13
7.0.30.0230.08020.10
7.0.20.0270.08020.08
7.0.10.0030.05320.16
7.0.00.0100.08020.06
5.6.280.0070.07021.10
5.6.210.0030.04020.57
5.6.200.0000.06018.23
5.6.190.0170.06020.47
5.6.180.0330.07020.62
5.6.170.0370.07320.58
5.6.160.0070.05020.50
5.6.150.0070.04718.29
5.6.140.0070.08018.21
5.6.130.0100.05718.20
5.6.120.0200.07020.98
5.6.110.0130.06320.89
5.6.100.0170.06320.98
5.6.90.0100.07721.02
5.6.80.0030.04020.37
5.5.350.0230.03320.52
5.5.340.0070.03718.07
5.5.330.0100.08320.29
5.5.320.0230.03720.35
5.5.310.0330.05020.34
5.5.300.0030.04318.03
5.5.290.0000.04318.03
5.5.280.0070.05320.79
5.5.270.0070.08720.79
5.5.260.0200.07320.88
5.5.250.0070.08720.58
5.5.240.0270.05320.16
5.4.450.0230.04735.39
5.4.440.0230.04734.32
5.4.430.0230.05032.19
5.4.420.0300.03732.19
5.4.410.0300.04032.19
5.4.400.0270.03032.19
5.4.390.0130.04732.20
5.4.380.0800.04018.74
5.4.370.0800.05318.46
5.4.360.0630.04718.60
5.4.350.0830.05318.75
5.4.340.0730.05318.73
5.4.320.0030.05112.50
5.4.310.0100.04412.50
5.4.300.0050.04612.50
5.4.290.0120.03712.50
5.4.280.0060.04312.39
5.4.270.0070.04412.39
5.4.260.0080.04112.39
5.4.250.0080.05012.39
5.4.240.0070.03712.39
5.4.230.0060.04012.39
5.4.220.0090.03512.39
5.4.210.0090.04912.39
5.4.200.0040.04112.38
5.4.190.0090.04912.38
5.4.180.0050.05112.38
5.4.170.0100.04912.40
5.4.160.0080.04912.39
5.4.150.0080.04812.39
5.4.140.0120.04712.07
5.4.130.0120.04212.05
5.4.120.0090.04812.02
5.4.110.0090.04812.01
5.4.100.0080.04912.01
5.4.90.0130.04612.01
5.4.80.0110.05212.01
5.4.70.0050.05212.01
5.4.60.0130.04312.00
5.4.50.0120.04412.01
5.4.40.0060.05012.00
5.4.30.0080.04912.00
5.4.20.0100.04811.99
5.4.10.0090.04611.99
5.4.00.0060.05111.49
5.3.290.0030.04112.80
5.3.280.0070.05212.71
5.3.270.0070.05512.73
5.3.260.0120.05212.71
5.3.250.0170.04312.72
5.3.240.0150.04612.72
5.3.230.0100.04912.71
5.3.220.0060.05312.68
5.3.210.0160.04612.68
5.3.200.0070.05212.68
5.3.190.0090.05212.68
5.3.180.0130.05712.67
5.3.170.0080.05712.67
5.3.160.0080.05312.67
5.3.150.0090.05112.67
5.3.140.0060.05312.66
5.3.130.0110.05412.66
5.3.120.0150.04912.66
5.3.110.0100.05212.66
5.3.100.0140.04612.13
5.3.90.0070.05912.11
5.3.80.0150.05412.10
5.3.70.0110.05612.10
5.3.60.0100.05012.08
5.3.50.0110.04512.04
5.3.40.0100.04712.03
5.3.30.0060.04911.99
5.3.20.0100.04511.77
5.3.10.0120.04311.73
5.3.00.0070.04911.73
5.2.170.0100.0539.23
5.2.160.0070.0399.23
5.2.150.0070.0409.23
5.2.140.0080.0359.22
5.2.130.0070.0369.18
5.2.120.0040.0309.18
5.2.110.0070.0289.20
5.2.100.0040.0319.18
5.2.90.0060.0319.18
5.2.80.0120.0299.18
5.2.70.0040.0369.18
5.2.60.0060.0349.13
5.2.50.0060.0319.10
5.2.40.0040.0349.08
5.2.30.0050.0339.05
5.2.20.0090.0349.04
5.2.10.0090.0358.95
5.2.00.0030.0368.81
5.1.60.0090.0268.10
5.1.50.0080.0268.10
5.1.40.0060.0268.07
5.1.30.0060.0288.42
5.1.20.0030.0298.44
5.1.10.0040.0288.18
5.1.00.0040.0298.18
5.0.50.0070.0186.64
5.0.40.0030.0216.50
5.0.30.0040.0336.32
5.0.20.0030.0226.28
5.0.10.0080.0206.26
5.0.00.0020.0356.26
4.4.90.0020.0184.77
4.4.80.0040.0164.76
4.4.70.0050.0154.76
4.4.60.0020.0184.76
4.4.50.0060.0144.77
4.4.40.0040.0274.71
4.4.30.0050.0164.75
4.4.20.0050.0164.84
4.4.10.0020.0184.85
4.4.00.0050.0254.76
4.3.110.0020.0174.67
4.3.100.0010.0184.67
4.3.90.0050.0144.63
4.3.80.0020.0274.58
4.3.70.0020.0184.63
4.3.60.0020.0224.63
4.3.50.0040.0224.63
4.3.40.0030.0324.54
4.3.30.0020.0223.30
4.3.20.0060.0193.28
4.3.10.0010.0223.24
4.3.00.0030.01732.19

preferences:
51.78 ms | 400 KiB | 5 Q