3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ ['name' => 'name', 'value' => 'Naomi'], ['name' => 'password', 'value' => 'test123456'], ['name' => 'email', 'value' => 'naomitest@gmail.com'], ['name' => 'code', 'value' => 'test123456@test123456'], ['name' => 'phone', 'value' => 423523545435] ]; $data = new ArrayObject( array_combine( array_column($data, 'name'), array_column($data, 'value') ) ); $data->setFlags(ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS); echo $data->name; // Naomi echo $data['name']; // Naomi

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.0120.00318.08
8.3.120.0000.01519.08
8.3.110.0120.00420.94
8.3.100.0070.00324.06
8.3.90.0100.00626.77
8.3.80.0030.00616.63
8.3.70.0090.00616.25
8.3.60.0110.00316.38
8.3.50.0070.00717.42
8.3.40.0130.01318.97
8.3.30.0080.00618.79
8.3.20.0040.00421.57
8.3.10.0070.00021.76
8.3.00.0070.00020.67
8.2.250.0050.00316.77
8.2.240.0040.01118.76
8.2.230.0050.00522.58
8.2.220.0090.00037.54
8.2.210.0040.01526.77
8.2.200.0000.00918.16
8.2.190.0160.00616.58
8.2.180.0040.01618.29
8.2.170.0150.00022.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0190.00026.16
8.2.120.0000.00819.95
8.2.110.0070.00920.63
8.2.100.0110.00718.45
8.2.90.0010.00818.62
8.2.80.0030.00619.02
8.2.70.0040.00518.24
8.2.60.0110.00518.26
8.2.50.0090.00718.27
8.2.40.0120.00518.99
8.2.30.0050.01019.13
8.2.20.0050.00518.43
8.2.10.0120.00318.57
8.2.00.0030.00918.59
8.1.300.0030.00618.36
8.1.290.0040.00730.84
8.1.280.0070.00725.92
8.1.270.0100.00024.01
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0110.00619.47
8.1.230.0090.00819.82
8.1.220.0070.00318.18
8.1.210.0060.00519.23
8.1.200.0070.00717.87
8.1.190.0070.00217.74
8.1.180.0040.00518.13
8.1.170.0030.00518.03
8.1.160.0070.00618.79
8.1.150.0020.00718.85
8.1.140.0040.00517.94
8.1.130.0050.00319.28
8.1.120.0050.00518.79
8.1.110.0070.00517.82
8.1.100.0030.00717.92
8.1.90.0030.00717.78
8.1.80.0060.00518.00
8.1.70.0050.00518.07
8.1.60.0060.00318.00
8.1.50.0060.00318.04
8.1.40.0060.00318.09
8.1.30.0070.00118.30
8.1.20.0020.00718.12
8.1.10.0020.00818.07
8.1.00.0030.00518.13
8.0.300.0030.00618.95
8.0.290.0050.00417.26
8.0.280.0000.00818.11
8.0.270.0020.00717.61
8.0.260.0020.00617.30
8.0.250.0070.00217.50
8.0.240.0040.00517.35
8.0.230.0060.00217.60
8.0.220.0050.00317.28
8.0.210.0050.00317.29
8.0.200.0020.00717.33
8.0.190.0030.00517.32
8.0.180.0070.00317.20
8.0.170.0050.00417.32
8.0.160.0030.00517.29
8.0.150.0020.00617.24
8.0.140.0040.00517.25
8.0.130.0060.00415.47
8.0.120.0050.00317.29
8.0.110.0060.00217.32
8.0.100.0050.00317.19
8.0.90.0060.00217.34
8.0.80.0080.00917.25
8.0.70.0060.00217.26
8.0.60.0020.00617.27
8.0.50.0030.00517.18
8.0.30.0090.00917.14
8.0.20.0140.00517.56
8.0.10.0060.00617.51
8.0.00.0100.00517.83
7.4.330.0020.00514.85
7.4.320.0020.00616.91
7.4.300.0050.00317.02
7.4.290.0050.00317.05
7.4.280.0040.00516.86
7.4.270.0070.00616.91
7.4.260.0040.00516.91
7.4.250.0060.00216.87
7.4.240.0070.00217.00
7.4.230.0060.00116.88
7.4.220.0100.00417.00
7.4.210.0040.01316.83
7.4.200.0070.00717.04
7.4.190.0100.00017.39
7.4.180.0110.00017.43
7.4.160.0060.01216.76
7.4.150.0060.00317.56
7.4.140.0080.00917.79
7.4.130.0070.00916.93
7.4.120.0110.00816.69
7.4.110.0150.00716.94
7.4.100.0130.00816.99
7.4.90.0200.00716.93
7.4.80.0230.00918.37
7.4.70.0170.01316.85
7.4.60.0170.00816.83
7.4.50.0180.00616.69
7.4.40.0180.01016.99
7.4.30.0230.00717.18
7.4.20.0210.00317.00
7.4.10.0230.00817.38
7.4.00.0070.00716.14
7.3.330.0080.00315.06
7.3.320.0120.00015.09
7.3.310.0070.00816.58
7.3.300.0170.00216.68
7.3.290.0140.00516.64
7.3.280.0110.00516.45
7.3.270.0180.00516.81
7.3.260.0160.00716.42
7.3.250.0170.00016.94
7.3.240.0100.00816.56
7.3.230.0120.00516.78
7.3.220.0180.00017.26
7.3.210.0090.00816.74
7.3.200.0110.00816.67
7.3.190.0100.00816.83
7.3.180.0130.00516.65
7.3.170.0130.00816.59
7.3.160.0150.01016.75
7.3.150.0350.00417.20
7.3.140.0230.00716.97
7.3.130.0280.00617.07
7.3.120.0230.01016.64
7.3.110.0130.00717.03
7.3.100.0320.00016.95
7.3.90.0290.01217.17
7.3.80.0330.00817.00
7.3.70.0190.00917.13
7.3.60.0160.01617.13
7.3.50.0380.00017.11
7.3.40.0150.00317.33
7.3.30.0260.00817.23
7.3.20.0210.00018.86
7.3.10.0110.00517.85
7.3.00.0060.01117.94
7.2.340.0130.00719.11
7.2.330.0110.00716.88
7.2.320.0180.00816.84
7.2.310.0150.00616.95
7.2.300.0200.01116.88
7.2.290.0120.00916.88
7.2.280.0200.00017.05
7.2.270.0230.00017.30
7.2.260.0100.00717.30
7.2.250.0160.00217.06
7.2.240.0160.00017.14
7.2.230.0170.00017.24
7.2.220.0130.00317.25
7.2.210.0160.00017.00
7.2.200.0160.00017.18
7.2.190.0110.00517.30
7.2.180.0110.00517.25
7.2.170.0130.00317.52
7.2.160.0130.00317.44
7.2.150.0140.00519.00
7.2.140.0160.00319.14
7.2.130.0080.00918.06
7.2.120.0060.00817.94
7.2.110.0110.00717.78
7.2.100.0120.00318.07
7.2.90.0110.00618.14
7.2.80.0110.00518.01
7.2.70.0120.00717.81
7.2.60.0090.00817.63
7.2.50.0140.00518.05
7.2.40.0340.01218.02
7.2.30.0170.00917.84
7.2.20.0200.01317.99
7.2.10.0180.00517.93
7.2.00.0160.01118.02
7.1.330.0090.00018.10
7.1.320.0150.00318.19
7.1.310.0180.00018.05
7.1.300.0170.00018.11
7.1.290.0120.00418.32
7.1.280.0170.00017.83
7.1.270.0090.00918.11
7.1.260.0120.00417.85
7.1.250.0090.00616.96
7.1.240.0130.00418.04
7.1.230.0120.00618.39
7.1.220.0120.00418.18
7.1.210.0180.00018.14
7.1.200.0110.00516.93
7.1.190.0120.00618.11
7.1.180.0090.00718.16
7.1.170.0100.00718.07
7.1.160.0200.00817.58
7.1.150.0290.00817.53
7.1.140.0370.00717.57
7.1.130.0260.01017.67
7.1.120.0220.00717.33
7.1.110.0210.00417.27
7.1.100.0220.01017.17
7.1.90.0300.00817.09
7.1.80.0310.00817.25
7.1.70.0230.00916.59
7.1.60.0420.01125.77
7.1.50.0440.01125.54
7.1.40.0430.00925.24
7.1.30.0400.01225.42
7.1.20.0440.01525.53
7.1.10.0310.00816.35
7.1.00.0340.01216.56
7.0.330.0100.01317.80
7.0.320.0280.00317.91
7.0.310.0160.00018.13
7.0.300.0110.00517.78
7.0.290.0210.00618.02
7.0.280.0180.00417.91
7.0.270.0120.00418.02
7.0.260.0140.00317.64
7.0.250.0100.00718.38
7.0.240.0140.00517.90
7.0.230.0120.00518.07
7.0.220.0120.00417.68
7.0.210.0180.01117.86
7.0.200.0220.01317.81
7.0.190.0280.00717.81
7.0.180.0230.00718.16
7.0.170.0250.00717.97
7.0.160.0290.00717.97
7.0.150.0290.00017.91
7.0.140.0150.00717.78
7.0.130.0140.00217.94
7.0.120.0330.00018.08
7.0.110.0140.00618.06
7.0.100.0120.00617.98
7.0.90.0170.00017.98
7.0.80.0140.00717.45
7.0.70.0280.00018.03
7.0.60.0160.00018.14
7.0.50.0200.01317.85
7.0.40.0160.00817.68
7.0.30.0100.00717.61
7.0.20.0160.00017.75
7.0.10.0060.01017.80
7.0.00.0110.00518.00
5.6.400.0160.00616.95
5.6.390.0110.00416.80
5.6.380.0170.00016.92
5.6.370.0130.00316.75
5.6.360.0180.01516.77
5.6.350.0160.00616.87
5.6.340.0070.00216.86
5.6.330.0130.00716.88
5.6.320.0040.01116.69
5.6.310.0000.01016.72
5.6.300.0050.00516.74
5.6.290.0030.00616.68
5.6.280.0100.00316.78
5.6.270.0060.00316.69
5.6.260.0060.00316.82
5.6.250.0050.00516.82
5.6.240.0000.00917.14
5.6.230.0030.00517.02
5.6.220.0030.00517.08
5.6.210.0040.00416.99
5.6.200.0000.00817.10
5.6.190.0080.00017.03
5.6.180.0090.00016.98
5.6.170.0080.00817.16
5.6.160.0080.00016.98
5.6.150.0040.00417.21
5.6.140.0040.00417.00
5.6.130.0030.00616.95
5.6.120.0040.00417.15
5.6.110.0140.00516.98
5.6.100.0160.00316.93
5.6.90.0090.00016.91
5.6.80.0120.00317.03
5.6.70.0080.00017.15
5.6.60.0150.00417.15
5.6.50.0080.00016.82
5.6.40.0120.00316.91
5.6.30.0040.01117.01
5.6.20.0150.00016.88
5.6.10.0120.00316.82
5.6.00.0140.00017.02

preferences:
28.61 ms | 403 KiB | 5 Q