3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myclass { public $arr = array(); public function myfunc(){ $this->arr[1] = 'one'; $this->arr[2] = 'two'; } } $obj = new myclass; print_r($obj->arr);

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.80.0060.00318.18
8.3.70.0070.00716.75
8.3.60.0070.01016.75
8.3.50.0130.00521.92
8.3.40.0120.00318.73
8.3.30.0080.00618.36
8.3.20.0000.00820.39
8.3.10.0040.00423.65
8.3.00.0080.00017.68
8.2.200.0040.00416.50
8.2.190.0040.01116.73
8.2.180.0110.01118.38
8.2.170.0070.00722.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.94
8.2.110.0030.00622.25
8.2.100.0040.00817.59
8.2.90.0100.00017.75
8.2.80.0040.00418.70
8.2.70.0040.00417.50
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0060.00318.22
8.2.30.0000.00817.92
8.2.20.0000.00717.73
8.2.10.0000.00817.99
8.2.00.0040.00417.93
8.1.290.0090.00030.84
8.1.280.0040.01125.92
8.1.270.0090.00623.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00018.67
8.1.230.0070.00417.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0050.00318.43
8.1.160.0040.00418.84
8.1.150.0040.00418.70
8.1.140.0000.00720.89
8.1.130.0040.00417.51
8.1.120.0070.00017.37
8.1.110.0040.00417.33
8.1.100.0000.00717.36
8.1.90.0000.00717.43
8.1.80.0000.00717.32
8.1.70.0030.00317.29
8.1.60.0000.00717.42
8.1.50.0080.00017.51
8.1.40.0000.00817.37
8.1.30.0000.00817.59
8.1.20.0040.00417.56
8.1.10.0000.00817.50
8.1.00.0040.00417.33
8.0.300.0080.00018.77
8.0.290.0060.00316.59
8.0.280.0040.00418.29
8.0.270.0030.00316.75
8.0.260.0000.00617.22
8.0.250.0080.00016.86
8.0.240.0000.00616.95
8.0.230.0040.00416.90
8.0.220.0030.00316.76
8.0.210.0000.00716.71
8.0.200.0000.00716.96
8.0.190.0040.00416.85
8.0.180.0070.00016.85
8.0.170.0030.00616.69
8.0.160.0000.00716.90
8.0.150.0070.00016.76
8.0.140.0000.00716.87
8.0.130.0050.00013.25
8.0.120.0080.00016.82
8.0.110.0040.00416.77
8.0.100.0030.00516.78
8.0.90.0000.00716.89
8.0.80.0170.00316.88
8.0.70.0040.00416.95
8.0.60.0000.00816.61
8.0.50.0040.00416.78
8.0.30.0090.01116.97
8.0.20.0110.00717.40
8.0.10.0040.00316.86
8.0.00.0090.00816.65
7.4.330.0000.00615.08
7.4.320.0060.00016.46
7.4.300.0000.00716.54
7.4.290.0000.00716.45
7.4.280.0040.00416.53
7.4.270.0040.00416.53
7.4.260.0030.00316.43
7.4.250.0030.00516.40
7.4.240.0020.00516.46
7.4.230.0070.00016.62
7.4.220.0100.00916.65
7.4.210.0070.01316.48
7.4.200.0030.00316.52
7.4.160.0130.00316.18
7.4.150.0080.00817.40
7.4.140.0090.00917.86
7.4.130.0060.01316.47
7.4.120.0110.00716.40
7.4.110.0100.00716.33
7.4.100.0100.00616.34
7.4.90.0130.00316.47
7.4.80.0070.01019.39
7.4.70.0080.01016.44
7.4.60.0030.01316.46
7.4.50.0040.00416.63
7.4.40.0150.00616.39
7.4.30.0090.01116.45
7.4.00.0050.01114.88
7.3.330.0060.00013.05
7.3.320.0000.00613.16
7.3.310.0040.00416.29
7.3.300.0070.00016.23
7.3.290.0070.00916.15
7.3.280.0140.00416.21
7.3.270.0100.00717.40
7.3.260.0110.00616.40
7.3.250.0070.01116.23
7.3.240.0140.00516.27
7.3.230.0100.00716.39
7.3.210.0090.00916.30
7.3.200.0100.00716.20
7.3.190.0090.00916.26
7.3.180.0100.00716.38
7.3.170.0060.01116.27
7.3.160.0080.00816.29
7.3.120.0090.00514.70
7.3.110.0140.00414.59
7.3.100.0090.00914.46
7.3.90.0110.00414.83
7.3.80.0020.01414.69
7.3.70.0050.01214.47
7.3.60.0070.00714.62
7.3.50.0070.00914.43
7.3.40.0070.00814.63
7.3.30.0070.01014.46
7.3.20.0060.00716.32
7.3.10.0050.00816.55
7.3.00.0030.01016.54
7.2.330.0140.00316.39
7.2.320.0100.00716.73
7.2.310.0060.01216.66
7.2.300.0060.00916.61
7.2.290.0100.00716.68
7.2.250.0090.00914.77
7.2.240.0080.00615.07
7.2.230.0070.00715.02
7.2.220.0060.01214.85
7.2.210.0050.00815.08
7.2.200.0070.00914.73
7.2.190.0050.00814.85
7.2.180.0080.00714.75
7.2.170.0040.01214.80
7.2.160.0060.00914.82
7.2.150.0030.00916.66
7.2.140.0100.00316.82
7.2.130.0050.01016.58
7.2.120.0080.00516.81
7.2.110.0070.01116.70
7.2.100.0030.00916.66
7.2.90.0060.01216.73
7.2.80.0080.00816.82
7.2.70.0040.00916.87
7.2.60.0050.00916.82
7.2.50.0030.01116.92
7.2.40.0070.01016.47
7.2.30.0030.01216.89
7.2.20.0070.00316.55
7.2.10.0020.01516.81
7.2.00.0040.01017.41
7.1.330.0090.00615.67
7.1.320.0060.00815.78
7.1.310.0080.00815.79
7.1.300.0020.01115.53
7.1.290.0070.00715.74
7.1.280.0070.00815.63
7.1.270.0050.01015.69
7.1.260.0050.01015.67
7.1.250.0070.00415.50
7.1.200.0230.00415.80
7.1.100.0100.00318.24
7.1.70.0050.00516.80
7.1.60.0100.01419.11
7.1.50.0190.00616.91
7.1.00.0070.07322.28
7.0.200.0140.00714.80
7.0.60.0000.04319.83
7.0.50.0070.06317.85
7.0.40.0030.08320.27
7.0.30.0570.07720.30
7.0.20.0200.07320.10
7.0.10.0300.08020.09
7.0.00.0030.07320.30
5.6.280.0030.03321.07
5.6.210.0170.05720.76
5.6.200.0230.07018.17
5.6.190.0070.04320.63
5.6.180.3730.03720.36
5.6.170.0270.03720.43
5.6.160.0070.04320.54
5.6.150.0030.04018.29
5.6.140.0000.08718.18
5.6.130.0070.07018.25
5.6.120.0030.05021.14
5.6.110.0070.08020.89
5.6.100.0070.03721.11
5.6.90.0130.05320.88
5.6.80.0000.08320.43
5.6.70.0100.03720.52
5.5.350.0100.04320.44
5.5.340.0030.07718.08
5.5.330.0100.04020.47
5.5.320.0270.03320.35
5.5.310.0370.07020.29
5.5.300.0070.05318.02
5.5.290.0130.08017.98
5.5.280.0100.07720.68
5.5.270.0070.09020.68
5.5.260.0070.08320.64
5.5.250.0170.07320.68
5.5.240.0100.07720.16
5.4.450.0700.08719.69
5.4.440.0670.06019.45
5.4.430.0630.04719.68
5.4.420.0730.05719.54
5.4.410.0600.06319.06
5.4.400.0730.06319.13
5.4.390.0730.05719.09
5.4.380.0770.05319.24
5.4.370.0800.05719.26
5.4.360.0630.06019.21
5.4.350.0670.06318.83
5.4.340.0670.06719.13
5.4.320.0830.05318.97
5.4.310.1030.05319.28
5.4.300.0730.05018.99
5.4.290.0770.06719.14
5.4.280.0670.06719.14
5.4.270.0830.05019.28
5.4.260.0630.05318.86
5.4.250.0730.05718.82
5.4.240.0770.06719.13
5.4.230.0770.06319.21
5.4.220.0670.06319.05
5.4.210.0630.05718.82
5.4.200.0600.05319.21
5.4.190.0830.05019.24
5.4.180.0670.04719.35
5.4.170.0700.05019.20
5.4.160.0900.04719.26
5.4.150.0700.05719.25
5.4.140.0830.04716.39
5.4.130.0770.05016.28
5.4.120.0830.04316.27
5.4.110.0870.04316.61
5.4.100.0700.05716.64
5.4.90.0670.05716.50
5.4.80.0970.03716.60
5.4.70.0770.05316.57
5.4.60.0670.05316.58
5.4.50.0800.07316.52
5.4.40.0700.05716.55
5.4.30.0700.05316.58
5.4.20.0800.05316.43
5.4.10.0700.05016.21
5.4.00.0530.06315.74

preferences:
62.38 ms | 401 KiB | 5 Q