3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __construct() { return $this; } } class init { public function __construct(test $test) { return $this; } } $init = new init(new test()); var_dump($init);

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.0140.00416.50
8.3.60.0130.01018.31
8.3.50.0140.00522.05
8.3.40.0040.01118.52
8.3.30.0070.00719.27
8.3.20.0000.00820.02
8.3.10.0030.00623.39
8.3.00.0080.00019.00
8.2.180.0100.01018.29
8.2.170.0040.01122.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0070.00022.23
8.2.110.0070.00320.38
8.2.100.0110.00018.03
8.2.90.0000.00719.05
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0030.00617.88
8.2.50.0080.00018.07
8.2.40.0030.00519.76
8.2.30.0040.00417.99
8.2.20.0070.00017.54
8.2.10.0040.00417.90
8.2.00.0040.00417.52
8.1.280.0110.00425.92
8.1.270.0030.00522.02
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00019.03
8.1.230.0030.00719.14
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0040.00418.52
8.1.160.0080.00022.01
8.1.150.0000.00718.73
8.1.140.0050.00217.43
8.1.130.0040.00417.82
8.1.120.0020.00517.45
8.1.110.0000.00817.28
8.1.100.0000.00717.31
8.1.90.0000.00717.39
8.1.80.0050.00217.30
8.1.70.0000.00717.37
8.1.60.0030.00617.59
8.1.50.0000.00817.51
8.1.40.0090.00017.49
8.1.30.0040.00417.50
8.1.20.0040.00417.65
8.1.10.0000.00717.46
8.1.00.0070.00017.30
8.0.300.0060.00318.77
8.0.290.0050.00316.61
8.0.280.0050.00218.25
8.0.270.0000.00817.13
8.0.260.0080.00017.27
8.0.250.0030.00316.92
8.0.240.0040.00416.99
8.0.230.0000.00716.82
8.0.220.0030.00316.75
8.0.210.0070.00016.76
8.0.200.0030.00316.94
8.0.190.0070.00316.91
8.0.180.0040.00416.86
8.0.170.0060.00316.84
8.0.160.0040.00416.89
8.0.150.0000.00716.86
8.0.140.0060.00316.80
8.0.130.0030.00313.28
8.0.120.0070.00016.82
8.0.110.0080.00016.82
8.0.100.0040.00416.99
8.0.90.0040.00417.00
8.0.80.0060.00916.82
8.0.70.0040.00416.94
8.0.60.0000.00716.98
8.0.50.0000.00716.80
8.0.30.0110.01217.02
8.0.20.0170.00417.40
8.0.10.0000.00816.88
8.0.00.0090.00916.82
7.4.330.0000.00515.00
7.4.320.0060.00016.36
7.4.300.0060.00016.40
7.4.290.0030.00316.58
7.4.280.0030.00616.39
7.4.270.0030.00316.61
7.4.260.0050.00216.38
7.4.250.0000.00716.46
7.4.240.0000.00716.50
7.4.230.0030.00316.62
7.4.220.0070.01016.56
7.4.210.0110.00316.55
7.4.200.0070.00016.50
7.4.160.0060.00916.29
7.4.150.0070.01017.40
7.4.140.0080.00817.86
7.4.130.0110.00716.40
7.4.120.0110.00616.52
7.4.110.0080.00816.57
7.4.100.0090.01216.25
7.4.90.0060.01116.45
7.4.80.0110.01019.39
7.4.70.0080.00816.48
7.4.60.0060.00916.37
7.4.50.0000.00516.37
7.4.40.0140.00316.47
7.4.30.0040.01216.47
7.4.10.0090.00514.87
7.4.00.0050.01314.98
7.3.330.0000.00613.18
7.3.320.0050.00013.25
7.3.310.0000.00716.22
7.3.300.0000.00716.25
7.3.290.0050.01016.20
7.3.280.0070.01016.25
7.3.270.0100.00717.40
7.3.260.0100.01316.43
7.3.250.0070.01016.43
7.3.240.0140.00716.27
7.3.230.0030.01316.39
7.3.210.0150.00416.19
7.3.200.0060.01219.39
7.3.190.0040.01416.23
7.3.180.0100.00716.27
7.3.170.0100.00716.27
7.3.160.0100.00716.37
7.3.130.0080.00914.72
7.3.120.0070.01114.84
7.3.110.0090.00914.65
7.3.100.0030.01014.59
7.3.90.0080.00514.89
7.3.80.0060.00614.64
7.3.70.0050.01014.68
7.3.60.0060.00914.63
7.3.50.0040.01014.56
7.3.40.0070.00514.69
7.3.30.0050.00814.61
7.3.20.0050.00816.62
7.3.10.0080.00516.66
7.3.00.0050.00716.68
7.2.330.0090.00916.50
7.2.320.0090.00616.71
7.2.310.0080.00816.65
7.2.300.0100.00716.72
7.2.290.0140.00316.75
7.2.260.0090.00914.95
7.2.250.0070.01215.13
7.2.240.0070.00815.01
7.2.230.0050.00915.05
7.2.220.0090.00715.03
7.2.210.0080.00714.86
7.2.200.0040.00814.92
7.2.190.0070.01014.74
7.2.180.0040.01214.87
7.2.170.0070.00814.88
7.2.160.0110.00314.95
7.2.150.0050.01016.92
7.2.140.0070.00516.79
7.2.130.0090.00716.79
7.2.120.0100.00716.79
7.2.110.0070.00716.71
7.2.100.0060.00816.66
7.2.90.0060.00816.68
7.2.80.0090.00316.61
7.2.70.0090.00516.65
7.2.60.0100.00517.02
7.2.50.0100.00716.93
7.2.40.0120.00316.83
7.2.30.0050.00916.75
7.2.20.0020.01016.93
7.2.10.0060.00716.75
7.2.00.0090.00616.69
7.1.330.0070.00815.77
7.1.320.0050.01215.70
7.1.310.0070.00615.67
7.1.300.0050.01115.68
7.1.290.0060.00615.61
7.1.280.0060.00515.75
7.1.270.0060.00615.73
7.1.260.0030.01115.57
7.1.250.0050.00615.56
7.1.240.0050.00815.68
7.1.230.0050.00815.76
7.1.220.0080.00415.75
7.1.210.0080.00815.63
7.1.200.0100.00415.62
7.1.190.0060.00715.71
7.1.180.0090.00715.62
7.1.170.0060.00815.65
7.1.160.0110.00315.81
7.1.150.0040.01015.71
7.1.140.0040.00915.77
7.1.130.0120.00215.80
7.1.120.0090.00615.76
7.1.110.0050.00815.83
7.1.100.0070.00616.25
7.1.90.0060.00815.71
7.1.80.0070.00615.81
7.1.70.0070.00716.15
7.1.60.0070.00416.02
7.1.50.0030.01015.98
7.1.40.0090.00515.72
7.1.30.0060.00615.77
7.1.20.0050.01015.63
7.1.10.0060.00615.63
7.1.00.0040.02717.38
7.0.330.0060.00615.41
7.0.320.0060.00615.36
7.0.310.0070.00815.35
7.0.300.0050.01015.27
7.0.290.0080.00715.33
7.0.280.0050.00815.24
7.0.270.0060.00815.29
7.0.260.0060.00715.34
7.0.250.0030.00815.36
7.0.240.0070.00415.25
7.0.230.0040.00715.20
7.0.220.0080.00715.28
7.0.210.0030.00715.34
7.0.200.0050.01015.63
7.0.190.0030.00915.24
7.0.180.0100.00115.34
7.0.170.0050.00815.41
7.0.160.0070.00515.38
7.0.150.0030.01015.12
7.0.140.0020.02716.96
7.0.130.0040.00815.37
7.0.120.0060.00715.34
7.0.110.0070.00415.33
7.0.100.0070.00415.50
7.0.90.0040.00715.34
7.0.80.0040.00715.40
7.0.70.0030.01015.13
7.0.60.0070.02616.53
7.0.50.0030.02915.93
7.0.40.0070.02515.06
7.0.30.0130.02715.19
7.0.20.0110.02515.17
7.0.10.0050.01715.01
7.0.00.0050.02515.07
5.6.400.0000.01014.15
5.6.390.0070.00814.24
5.6.380.0080.00414.42
5.6.370.0080.00714.41
5.6.360.0040.01014.60
5.6.350.0060.00714.49
5.6.340.0080.00514.35
5.6.330.0110.00314.28
5.6.320.0080.00714.31
5.6.310.0080.00714.38
5.6.300.0080.00514.50
5.6.290.0070.00814.36
5.6.280.0060.02316.09
5.6.270.0080.00414.32
5.6.260.0070.00714.26
5.6.250.0070.00814.39
5.6.240.0090.00714.27
5.6.230.0060.00914.32
5.6.220.0050.00714.20
5.6.210.0100.02315.79
5.6.200.0080.02215.31
5.6.190.0060.01616.03
5.6.180.0160.01915.71
5.6.170.0110.01515.85
5.6.160.0050.03015.86
5.6.150.0080.02215.15
5.6.140.0080.01515.23
5.6.130.0060.02115.31
5.6.120.0070.02515.91
5.6.110.0080.01715.91
5.6.100.0050.02415.94
5.6.90.0100.02415.98
5.6.80.0060.02515.73
5.6.70.0070.00814.08
5.6.60.0080.00714.15
5.6.50.0050.00614.20
5.6.40.0070.00714.09
5.6.30.0050.00714.09
5.6.20.0090.00414.27
5.6.10.0070.00914.20
5.6.00.0100.00314.10
5.5.380.0070.00813.07
5.5.370.0110.00313.13
5.5.360.0040.00813.26
5.5.350.0080.02614.96
5.5.340.0070.02014.40
5.5.330.0070.01714.89
5.5.320.0140.02414.84
5.5.310.0090.01415.10
5.5.300.0050.01414.53
5.5.290.0060.01514.40
5.5.280.0060.01715.21
5.5.270.0090.02215.22
5.5.260.0080.02215.03
5.5.250.0080.02414.98
5.5.240.0070.01514.90
5.5.230.0040.00813.19
5.5.220.0060.00913.01
5.5.210.0060.00913.02
5.5.200.0040.00713.06
5.5.190.0080.00813.09
5.5.180.0080.00813.09
5.5.170.0060.00714.31
5.5.160.0040.00713.08
5.5.150.0070.00713.02
5.5.140.0030.01112.96
5.5.130.0070.00513.23
5.5.120.0060.00413.09
5.5.110.0050.00812.89
5.5.100.0100.00412.91
5.5.90.0060.00713.06
5.5.80.0070.00413.13
5.5.70.0080.00513.06
5.5.60.0060.00813.04
5.5.50.0050.00812.91
5.5.40.0030.00913.13
5.5.30.0070.00513.22
5.5.20.0040.00813.06
5.5.10.0050.01013.00
5.5.00.0070.00513.14
5.4.450.0260.01913.13
5.4.440.0280.01713.04
5.4.430.0240.01812.94
5.4.420.0210.00513.13
5.4.410.0190.00513.05
5.4.400.0210.00413.03
5.4.390.0180.00412.94
5.4.380.0220.00412.97
5.4.370.0200.00312.93
5.4.360.0190.00512.97
5.4.350.0200.00613.07
5.4.340.0070.01511.19
5.4.330.0050.00811.01
5.4.320.0040.01611.29
5.4.310.0050.01411.41
5.4.300.0030.01711.34
5.4.290.0070.01211.34
5.4.280.0050.01511.19
5.4.270.0090.01311.36
5.4.260.0050.01711.24
5.4.250.0040.01611.29
5.4.240.0020.01711.10
5.4.230.0050.01411.39
5.4.220.0080.01111.16
5.4.210.0080.01111.11
5.4.200.0060.01311.30
5.4.190.0070.01311.33
5.4.180.0080.01211.30
5.4.170.0070.01211.28
5.4.160.0050.01411.15
5.4.150.0080.01111.22
5.4.140.0060.01411.13
5.4.130.0040.01411.26
5.4.120.0040.01311.35
5.4.110.0060.01211.15
5.4.100.0060.01211.18
5.4.90.0040.01511.29
5.4.80.0070.01211.11
5.4.70.0060.01611.24
5.4.60.0040.01611.16
5.4.50.0050.01711.14
5.4.40.0060.01411.28
5.4.30.0050.01211.13
5.4.20.0070.01211.22
5.4.10.0040.01511.20
5.4.00.0030.01711.12
5.3.290.0090.02011.76
5.3.280.0050.02011.62
5.3.270.0070.01911.69
5.3.260.0080.02811.54
5.3.250.0060.02811.48
5.3.240.0040.02211.59
5.3.230.0060.02311.61
5.3.220.0040.02411.54
5.3.210.0050.02411.53
5.3.200.0080.01811.49
5.3.190.0040.02211.47
5.3.180.0070.02111.62
5.3.170.0090.02011.61
5.3.160.0040.03311.52
5.3.150.0070.02511.61
5.3.140.0100.01811.49
5.3.130.0050.02411.46
5.3.120.0040.02411.48
5.3.110.0070.02211.58
5.3.100.0090.01911.36
5.3.90.0060.02111.33
5.3.80.0030.02311.27
5.3.70.0060.02311.32
5.3.60.0090.01911.36
5.3.50.0050.02211.22
5.3.40.0070.02211.25
5.3.30.0050.02511.23
5.3.20.0100.01711.20
5.3.10.0070.01911.02
5.3.00.0060.02010.93
5.2.170.0050.0199.53
5.2.160.0060.0179.53
5.2.150.0050.0219.53
5.2.140.0050.0189.53
5.2.130.0030.0189.51
5.2.120.0060.0159.51
5.2.110.0040.0199.51
5.2.100.0050.0199.51
5.2.90.0080.0159.51
5.2.80.0040.0179.50
5.2.70.0070.0169.50
5.2.60.0050.0219.48
5.2.50.0060.0189.47
5.2.40.0040.0189.46
5.2.30.0070.0159.44
5.2.20.0050.0179.44
5.2.10.0060.0159.39
5.2.00.0050.0169.32
5.1.60.0060.0158.96
5.1.50.0040.0148.96
5.1.40.0060.0138.95
5.1.30.0040.0189.13
5.1.20.0070.0159.14
5.1.10.0050.0159.00
5.1.00.0030.0189.00
5.0.50.0040.0138.24
5.0.40.0060.0098.17
5.0.30.0060.0168.08
5.0.20.0030.0138.06
5.0.10.0050.0108.05
5.0.00.0060.0188.04
4.4.90.0030.0087.31
4.4.80.0020.0127.30
4.4.70.0020.0127.30
4.4.60.0030.0097.29
4.4.50.0030.0137.30
4.4.40.0040.0147.27
4.4.30.0030.0107.30
4.4.20.0010.0117.34
4.4.10.0050.0097.34
4.4.00.0020.0157.30
4.3.110.0040.0117.25
4.3.100.0030.0097.25
4.3.90.0000.0117.24
4.3.80.0030.0167.21
4.3.70.0040.0077.23
4.3.60.0030.0107.23
4.3.50.0040.0147.23
4.3.40.0030.0127.19
4.3.30.0020.0166.57
4.3.20.0030.0136.56
4.3.10.0030.0106.54
4.3.00.0100.0118.52

preferences:
43.33 ms | 401 KiB | 5 Q