3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { echo sprintf('%s was called', __METHOD__); } public function Foo() { echo sprintf('%s was called', __METHOD__); } } class Bar extends Foo { public function __construct() { parent::Foo(); } } $foo = new Foo();

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.70.0130.00616.35
8.3.60.0090.00916.63
8.3.50.0070.01017.35
8.3.40.0150.00618.73
8.3.30.0100.01318.54
8.3.20.0050.00318.78
8.3.10.0080.00020.39
8.3.00.0040.00419.13
8.2.180.0100.01316.63
8.2.170.0140.00722.96
8.2.160.0100.00321.02
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.01120.71
8.2.110.0030.00720.95
8.2.100.0040.00717.91
8.2.90.0030.00619.38
8.2.80.0040.00419.28
8.2.70.0040.00417.37
8.2.60.0080.00017.80
8.2.50.0000.00818.07
8.2.40.0000.00718.22
8.2.30.0040.00418.12
8.2.20.0040.00417.68
8.2.10.0040.00417.52
8.2.00.0050.00517.63
8.1.280.0090.00925.92
8.1.270.0080.00024.66
8.1.260.0090.00026.35
8.1.250.0000.00728.09
8.1.240.0000.01022.59
8.1.230.0000.01121.04
8.1.220.0080.00017.74
8.1.210.0070.00418.82
8.1.200.0060.00317.35
8.1.190.0030.00517.40
8.1.180.0050.00318.10
8.1.170.0030.00518.78
8.1.160.0040.00418.74
8.1.150.0040.00418.58
8.1.140.0000.00717.45
8.1.130.0070.00017.74
8.1.120.0040.00317.46
8.1.110.0060.00317.43
8.1.100.0040.00417.32
8.1.90.0080.00017.29
8.1.80.0000.00717.37
8.1.70.0000.00717.39
8.1.60.0000.00817.57
8.1.50.0040.00417.52
8.1.40.0030.00617.51
8.1.30.0000.00817.48
8.1.20.0060.00317.70
8.1.10.0000.00717.58
8.1.00.0030.00617.45
8.0.300.0050.00319.95
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0070.00017.27
8.0.260.0030.00316.82
8.0.250.0000.00717.00
8.0.240.0000.00716.84
8.0.230.0000.00716.85
8.0.220.0060.00016.74
8.0.210.0050.00316.71
8.0.200.0040.00416.88
8.0.190.0040.00416.90
8.0.180.0000.00716.88
8.0.170.0060.00316.74
8.0.160.0050.00316.79
8.0.150.0070.00416.86
8.0.140.0080.00016.83
8.0.130.0030.00313.28
8.0.120.0030.00516.86
8.0.110.0080.00016.94
8.0.100.0040.00316.71
8.0.90.0030.00516.73
8.0.80.0060.00916.79
8.0.70.0000.00816.72
8.0.60.0040.00416.72
8.0.50.0070.00016.82
8.0.30.0130.00517.05
8.0.20.0140.00817.05
8.0.10.0000.00816.79
8.0.00.0060.01416.65
7.4.330.0000.00512.92
7.4.320.0040.00416.45
7.4.300.0060.00016.44
7.4.290.0040.00416.47
7.4.280.0040.00416.62
7.4.270.0060.00016.50
7.4.260.0060.00013.30
7.4.250.0000.00816.62
7.4.240.0000.00816.55
7.4.230.0070.00016.50
7.4.220.0130.01016.46
7.4.210.0030.01016.55
7.4.200.0000.00716.59
7.4.190.0040.00416.48
7.4.160.0090.00616.58
7.4.150.0090.00916.51
7.4.140.0060.01516.49
7.4.130.0060.01516.49
7.4.120.0120.00516.64
7.4.110.0090.00916.47
7.4.100.0170.00316.70
7.4.90.0150.00416.54
7.4.80.0120.00919.39
7.4.70.0100.01016.34
7.4.60.0040.01216.57
7.4.50.0060.00616.37
7.4.40.0120.00316.61
7.4.30.0090.00616.29
7.4.00.0160.00014.90
7.3.330.0050.00213.16
7.3.320.0060.00013.02
7.3.310.0000.00716.12
7.3.300.0060.00016.23
7.3.290.0040.01116.16
7.3.280.0080.00816.23
7.3.270.0090.00916.51
7.3.260.0160.00616.30
7.3.250.0130.00816.41
7.3.240.0060.01016.37
7.3.230.0060.00916.44
7.3.210.0130.00516.20
7.3.200.0060.00916.34
7.3.190.0030.01316.30
7.3.180.0070.01016.57
7.3.170.0160.00016.20
7.3.160.0050.01116.47
7.3.120.0070.00714.70
7.3.10.0030.00916.36
7.3.00.0070.00416.66
7.2.330.0070.01116.32
7.2.320.0030.01416.38
7.2.310.0100.01016.75
7.2.300.0100.00616.35
7.2.290.0100.00716.65
7.2.130.0060.00616.79
7.2.120.0080.00416.91
7.2.110.0030.00916.82
7.2.100.0070.01016.77
7.2.90.0000.00816.47
7.2.80.0030.01316.74
7.2.70.0060.00916.94
7.2.60.0070.00716.98
7.2.50.0090.00616.87
7.2.40.0090.00316.96
7.2.30.0140.00316.69
7.2.20.0030.01416.72
7.2.10.0030.01016.74
7.2.00.0080.00518.21
7.1.250.0040.00415.50
7.1.240.0050.00315.71
7.1.230.0030.00715.82
7.1.220.0030.00615.57
7.1.210.0060.00915.55
7.1.200.0030.01015.72
7.1.190.0040.00715.52
7.1.180.0060.01015.71
7.1.170.0060.00615.54
7.1.160.0070.00715.72
7.1.150.0070.00715.43
7.1.140.0060.00615.75
7.1.130.0060.00615.72
7.1.120.0060.00615.36
7.1.110.0030.01015.44
7.1.100.0020.01116.92
7.1.90.0000.01015.81
7.1.80.0000.01515.45
7.1.70.0030.00616.31
7.1.60.0050.01117.55
7.1.50.0080.00716.21
7.1.40.0130.00015.74
7.1.30.0040.00715.63
7.1.20.0040.00815.47
7.1.10.0030.00915.48
7.1.00.0060.03819.04
7.0.330.0040.00815.30
7.0.320.0130.00015.11
7.0.310.0000.00815.44
7.0.300.0000.00915.32
7.0.290.0040.00415.33
7.0.280.0060.00615.32
7.0.270.0030.00915.28
7.0.260.0060.01215.23
7.0.250.0030.01015.27
7.0.240.0030.00915.39
7.0.230.0030.00615.51
7.0.220.0090.00315.26
7.0.210.0090.00315.34
7.0.200.0000.01016.00
7.0.190.0100.00315.33
7.0.180.0000.01215.32
7.0.170.0070.00315.39
7.0.160.0000.00815.09
7.0.150.0060.00615.18
7.0.140.0070.03718.67
7.0.130.0030.00915.51
7.0.120.0060.03818.70
7.0.110.0030.00915.36
7.0.100.0100.00315.34
7.0.90.0000.00815.34
7.0.80.0030.00815.04
7.0.70.0000.01715.39
7.0.60.0070.04717.62
7.0.50.0030.04616.66
7.0.40.0090.03415.66
7.0.30.0080.04215.58
7.0.20.0070.02315.64
7.0.10.0070.04015.47
7.0.00.0050.04215.58
5.6.380.0120.00314.41
5.6.370.0000.01514.24
5.6.360.0040.00413.90
5.6.350.0030.01014.21
5.6.340.0070.01014.33
5.6.330.0070.00714.27
5.6.320.0060.00314.10
5.6.310.0040.00714.14
5.6.300.0070.00714.33
5.6.290.0070.00414.52
5.6.280.0050.04017.63
5.6.270.0000.01714.04
5.6.260.0080.00513.75
5.6.250.0070.00713.78
5.6.240.0040.00714.01
5.6.230.0000.01414.25
5.6.220.0090.00414.16
5.6.210.0080.03317.34
5.6.200.0020.02916.21
5.6.190.0080.04316.17
5.6.180.0040.05016.20
5.6.170.0080.02516.15
5.6.160.0050.04416.19
5.6.150.0090.04416.09
5.6.140.0080.03116.21
5.6.130.0030.04516.32
5.6.120.0120.04216.13
5.6.110.0070.02816.21
5.6.100.0070.04716.36
5.6.90.0090.04016.27
5.6.80.0070.04015.80
5.6.70.0120.03715.82
5.6.60.0030.03215.82
5.6.50.0020.04315.87
5.6.40.0070.04115.92
5.6.30.0110.03615.94
5.6.20.0080.03315.84
5.6.10.0070.04215.82
5.6.00.0050.04415.92
5.5.380.0000.00711.25
5.5.370.0060.00011.36
5.5.360.0090.00311.12
5.5.350.0150.02515.70
5.5.340.0020.02714.53
5.5.330.0080.04014.42
5.5.320.0070.04214.55
5.5.310.0020.02314.55
5.5.300.0070.04314.44
5.5.290.0030.03914.51
5.5.280.0080.02614.57
5.5.270.0100.02814.63
5.5.260.0060.04314.64
5.5.250.0030.03614.21
5.5.240.0070.04214.11
5.5.230.0050.04214.28
5.5.220.0010.04814.18
5.5.210.0070.04114.20
5.5.200.0040.03414.26
5.5.190.0090.03814.15
5.5.180.0080.02814.22
5.5.170.0060.00310.91
5.5.160.0080.02314.14
5.5.150.0130.03514.16
5.5.140.0080.03614.25
5.5.130.0100.03514.13
5.5.120.0030.03714.13
5.5.110.0050.04214.27
5.5.100.0060.04314.29
5.5.90.0050.04014.14
5.5.80.0070.04014.04
5.5.70.0020.04214.15
5.5.60.0070.03814.15
5.5.50.0080.01714.22
5.5.40.0050.02514.07
5.5.30.0060.04214.04
5.5.20.0100.02813.93
5.5.10.0080.03514.24
5.5.00.0020.03114.25
5.4.450.0070.03315.23
5.4.440.0070.04215.15
5.4.430.0070.02715.17
5.4.420.0020.02915.18
5.4.410.0050.04015.18
5.4.400.0000.03114.86
5.4.390.0080.03215.01
5.4.380.0060.03815.07
5.4.370.0090.03815.08
5.4.360.0030.04314.94
5.4.350.0100.04015.06
5.4.340.0040.04214.95
5.4.330.0030.00310.69
5.4.320.0070.03014.88
5.4.310.0060.02815.10
5.4.300.0050.03715.03
5.4.290.0060.03314.98
5.4.280.0050.04514.94
5.4.270.0050.04114.99
5.4.260.0070.04015.04
5.4.250.0100.03915.08
5.4.240.0020.03215.04
5.4.230.0070.03614.94
5.4.220.0020.02514.83
5.4.210.0020.02614.86
5.4.200.0050.04115.07
5.4.190.0050.03815.01
5.4.180.0080.04014.97
5.4.170.0070.03315.02
5.4.160.0050.03814.91
5.4.150.0070.02314.89
5.4.140.0060.04013.71
5.4.130.0050.03813.82
5.4.120.0090.03513.53
5.4.110.0070.02213.66
5.4.100.0020.03013.69
5.4.90.0090.02713.69
5.4.80.0030.03013.57
5.4.70.0070.03713.83
5.4.60.0050.02513.79
5.4.50.0100.02713.57
5.4.40.0030.02013.80
5.4.30.0030.04113.76
5.4.20.0080.01613.74
5.4.10.0080.03713.67
5.4.00.0080.03113.46
5.3.290.0030.02812.66
5.3.280.0050.02312.62
5.3.270.0030.04412.61
5.3.260.0070.03912.60
5.3.250.0060.03212.63
5.3.240.0060.03012.60
5.3.230.0080.03912.52
5.3.220.0050.03512.49
5.3.210.0020.03312.39
5.3.200.0060.03812.50
5.3.190.0070.04212.36
5.3.180.0050.04012.61
5.3.170.0080.03712.58
5.3.160.0020.03812.37
5.3.150.0050.03312.57
5.3.140.0030.02412.48
5.3.130.0080.03812.58
5.3.120.0050.04212.59
5.3.110.0090.02312.66
5.3.100.0030.02912.28
5.3.90.0070.02512.15
5.3.80.0050.03512.12
5.3.70.0110.03512.19
5.3.60.0120.03512.36
5.3.50.0070.02312.14
5.3.40.0050.03812.06
5.3.30.0080.03612.23
5.3.20.0080.02311.96
5.3.10.0050.02911.99
5.3.00.0080.03111.98
5.2.170.0050.03210.58
5.2.160.0080.03010.69
5.2.150.0080.03010.65
5.2.140.0040.02010.76
5.2.130.0060.03210.63
5.2.120.0030.03610.64
5.2.110.0020.02510.62
5.2.100.0050.02310.68
5.2.90.0070.03110.64
5.2.80.0030.03010.63
5.2.70.0000.02810.58
5.2.60.0030.02010.61
5.2.50.0060.03110.60
5.2.40.0030.02510.62
5.2.30.0020.02010.61
5.2.20.0030.01810.62
5.2.10.0030.01710.49
5.2.00.0020.01910.37
5.1.60.0030.01610.08
5.1.50.0040.01810.08
5.1.40.0050.01810.12
5.1.30.0050.02910.23
5.1.20.0030.02010.29
5.1.10.0020.03410.15
5.1.00.0030.03110.23
5.0.50.0000.0189.44
5.0.40.0020.0249.44
5.0.30.0010.0209.44
5.0.20.0030.0219.44
5.0.10.0080.0169.44
5.0.00.0020.0249.44
4.4.90.0020.0159.44
4.4.80.0040.0179.44
4.4.70.0020.0109.44
4.4.60.0020.0109.44
4.4.50.0010.0089.44
4.4.40.0030.0259.44
4.4.30.0010.0139.44
4.4.20.0020.0159.44
4.4.10.0030.0139.44
4.4.00.0030.0289.44
4.3.110.0020.0129.44
4.3.100.0040.0179.44
4.3.90.0050.0189.44
4.3.80.0020.0209.44
4.3.70.0020.0199.44
4.3.60.0000.0209.44
4.3.50.0030.0209.44
4.3.40.0030.0279.44
4.3.30.0050.0179.44
4.3.20.0030.0209.44
4.3.10.0020.0209.44
4.3.00.0020.0219.44

preferences:
43.61 ms | 401 KiB | 5 Q