3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public function __construct(&$foo) { } } class Child extends ParentClass { public function __construct() { parent::__construct(getFoo()); } } function getFoo() { return new stdClass; }

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.00716.61
8.3.50.0050.01522.06
8.3.40.0040.01118.58
8.3.30.0070.00718.91
8.3.20.0040.00420.21
8.3.10.0000.00821.60
8.3.00.0040.00419.26
8.2.180.0080.00816.50
8.2.170.0040.01122.96
8.2.160.0160.00020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0100.00326.16
8.2.120.0030.00522.30
8.2.110.0090.00021.02
8.2.100.0080.00417.78
8.2.90.0040.00418.03
8.2.80.0050.00318.09
8.2.70.0000.00917.50
8.2.60.0000.00817.50
8.2.50.0000.00817.55
8.2.40.0030.00619.11
8.2.30.0000.00817.49
8.2.20.0000.00717.54
8.2.10.0030.00517.97
8.2.00.0080.00017.50
8.1.280.0070.00725.92
8.1.270.0030.00522.10
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0070.00320.85
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0000.00718.96
8.1.160.0070.00018.63
8.1.150.0070.00018.50
8.1.140.0030.00617.28
8.1.130.0040.00417.80
8.1.120.0030.00417.33
8.1.110.0000.00717.19
8.1.100.0040.00317.36
8.1.90.0030.00517.33
8.1.80.0000.00717.29
8.1.70.0020.00517.20
8.1.60.0040.00417.36
8.1.50.0030.00617.29
8.1.40.0000.00817.24
8.1.30.0040.00417.43
8.1.20.0060.00317.43
8.1.10.0060.00317.41
8.1.00.0000.00717.31
8.0.300.0000.00719.77
8.0.290.0000.00716.58
8.0.280.0040.00417.77
8.0.270.0040.00417.81
8.0.260.0030.00316.65
8.0.250.0000.00616.77
8.0.240.0040.00416.74
8.0.230.0070.00016.75
8.0.220.0070.00016.73
8.0.210.0070.00016.78
8.0.200.0050.00316.70
8.0.190.0000.00816.73
8.0.180.0020.00516.70
8.0.170.0000.00816.77
8.0.160.0030.00316.74
8.0.150.0030.00316.69
8.0.140.0000.00816.75
8.0.130.0040.00413.14
8.0.120.0040.00416.60
8.0.110.0040.00416.77
8.0.100.0040.00416.73
8.0.90.0080.00016.82
8.0.80.0030.01816.68
8.0.70.0000.00716.65
8.0.60.0040.00416.76
8.0.50.0070.00016.82
8.0.30.0080.01016.71
8.0.20.0040.01417.40
8.0.10.0000.00716.80
8.0.00.0050.01516.54
7.4.330.0000.00515.02
7.4.320.0030.00316.52
7.4.300.0000.00616.35
7.4.290.0000.00716.49
7.4.280.0000.00716.30
7.4.270.0060.00016.27
7.4.260.0040.00416.45
7.4.250.0000.00716.48
7.4.240.0050.00316.39
7.4.230.0030.00316.36
7.4.220.0090.00916.39
7.4.210.0050.00916.39
7.4.200.0040.00416.40
7.4.190.0080.00016.64
7.4.160.0070.01016.55
7.4.150.0130.01317.40
7.4.140.0050.01217.86
7.4.130.0060.01016.46
7.4.120.0110.01016.34
7.4.110.0100.01316.59
7.4.100.0030.01316.09
7.4.90.0030.01316.29
7.4.80.0130.00319.39
7.4.70.0120.00616.39
7.4.60.0040.01316.28
7.4.50.0060.00016.20
7.4.40.0090.00922.77
7.4.30.0080.00816.45
7.4.10.0070.01114.67
7.4.00.0050.01114.77
7.3.330.0000.00513.24
7.3.320.0000.00613.20
7.3.310.0030.00316.06
7.3.300.0030.00316.18
7.3.290.0070.00716.18
7.3.280.0110.00816.17
7.3.270.0100.00717.40
7.3.260.0030.01716.41
7.3.250.0100.00716.32
7.3.240.0090.01216.18
7.3.230.0110.00616.39
7.3.210.0170.00016.09
7.3.200.0080.01319.39
7.3.190.0130.00716.43
7.3.180.0040.01216.23
7.3.170.0070.01016.53
7.3.160.0080.00816.18
7.3.130.0100.01014.88
7.3.120.0120.00614.57
7.3.110.0100.01014.53
7.3.100.0100.00714.70
7.3.90.0040.01114.37
7.3.80.0060.00614.82
7.3.70.0110.00414.70
7.3.60.0040.01114.73
7.3.50.0030.01014.49
7.3.40.0040.01214.55
7.3.30.0000.01714.65
7.3.20.0060.00616.69
7.3.10.0070.00716.44
7.3.00.0100.00316.55
7.2.330.0140.00316.36
7.2.320.0080.00816.35
7.2.310.0030.01316.24
7.2.300.0030.01316.54
7.2.290.0130.00616.53
7.2.260.0080.00814.62
7.2.250.0130.00314.77
7.2.240.0030.01014.72
7.2.230.0080.01214.66
7.2.220.0100.01015.10
7.2.210.0000.01415.07
7.2.200.0070.00715.04
7.2.190.0030.00714.95
7.2.180.0030.00714.80
7.2.170.0030.01314.96
7.2.160.0000.01014.50
7.2.150.0030.01216.91
7.2.140.0060.00916.68
7.2.130.0030.01316.50
7.2.120.0040.01516.61
7.2.110.0120.00316.71
7.2.100.0030.00716.43
7.2.90.0090.00916.79
7.2.80.0060.00916.70
7.2.70.0120.00316.71
7.2.60.0070.01016.76
7.2.50.0070.00716.61
7.2.40.0090.00316.70
7.2.30.0100.00316.60
7.2.20.0040.01116.48
7.2.10.0080.00416.46
7.2.00.0070.00918.02
7.1.330.0040.00815.39
7.1.320.0130.00315.32
7.1.310.0070.00715.50
7.1.300.0000.01015.41
7.1.290.0000.01415.64
7.1.280.0100.00715.61
7.1.270.0040.00715.57
7.1.260.0140.00015.40
7.1.250.0080.00415.42
7.1.240.0000.01115.50
7.1.230.0070.00715.61
7.1.220.0050.00515.71
7.1.210.0030.00715.54
7.1.200.0080.00415.63
7.1.190.0060.00915.66
7.1.180.0030.01315.43
7.1.170.0090.00615.51
7.1.160.0030.00915.37
7.1.150.0030.01315.50
7.1.140.0070.00615.70
7.1.130.0030.00515.61
7.1.120.0060.00315.46
7.1.110.0030.00715.57
7.1.100.0120.00216.65
7.1.90.0000.01415.47
7.1.80.0030.01315.57
7.1.70.0050.00716.23
7.1.60.0120.00717.44
7.1.50.0080.00916.16
7.1.40.0060.00915.55
7.1.30.0070.01015.58
7.1.20.0000.01315.50
7.1.10.0000.01515.51
7.1.00.0060.03819.02
7.0.330.0070.00714.96
7.0.320.0060.00615.09
7.0.310.0080.00415.23
7.0.300.0050.00515.33
7.0.290.0060.00615.42
7.0.280.0030.00715.18
7.0.270.0050.00215.46
7.0.260.0030.01015.18
7.0.250.0060.00614.93
7.0.240.0080.00315.27
7.0.230.0030.01015.18
7.0.220.0060.00315.46
7.0.210.0000.01115.32
7.0.200.0070.00715.78
7.0.190.0110.00315.28
7.0.180.0000.01414.98
7.0.170.0030.01315.29
7.0.160.0080.00415.01
7.0.150.0070.00714.93
7.0.140.0070.04018.69
7.0.130.0030.01215.14
7.0.120.0100.02318.59
7.0.110.0090.04318.63
7.0.100.0080.04418.53
7.0.90.0070.04718.66
7.0.80.0050.04618.57
7.0.70.0040.04418.63
7.0.60.0070.04218.57
7.0.50.0080.02518.84
7.0.40.0020.04516.61
7.0.30.0080.04316.60
7.0.20.0040.02916.64
7.0.10.0010.04816.59
7.0.00.0020.03316.64
5.6.400.0070.00713.94
5.6.390.0100.00614.27
5.6.380.0070.01014.08
5.6.370.0000.00814.36
5.6.360.0060.00314.03
5.6.350.0000.01114.33
5.6.340.0030.00714.03
5.6.330.0100.00314.25
5.6.320.0030.00914.04
5.6.310.0060.00314.34
5.6.300.0120.00414.06
5.6.290.0000.01614.44
5.6.280.0040.04017.57
5.6.270.0040.03617.79
5.6.260.0050.04317.73
5.6.250.0060.04817.49
5.6.240.0020.04317.58
5.6.230.0050.05317.40
5.6.220.0120.02717.52
5.6.210.0020.03417.43
5.6.200.0070.03517.57
5.6.190.0050.04317.47
5.6.180.0100.04117.37
5.6.170.0070.02517.47
5.6.160.0030.03817.50
5.6.150.0030.03217.68
5.6.140.0120.04217.56
5.6.130.0080.04317.64
5.6.120.0070.03417.59
5.6.110.0050.03317.45
5.6.100.0060.02517.63
5.6.90.0040.04517.55
5.6.80.0020.02517.14
5.6.70.0060.02717.00
5.6.60.0020.02917.18
5.6.50.0020.04517.25
5.6.40.0060.03817.20
5.6.30.0060.02317.17
5.6.20.0000.04817.06
5.6.10.0090.02917.11
5.6.00.0080.04017.10
5.5.380.0050.02315.82
5.5.370.0080.02315.90
5.5.360.0040.04515.88
5.5.350.0070.02315.82
5.5.340.0030.03815.98
5.5.330.0020.03016.16
5.5.320.0050.03416.26
5.5.310.0020.03016.09
5.5.300.0010.04016.07
5.5.290.0050.04416.10
5.5.280.0100.04016.14
5.5.270.0060.04116.00
5.5.260.0050.04416.03
5.5.250.0090.03715.85
5.5.240.0050.03515.71
5.5.230.0020.04315.76
5.5.220.0030.03215.79
5.5.210.0050.02515.64
5.5.200.0080.03515.72
5.5.190.0050.04315.77
5.5.180.0020.04515.76
5.5.170.0070.00313.90
5.5.160.0040.02915.69
5.5.150.0050.02315.75
5.5.140.0040.03715.69
5.5.130.0040.04615.65
5.5.120.0040.04015.62
5.5.110.0030.04515.72
5.5.100.0050.02415.67
5.5.90.0020.04315.57
5.5.80.0040.04315.67
5.5.70.0020.03815.61
5.5.60.0080.03715.49
5.5.50.0000.04515.60
5.5.40.0070.02015.65
5.5.30.0030.02215.69
5.5.20.0030.03315.55
5.5.10.0030.02815.47
5.5.00.0020.04515.40
5.4.450.0050.04216.41
5.4.440.0050.04216.36
5.4.430.0020.02416.33
5.4.420.0020.02916.41
5.4.410.0050.03816.26
5.4.400.0030.04016.19
5.4.390.0030.04216.08
5.4.380.0060.03916.17
5.4.370.0050.03516.17
5.4.360.0030.02316.08
5.4.350.0080.03316.25
5.4.340.0010.04316.25
5.4.330.0040.00713.21
5.4.320.0040.02616.09
5.4.310.0060.03716.13
5.4.300.0050.02316.17
5.4.290.0020.04216.15
5.4.280.0050.04416.07
5.4.270.0030.03916.05
5.4.260.0050.03016.23
5.4.250.0030.03716.08
5.4.240.0050.02216.08
5.4.230.0050.03816.07
5.4.220.0020.04216.23
5.4.210.0100.02516.07
5.4.200.0020.03716.24
5.4.190.0030.03016.16
5.4.180.0100.03516.14
5.4.170.0050.03816.15
5.4.160.0090.03616.07
5.4.150.0020.03416.06
5.4.140.0090.03814.86
5.4.130.0070.02214.81
5.4.120.0030.04014.89
5.4.110.0080.03814.88
5.4.100.0050.02314.93
5.4.90.0050.04014.89
5.4.80.0020.04514.89
5.4.70.0080.03214.88
5.4.60.0040.03714.83
5.4.50.0040.02514.78
5.4.40.0030.04014.86
5.4.30.0020.03914.89
5.4.20.0020.03014.80
5.4.10.0000.02714.86
5.4.00.0000.02314.55
5.3.290.0050.04013.93
5.3.280.0050.03813.91
5.3.270.0030.04213.92
5.3.260.0030.04014.02
5.3.250.0000.02113.98
5.3.240.0040.03413.83
5.3.230.0050.04113.90
5.3.220.0050.02713.95
5.3.210.0050.04013.88
5.3.200.0090.03413.90
5.3.190.0030.04013.95
5.3.180.0000.02514.00
5.3.170.0050.03313.88
5.3.160.0020.04313.92
5.3.150.0020.03713.87
5.3.140.0080.03313.87
5.3.130.0030.02413.89
5.3.120.0020.02013.94
5.3.110.0050.02013.95
5.3.100.0010.02113.74
5.3.90.0010.02113.59
5.3.80.0020.02313.63
5.3.70.0050.02013.62
5.3.60.0020.03913.65
5.3.50.0040.01713.57
5.3.40.0030.02213.57
5.3.30.0020.03913.56
5.3.20.0020.02213.52
5.3.10.0050.03613.43
5.3.00.0020.02213.42
5.2.170.0030.02711.28
5.2.160.0000.05311.15
5.2.150.0000.03011.13
5.2.140.0000.03011.13
5.2.130.0070.05011.10
5.2.120.0030.06011.25
5.2.110.0000.05711.11
5.2.100.0000.06011.24
5.2.90.0000.06011.18
5.2.80.0030.05711.11
5.2.70.0030.05711.23
5.2.60.0000.02711.19
5.2.50.0030.06010.98
5.2.40.0000.05311.00
5.2.30.0070.02010.97
5.2.20.0000.04711.19
5.2.10.0000.05710.86
5.2.00.0000.03010.80
5.1.60.0000.04310.00
5.1.50.0030.0209.97
5.1.40.0030.02010.23
5.1.30.0000.02310.35
5.1.20.0000.05010.37
5.1.10.0000.04710.25
5.1.00.0030.05010.04
5.0.50.0030.0439.48
5.0.40.0030.0179.48
5.0.30.0030.0609.48
5.0.20.0000.0239.48
5.0.10.0030.0279.48
5.0.00.0000.0309.48
4.4.90.0000.0379.48
4.4.80.0070.0239.48
4.4.70.0000.0309.48
4.4.60.0000.0279.48
4.4.50.0000.0339.48
4.4.40.0000.0239.48
4.4.30.0000.0239.48
4.4.20.0030.0309.48
4.4.10.0000.0309.48
4.4.00.0000.0539.48
4.3.110.0000.0179.48
4.3.100.0000.0309.48
4.3.90.0000.0239.48
4.3.80.0000.0509.48
4.3.70.0000.0239.48
4.3.60.0000.0339.48
4.3.50.0000.0279.48
4.3.40.0000.0439.48
4.3.30.0000.0179.48
4.3.20.0000.0239.48
4.3.10.0000.0309.48
4.3.00.0000.0179.48

preferences:
44.29 ms | 401 KiB | 5 Q