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; $this->myfunc(); 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.70.0040.01118.55
8.3.60.0120.00616.63
8.3.50.0150.00321.97
8.3.40.0070.01119.02
8.3.30.0140.00318.66
8.3.20.0080.00020.35
8.3.10.0030.00523.51
8.3.00.0060.00317.89
8.2.190.0120.00316.75
8.2.180.0100.01616.63
8.2.170.0110.00422.96
8.2.160.0080.00320.38
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0060.00317.63
8.2.110.0160.00622.26
8.2.100.0060.00617.91
8.2.90.0000.00719.05
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0110.00017.91
8.2.50.0070.00018.07
8.2.40.0080.00021.07
8.2.30.0080.00020.68
8.2.20.0000.00817.73
8.2.10.0030.00517.88
8.2.00.0040.00417.98
8.1.280.0100.01025.92
8.1.270.0050.00323.87
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0080.00022.51
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00317.23
8.1.190.0000.00817.22
8.1.180.0000.00718.10
8.1.170.0040.00420.37
8.1.160.0050.00222.00
8.1.150.0080.00018.79
8.1.140.0040.00419.42
8.1.130.0040.00417.70
8.1.120.0030.00317.39
8.1.110.0080.00017.25
8.1.100.0040.00417.34
8.1.90.0040.00417.43
8.1.80.0040.00417.24
8.1.70.0050.00317.33
8.1.60.0040.00417.41
8.1.50.0000.00817.54
8.1.40.0030.00617.42
8.1.30.0000.00817.55
8.1.20.0030.00517.54
8.1.10.0070.00017.59
8.1.00.0000.00817.55
8.0.300.0080.00018.77
8.0.290.0050.00216.63
8.0.280.0050.00318.39
8.0.270.0000.00717.11
8.0.260.0030.00317.07
8.0.250.0000.00717.02
8.0.240.0060.00016.95
8.0.230.0030.00317.00
8.0.220.0050.00316.77
8.0.210.0000.00716.87
8.0.200.0030.00316.99
8.0.190.0000.00716.88
8.0.180.0040.00416.78
8.0.170.0000.00816.84
8.0.160.0070.00016.86
8.0.150.0070.00016.80
8.0.140.0000.00716.68
8.0.130.0060.00013.29
8.0.120.0040.00416.77
8.0.110.0070.00016.93
8.0.100.0070.00016.71
8.0.90.0000.00716.96
8.0.80.0060.00916.85
8.0.70.0040.00416.77
8.0.60.0030.00316.77
8.0.50.0040.00416.76
8.0.30.0120.00717.10
8.0.20.0110.00817.40
8.0.10.0030.00516.91
8.0.00.0130.00816.61
7.4.330.0050.00015.08
7.4.320.0060.00016.45
7.4.300.0040.00416.58
7.4.290.0050.00216.36
7.4.280.0040.00416.61
7.4.270.0030.00316.59
7.4.260.0000.00816.61
7.4.250.0070.00016.49
7.4.240.0020.00516.48
7.4.230.0000.00716.56
7.4.220.0030.01616.55
7.4.210.0070.00716.46
7.4.200.0040.00416.49
7.4.160.0100.00616.57
7.4.150.0070.01117.40
7.4.140.0140.01017.86
7.4.130.0110.00616.57
7.4.120.0050.01216.70
7.4.110.0090.00916.44
7.4.100.0100.00716.46
7.4.90.0130.00316.44
7.4.80.0130.00319.39
7.4.70.0060.01016.59
7.4.60.0030.01316.48
7.4.50.0040.00416.48
7.4.40.0030.01316.48
7.4.30.0090.00616.30
7.4.00.0060.00615.14
7.3.330.0070.00013.13
7.3.320.0030.00313.38
7.3.310.0070.00016.17
7.3.300.0040.00416.25
7.3.290.0060.01016.28
7.3.280.0070.01016.33
7.3.270.0060.01317.40
7.3.260.0120.00616.33
7.3.250.0100.00916.29
7.3.240.0080.01116.51
7.3.230.0170.00016.41
7.3.210.0130.00316.58
7.3.200.0100.00616.39
7.3.190.0090.00916.52
7.3.180.0090.00616.49
7.3.170.0000.01716.53
7.3.160.0090.00616.23
7.2.330.0160.00716.81
7.2.320.0120.00416.41
7.2.310.0130.00616.56
7.2.300.0130.00316.36
7.2.290.0120.00616.65
7.2.60.0000.01016.79
7.2.00.0060.00619.50
7.1.200.0000.01215.79
7.1.70.0000.00816.91
7.1.60.0100.00317.08
7.1.50.0030.00916.79
7.1.00.0030.08322.30
7.0.200.0090.00916.56
7.0.60.0130.08020.00
7.0.50.0030.05017.84
7.0.40.0070.04720.30
7.0.30.0330.06320.23
7.0.20.0300.06720.26
7.0.10.0370.07020.07
7.0.00.0030.04020.09
5.6.280.0000.03720.78
5.6.210.0030.04020.50
5.6.200.0100.04318.13
5.6.190.0030.04720.77
5.6.180.2270.04020.42
5.6.170.0170.05320.57
5.6.160.0170.07320.55
5.6.150.0070.06718.12
5.6.140.0100.04318.18
5.6.130.0030.09018.25
5.6.120.0070.05321.03
5.6.110.0130.08020.98
5.6.100.0130.07721.01
5.6.90.0030.09021.04
5.6.80.0030.08720.51
5.6.70.0000.07720.43
5.5.350.0130.05020.43
5.5.340.0030.04017.92
5.5.330.0170.07020.31
5.5.320.0230.04020.47
5.5.310.0300.08320.30
5.5.300.0030.05318.04
5.5.290.0170.04018.08
5.5.280.0070.04020.89
5.5.270.0100.04020.75
5.5.260.0200.07020.87
5.5.250.0200.04720.54
5.5.240.0070.07720.36
5.4.450.0700.05719.34
5.4.440.0670.06019.58
5.4.430.0730.07019.30
5.4.420.0900.04019.15
5.4.410.0770.05319.34
5.4.400.0900.06319.30
5.4.390.0870.07719.16
5.4.380.0670.05319.29
5.4.370.0770.06018.98
5.4.360.0670.06019.11
5.4.350.0530.06019.25
5.4.340.0700.07319.15
5.4.320.0900.07319.25
5.4.310.0670.08018.86
5.4.300.0770.07019.29
5.4.290.0700.07319.28
5.4.280.0600.07719.13
5.4.270.0800.07319.13
5.4.260.0730.07319.14
5.4.250.0770.06319.26
5.4.240.0630.06318.83
5.4.230.0630.05018.82
5.4.220.0600.05719.28
5.4.210.0470.05719.29
5.4.200.0530.05319.22
5.4.190.0900.04318.86
5.4.180.0830.05319.24
5.4.170.0770.06019.14
5.4.160.0830.05719.13
5.4.150.0570.07019.26
5.4.140.0870.05016.44
5.4.130.0730.05716.55
5.4.120.0700.05716.29
5.4.110.0700.06016.59
5.4.100.0800.07016.62
5.4.90.0770.04016.59
5.4.80.0300.06016.26
5.4.70.0170.04716.41
5.4.60.0300.05716.25
5.4.50.0630.05716.58
5.4.40.0570.05016.57
5.4.30.0530.05016.56
5.4.20.0130.04716.59
5.4.10.0070.05716.27
5.4.00.0500.05715.86

preferences:
22.56 ms | 401 KiB | 5 Q