3v4l.org

run code in 300+ PHP versions simultaneously
<?php class helloWorld { const ONE = 1; public $array = array( 'VALUE FIRST', 'VALUE SECOND', 'VALUE THIRD', ); public function getShit () { $this->array[self::ONE] = 'hugo'; return $this->array; } } $hello = new helloWorld(); $hello->array[1] = 'sas'; print_r($hello->getShit());

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.0160.00016.50
8.3.50.0070.01221.97
8.3.40.0050.00918.93
8.3.30.0070.00719.11
8.3.20.0060.00320.21
8.3.10.0060.00320.48
8.3.00.0030.00519.25
8.2.180.0070.01116.63
8.2.170.0100.00622.96
8.2.160.0070.00720.44
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0100.00022.09
8.2.110.0000.00820.52
8.2.100.0000.01218.03
8.2.90.0040.00719.02
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0090.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00818.06
8.2.30.0000.00719.31
8.2.20.0060.00317.64
8.2.10.0040.00418.09
8.2.00.0000.00717.58
8.1.280.0030.01425.92
8.1.270.0000.00822.08
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00623.91
8.1.230.0040.00719.08
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0030.00617.25
8.1.190.0080.00017.23
8.1.180.0060.00318.10
8.1.170.0000.00818.27
8.1.160.0080.00021.81
8.1.150.0080.00018.69
8.1.140.0040.00417.38
8.1.130.0000.00717.80
8.1.120.0070.00017.35
8.1.110.0000.00717.41
8.1.100.0030.00517.41
8.1.90.0000.00817.29
8.1.80.0040.00417.36
8.1.70.0070.00017.36
8.1.60.0000.00817.46
8.1.50.0000.00917.52
8.1.40.0050.00317.49
8.1.30.0000.00817.50
8.1.20.0000.00717.71
8.1.10.0040.00417.39
8.1.00.0030.00517.43
8.0.300.0050.00318.77
8.0.290.0070.00016.63
8.0.280.0000.00818.36
8.0.270.0070.00017.19
8.0.260.0000.00617.25
8.0.250.0030.00316.86
8.0.240.0040.00416.80
8.0.230.0070.00016.84
8.0.220.0000.00716.79
8.0.210.0030.00516.71
8.0.200.0030.00316.89
8.0.190.0040.00416.79
8.0.180.0070.00016.75
8.0.170.0000.00716.77
8.0.160.0070.00016.77
8.0.150.0000.00716.77
8.0.140.0040.00416.73
8.0.130.0000.00513.18
8.0.120.0050.00316.71
8.0.110.0000.00716.82
8.0.100.0040.00416.60
8.0.90.0000.00716.88
8.0.80.0090.00616.81
8.0.70.0080.00016.87
8.0.60.0050.00316.82
8.0.50.0040.00416.79
8.0.30.0100.01017.03
8.0.20.0090.01017.40
8.0.10.0000.00817.01
8.0.00.0090.00816.54
7.4.330.0050.00015.09
7.4.320.0040.00416.54
7.4.300.0000.00616.60
7.4.290.0070.00016.60
7.4.280.0060.00316.47
7.4.270.0000.00716.37
7.4.260.0030.00616.52
7.4.250.0000.00716.55
7.4.240.0000.00716.54
7.4.230.0030.00316.62
7.4.220.0090.00916.43
7.4.210.0100.01016.46
7.4.200.0000.00716.38
7.4.160.0130.02016.29
7.4.150.0070.01117.40
7.4.140.0130.00417.86
7.4.130.0100.00716.38
7.4.120.0150.00516.49
7.4.110.0100.00716.33
7.4.100.0110.00516.49
7.4.90.0110.00616.46
7.4.80.0070.01016.62
7.4.70.0080.00816.44
7.4.60.0070.01016.52
7.4.50.0050.00316.38
7.4.40.0030.01316.46
7.4.30.0130.01016.53
7.4.00.0100.00314.85
7.3.330.0050.00013.31
7.3.320.0030.00313.32
7.3.310.0040.00416.40
7.3.300.0030.00316.32
7.3.290.0040.01116.38
7.3.280.0080.01216.31
7.3.270.0140.00317.40
7.3.260.0070.01116.29
7.3.250.0050.01416.29
7.3.240.0030.01416.54
7.3.230.0090.00916.39
7.3.210.0060.01016.25
7.3.200.0150.00319.39
7.3.190.0100.01816.54
7.3.180.0100.01016.56
7.3.170.0040.01116.27
7.3.160.0040.01116.47
7.3.00.0130.00016.61
7.2.330.0070.01016.32
7.2.320.0100.00716.74
7.2.310.0060.01616.32
7.2.300.0090.00916.64
7.2.290.0120.00816.56
7.2.130.0040.01116.96
7.2.120.0060.00916.91
7.2.110.0040.01116.80
7.2.100.0080.00617.04
7.2.90.0120.00617.02
7.2.80.0070.00316.43
7.2.70.0070.01016.89
7.2.60.0000.01516.99
7.2.50.0120.00416.60
7.2.40.0110.00416.98
7.2.30.0100.00716.90
7.2.20.0030.01216.82
7.2.10.0090.00016.88
7.2.00.0050.00918.09
7.1.250.0060.00315.81
7.1.240.0000.01715.54
7.1.230.0030.00915.55
7.1.220.0080.01215.78
7.1.210.0040.00815.55
7.1.200.0030.00715.86
7.1.190.0070.00315.75
7.1.180.0030.00715.70
7.1.170.0090.00315.60
7.1.160.0070.00315.79
7.1.150.0060.00615.75
7.1.140.0110.00415.50
7.1.130.0030.00715.74
7.1.120.0060.00915.77
7.1.110.0120.00315.84
7.1.100.0020.01217.00
7.1.90.0040.01515.63
7.1.80.0030.00615.73
7.1.70.0020.00616.40
7.1.60.0070.01017.50
7.1.50.0050.01016.31
7.1.40.0030.01015.75
7.1.30.0060.00915.81
7.1.20.0030.00815.72
7.1.10.0040.01115.53
7.1.00.0040.04018.94
7.0.330.0000.00915.38
7.0.320.0090.00614.94
7.0.310.0060.00614.95
7.0.300.0060.00315.41
7.0.290.0070.00715.09
7.0.280.0100.00715.25
7.0.270.0000.01315.26
7.0.260.0090.00915.26
7.0.250.0050.00515.25
7.0.240.0030.00715.14
7.0.230.0040.01115.16
7.0.220.0040.01115.25
7.0.210.0070.00715.24
7.0.200.0070.00816.04
7.0.190.0030.00715.07
7.0.180.0150.00015.38
7.0.170.0030.00615.18
7.0.160.0080.00415.14
7.0.150.0070.00715.26
7.0.140.0050.03518.65
7.0.130.0070.00715.46
7.0.120.0060.00615.13
7.0.110.0040.00715.16
7.0.100.0060.00615.34
7.0.90.0000.00815.44
7.0.80.0030.00515.31
7.0.70.0090.00314.95
7.0.60.0080.03417.53
7.0.50.0050.02716.71
7.0.40.0050.03716.75
7.0.30.0100.02616.84
7.0.20.0170.03516.62
7.0.10.0150.03016.71
7.0.00.0040.03116.62
5.6.380.0060.00614.35
5.6.370.0000.01014.36
5.6.360.0030.00914.21
5.6.350.0040.00714.64
5.6.340.0130.00314.54
5.6.330.0070.00514.25
5.6.320.0090.00314.13
5.6.310.0060.00914.55
5.6.300.0100.00314.20
5.6.290.0070.00714.48
5.6.280.0020.04217.60
5.6.270.0030.00914.30
5.6.260.0110.00014.22
5.6.250.0080.00314.04
5.6.240.0060.00614.55
5.6.230.0000.01214.43
5.6.220.0030.00814.22
5.6.210.0030.04617.36
5.6.200.0050.04216.34
5.6.190.0110.03117.57
5.6.180.0190.03317.33
5.6.170.0140.02517.38
5.6.160.0030.04317.50
5.6.150.0000.03416.17
5.6.140.0020.02916.23
5.6.130.0120.04016.13
5.6.120.0100.02517.83
5.6.110.0120.04217.50
5.6.100.0030.04917.50
5.6.90.0100.04217.71
5.6.80.0030.04817.30
5.6.70.1900.02017.26
5.6.60.0000.01214.02
5.6.50.0000.01314.04
5.6.40.0030.01014.36
5.6.30.0040.01114.29
5.6.20.0090.00614.18
5.6.10.0080.00414.31
5.6.00.0100.00314.23
5.5.380.0000.00610.97
5.5.370.0050.00511.11
5.5.360.0060.00311.02
5.5.350.0100.03715.80
5.5.340.0030.03814.68
5.5.330.0020.04915.72
5.5.320.0170.02315.88
5.5.310.0180.04015.68
5.5.300.0080.03514.64
5.5.290.0050.02614.54
5.5.280.0030.05016.03
5.5.270.0030.02616.13
5.5.260.0080.04115.98
5.5.250.0040.02315.97
5.5.240.1120.02115.58
5.5.230.0060.00611.24
5.5.220.0040.00811.13
5.5.210.0030.00611.09
5.5.200.0030.00911.16
5.5.190.0060.00610.90
5.5.180.0040.00411.27
5.5.170.0030.00711.20
5.5.160.0000.00911.18
5.5.150.0040.00810.96
5.5.140.0040.00710.96
5.5.130.0030.00611.21
5.5.120.0060.00610.90
5.5.110.0000.00911.20
5.5.100.0060.00310.96
5.5.90.0060.00310.90
5.5.80.0000.00710.98
5.5.70.0000.00711.16
5.5.60.0080.00411.08
5.5.50.0030.00310.90
5.5.40.0070.00311.01
5.5.30.0040.00411.00
5.5.20.0030.00310.90
5.5.10.0040.00410.96
5.5.00.0040.00411.12
5.4.450.0310.03115.26
5.4.440.0230.02815.14
5.4.430.0220.02815.10
5.4.420.0250.03715.26
5.4.410.0170.03115.19
5.4.400.0270.02215.08
5.4.390.0100.03115.06
5.4.380.0130.04314.79
5.4.370.0120.03014.88
5.4.360.0150.02914.70
5.4.350.0270.03414.78
5.4.340.0160.03114.84
5.4.330.0000.01110.90
5.4.320.0050.02211.79
5.4.310.0050.02111.75
5.4.300.0050.02011.70
5.4.290.0050.02111.77
5.4.280.0030.02311.65
5.4.270.0060.01911.65
5.4.260.0050.02011.70
5.4.250.0070.01911.65
5.4.240.0030.02211.65
5.4.230.0030.02211.72
5.4.220.0060.01911.68
5.4.210.0060.01811.69
5.4.200.0040.02111.64
5.4.190.0040.02011.64
5.4.180.0040.02311.67
5.4.170.0060.01811.65
5.4.160.0060.01911.64
5.4.150.0020.02211.72
5.4.140.0050.02111.56
5.4.130.0050.01911.51
5.4.120.0020.02411.46
5.4.110.0050.02211.46
5.4.100.0050.02211.49
5.4.90.0050.02311.46
5.4.80.0070.02111.46
5.4.70.0050.02111.54
5.4.60.0050.02311.49
5.4.50.0070.01911.54
5.4.40.0060.01911.52
5.4.30.0040.02311.47
5.4.20.0060.02011.56
5.4.10.0020.02711.50
5.4.00.0040.03011.31
5.3.290.0040.02211.85
5.3.280.0030.02311.80
5.3.270.0050.02111.81
5.3.260.0050.02211.81
5.3.250.0040.02311.81
5.3.240.0080.01911.81
5.3.230.0050.02511.80
5.3.220.0050.02511.79
5.3.210.0100.01811.79
5.3.200.0040.02811.79
5.3.190.0090.02211.79
5.3.180.0060.02211.79
5.3.170.0030.02211.78
5.3.160.0050.02511.79
5.3.150.0070.01911.79
5.3.140.0060.02311.78
5.3.130.0050.02511.78
5.3.120.0050.02511.78
5.3.110.0060.02111.78
5.3.100.0070.02211.51
5.3.90.0070.02511.50
5.3.80.0050.02211.49
5.3.70.0080.01811.49
5.3.60.0070.02111.48
5.3.50.0060.02311.46
5.3.40.0070.02311.46
5.3.30.0050.02211.44
5.3.20.0060.02011.33
5.3.10.0040.02211.31
5.3.00.0060.02811.31
5.2.170.0100.02210.06
5.2.160.0050.01910.06
5.2.150.0070.01810.06
5.2.140.0040.01910.05
5.2.130.0030.01710.04
5.2.120.0040.01610.04
5.2.110.0040.02110.04
5.2.100.0020.01910.04
5.2.90.0030.01810.04
5.2.80.0060.01610.04
5.2.70.0060.01810.04
5.2.60.0050.01510.01
5.2.50.0030.0189.99
5.2.40.0050.0179.98
5.2.30.0020.0209.97
5.2.20.0030.0189.96
5.2.10.0040.0179.92
5.2.00.0030.0169.85
5.1.60.0060.0159.49
5.1.50.0040.0159.49
5.1.40.0030.0179.48
5.1.30.0040.0149.66
5.1.20.0050.0209.67
5.1.10.0030.0159.53
5.1.00.0020.0189.53
5.0.50.0040.0138.77
5.0.40.0020.0148.70
5.0.30.0020.0178.60
5.0.20.0020.0138.59
5.0.10.0020.0138.58
5.0.00.0030.0168.57
4.4.90.0030.0127.84
4.4.80.0030.0097.83
4.4.70.0020.0127.83
4.4.60.0020.0127.83
4.4.50.0040.0137.83
4.4.40.0010.0157.80
4.4.30.0030.0107.83
4.4.20.0010.0137.87
4.4.10.0020.0147.87
4.4.00.0020.0187.83
4.3.110.0040.0117.78
4.3.100.0020.0137.78
4.3.90.0030.0097.77
4.3.80.0010.0157.74
4.3.70.0030.0107.76
4.3.60.0040.0077.76
4.3.50.0040.0087.76
4.3.40.0020.0137.72
4.3.30.0030.0097.10
4.3.20.0030.0107.09
4.3.10.0040.0127.07
4.3.00.0020.0208.76

preferences:
43.76 ms | 401 KiB | 5 Q