3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = array((object)['key' => 'VALID', 'value' => 'Y'], (object)['key' => 'YEAR', 'value' => 2018]); $data = array(); foreach ($value as $v) { $data[$v->key] = $v->value; } print_r($data);

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.130.0040.00416.91
8.3.120.0080.00820.53
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0030.00526.77
8.3.80.0030.00619.36
8.3.70.0140.00716.75
8.3.60.0030.01218.54
8.3.50.0090.01117.16
8.3.40.0040.01119.02
8.3.30.0110.00418.73
8.3.20.0030.00519.14
8.3.10.0090.00021.69
8.3.00.0090.00020.75
8.2.250.0030.01017.38
8.2.240.0060.00318.69
8.2.230.0130.00622.58
8.2.220.0040.00437.54
8.2.210.0050.00326.77
8.2.200.0030.00618.88
8.2.190.0070.00718.29
8.2.180.0140.00716.75
8.2.170.0070.00722.96
8.2.160.0100.00322.07
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.70
8.2.120.0050.00326.35
8.2.110.0090.00020.28
8.2.100.0060.00617.91
8.2.90.0040.00418.09
8.2.80.0030.00517.97
8.2.70.0030.00517.75
8.2.60.0090.00017.93
8.2.50.0030.00618.07
8.2.40.0000.00918.35
8.2.30.0000.00718.13
8.2.20.0020.00518.04
8.2.10.0040.00418.03
8.2.00.0030.00519.86
8.1.300.0140.00418.22
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0000.00723.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.50
8.1.230.0080.00320.98
8.1.220.0050.00317.78
8.1.210.0060.00318.93
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0060.00318.49
8.1.160.0080.00018.89
8.1.150.0050.00318.94
8.1.140.0000.00822.13
8.1.130.0000.00720.10
8.1.120.0000.00717.30
8.1.110.0040.00417.51
8.1.100.0050.00317.40
8.1.90.0020.00517.46
8.1.80.0000.00717.46
8.1.70.0030.00517.50
8.1.60.0040.00417.47
8.1.50.0000.00817.52
8.1.40.0040.00417.40
8.1.30.0030.00517.55
8.1.20.0040.00417.58
8.1.10.0050.00217.59
8.1.00.0030.00517.47
8.0.300.0030.00319.84
8.0.290.0000.00816.75
8.0.280.0000.00718.49
8.0.270.0000.00717.13
8.0.260.0000.00818.50
8.0.250.0000.00616.92
8.0.240.0030.00317.01
8.0.230.0000.00616.91
8.0.220.0060.00316.91
8.0.210.0000.00716.87
8.0.200.0040.00416.89
8.0.190.0050.00316.89
8.0.180.0000.00717.00
8.0.170.0030.00616.91
8.0.160.0060.00316.96
8.0.150.0040.00716.86
8.0.140.0040.00416.82
8.0.130.0050.00013.42
8.0.120.0000.00716.93
8.0.110.0040.00416.78
8.0.100.0000.00716.98
8.0.90.0000.00816.97
8.0.80.0050.01016.96
8.0.70.0040.00416.82
8.0.60.0040.00416.83
8.0.50.0040.00416.94
8.0.30.0110.00817.04
8.0.20.0090.00917.40
8.0.10.0040.00416.98
8.0.00.0050.01416.97
7.4.330.0040.00015.55
7.4.320.0040.00416.43
7.4.300.0040.00416.42
7.4.290.0060.00016.36
7.4.280.0040.00416.48
7.4.270.0050.00316.59
7.4.260.0030.00316.48
7.4.250.0000.00716.39
7.4.240.0000.00716.54
7.4.230.0030.00316.48
7.4.220.0040.00416.64
7.4.210.0090.00516.50
7.4.200.0030.00316.67
7.4.160.0090.00916.51
7.4.140.0120.00717.86
7.4.130.0070.01116.48
7.4.120.0080.01116.52
7.4.110.0040.01316.50
7.4.100.0140.00716.36
7.4.90.0030.01416.57
7.4.80.0150.00319.39
7.4.70.0100.00716.52
7.4.60.0090.00916.29
7.4.50.0090.00616.59
7.4.40.0030.01316.56
7.4.00.0000.01414.83
7.3.330.0000.00513.33
7.3.320.0030.00313.33
7.3.310.0030.00516.45
7.3.300.0030.00316.20
7.3.290.0030.00316.43
7.3.280.0020.01416.38
7.3.260.0110.00716.50
7.3.240.0090.00916.40
7.3.230.0060.01116.50
7.3.210.0100.00616.50
7.3.200.0030.01316.50
7.3.190.0060.01116.24
7.3.180.0110.00516.62
7.3.170.0090.01316.44
7.3.160.0060.00916.45
7.2.330.0060.01016.67
7.2.320.0030.01316.45
7.2.310.0080.00816.73
7.2.300.0100.00616.66
7.2.290.0110.00716.74
7.2.110.0260.01014.87
7.2.100.0360.00714.88
7.2.90.0550.01014.69
7.2.80.0390.01114.92
7.2.70.0260.01615.04
7.2.60.0430.00714.96
7.2.50.0240.00615.20
7.2.40.0280.00715.12
7.2.30.0290.00715.20
7.2.20.0250.00615.00
7.2.10.0290.00314.84
7.2.00.0460.01114.99
7.1.230.0380.00313.93
7.1.220.0390.01413.91
7.1.210.0290.00313.75
7.1.200.0340.00613.82
7.1.190.0450.00914.02
7.1.180.0220.00913.49
7.1.170.0280.00413.55
7.1.160.0310.01213.70
7.1.150.0200.01013.81
7.1.140.0330.00614.03
7.1.130.0210.01414.13
7.1.120.0590.00713.77
7.1.110.0380.00313.89
7.1.100.0300.00314.14
7.1.90.0250.00613.88
7.1.80.0290.00613.89
7.1.70.0370.00014.03
7.1.60.0500.00731.99
7.1.50.1280.00031.88
7.1.40.0560.01731.47
7.1.30.0660.00731.93
7.1.20.0400.01331.84
7.1.10.0270.00413.82
7.1.00.0280.00614.12
5.6.380.0060.01014.54

preferences:
26.21 ms | 403 KiB | 5 Q