3v4l.org

run code in 300+ PHP versions simultaneously
<?php $orderdata = array( array ( 'id' => 20992, 'key' => '_billing_parent_first_name', 'value' => 'Father First Name', ), array ( 'id' => 20993, 'key' => '_billing_parent_last_name', 'value' => 'Father Last Name', ), array ( 'id' => 20994, 'key' => '_billing_parent_email', 'value' => 'father@test.com', ) ); $postable = array(); foreach( $orderdata as $data ){ $postable[$data['key']] = $data['value']; } var_dump( $postable );

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.5.00.0170.01021.63
8.4.150.0010.00114.05
8.4.140.0150.00617.37
8.4.130.0110.00917.77
8.4.120.0050.00420.68
8.4.110.0090.00718.98
8.4.100.0110.00920.70
8.4.90.0140.00718.81
8.4.80.0120.00118.79
8.4.70.0060.00617.84
8.4.60.0060.01118.70
8.4.50.0110.00918.57
8.4.40.0060.00317.54
8.4.30.0160.00320.39
8.4.20.0080.01117.95
8.4.10.0130.00320.43
8.3.280.0130.00718.36
8.3.270.0110.01216.29
8.3.260.0110.01116.63
8.3.250.0090.00618.95
8.3.240.0110.00816.63
8.3.230.0100.01016.67
8.3.220.0160.00318.80
8.3.210.0090.00916.82
8.3.200.0060.00416.48
8.3.190.0120.00417.36
8.3.180.0080.01017.13
8.3.170.0070.01120.77
8.3.160.0070.01116.78
8.3.150.0110.00817.21
8.3.140.0030.00716.59
8.3.130.0080.00018.25
8.3.120.0080.00020.65
8.3.110.0090.00016.50
8.3.100.0030.00518.59
8.3.90.0040.00426.77
8.3.80.0030.00616.63
8.3.70.0090.01218.29
8.3.60.0110.00718.31
8.3.50.0110.00323.77
8.3.40.0070.00718.71
8.3.30.0040.01118.67
8.3.20.0040.00420.77
8.3.10.0000.00821.83
8.3.00.0080.00020.29
8.2.290.0120.00620.30
8.2.280.0140.00618.31
8.2.270.0150.00417.21
8.2.260.0060.00816.48
8.2.250.0080.00316.59
8.2.240.0030.00618.87
8.2.230.0050.00520.94
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0090.00016.71
8.2.190.0120.00316.75
8.2.180.0150.00618.29
8.2.170.0070.00722.96
8.2.160.0070.00720.36
8.2.150.0030.00724.18
8.2.140.0150.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00018.92
8.2.110.0030.00619.45
8.2.100.0090.00317.66
8.2.90.0040.00417.97
8.2.80.0080.00019.16
8.2.70.0040.00417.93
8.2.60.0000.00818.16
8.2.50.0040.00418.10
8.2.40.0060.00319.45
8.2.30.0030.00519.30
8.2.20.0000.00818.04
8.2.10.0000.00719.18
8.2.00.0030.00519.29
8.1.330.0130.00521.90
8.1.320.0120.00718.50
8.1.310.0070.01118.14
8.1.300.0090.00916.25
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0080.00020.69
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0120.00622.13
8.1.230.0060.00620.80
8.1.220.0000.00817.74
8.1.210.0040.00418.96
8.1.200.0040.00417.35
8.1.190.0000.00917.23
8.1.180.0040.00418.97
8.1.170.0000.00818.36
8.1.160.0070.00018.96
8.1.150.0000.00818.93
8.1.140.0000.00918.82
8.1.130.0000.00720.24
8.1.120.0090.00017.36
8.1.110.0070.00017.46
8.1.100.0040.00417.34
8.1.90.0040.00417.34
8.1.80.0000.00817.40
8.1.70.0040.00417.41
8.1.60.0030.00517.55
8.1.50.0030.00517.49
8.1.40.0050.00317.41
8.1.30.0070.00417.54
8.1.20.0080.00017.60
8.1.10.0040.00417.44
8.1.00.0000.00817.48
8.0.300.0040.00420.02
8.0.290.0020.00516.63
8.0.280.0050.00318.36
8.0.270.0030.00316.81
8.0.260.0030.00320.05
8.0.250.0060.00316.98
8.0.240.0060.00016.82
8.0.230.0000.00716.84
8.0.220.0030.00316.87
8.0.210.0040.00416.88
8.0.200.0040.00416.80
8.0.190.0000.00716.87
8.0.180.0040.00416.87
8.0.170.0080.00416.91
8.0.160.0030.00616.92
8.0.150.0070.00016.79
8.0.140.0040.00316.89
8.0.130.0050.00013.31
8.0.120.0050.00316.75
8.0.110.0040.00416.82
8.0.100.0000.00816.97
8.0.90.0060.00316.77
8.0.80.0080.00816.86
8.0.70.0000.00816.88
8.0.60.0040.00416.68
8.0.50.0080.00016.71
8.0.30.0210.00616.88
8.0.20.0140.00917.04
8.0.10.0290.00916.88
8.0.00.0220.00816.91
7.4.330.0050.00016.59
7.4.320.0030.00316.48
7.4.300.0000.00716.59
7.4.290.0110.00016.62
7.4.280.0020.00916.47
7.4.270.0000.00716.58
7.4.260.0050.00013.21
7.4.250.0030.00316.45
7.4.240.0050.00216.58
7.4.230.0000.00716.29
7.4.220.0070.00016.50
7.4.210.0080.00816.53
7.4.200.0040.00416.59
7.4.160.0270.00716.61
7.4.150.0260.01316.61
7.4.140.0210.00916.32
7.4.130.0160.01116.46
7.4.120.0150.01216.53
7.4.110.0150.00816.44
7.4.100.0130.01616.39
7.4.90.0180.00616.61
7.4.80.0150.01117.95
7.4.70.0160.00716.54
7.4.60.0160.01016.52
7.4.50.0140.00816.53
7.4.40.0110.01216.52
7.4.30.0190.00816.41
7.4.20.0200.00816.38
7.4.10.0120.00816.32
7.4.00.0170.00616.40
7.3.330.0000.00716.28
7.3.320.0050.00013.24
7.3.310.0000.00716.14
7.3.300.0030.00316.34
7.3.290.0090.00616.33
7.3.280.0050.01116.35
7.3.270.0190.01516.36
7.3.260.0120.01616.37
7.3.250.0180.01516.34
7.3.240.0140.00716.46
7.3.230.0110.01416.45
7.3.220.0220.01416.22
7.3.210.0180.00916.28
7.3.200.0160.00816.30
7.3.190.0160.00916.44
7.3.180.0190.00516.31
7.3.170.0100.01316.41
7.3.160.0130.01116.32
7.3.150.0180.01116.27
7.3.140.0150.00916.46
7.3.130.0210.00316.23
7.3.120.0130.00816.31
7.3.110.0130.01016.37
7.3.100.0180.00716.29
7.3.90.0120.01316.36
7.3.80.0150.01016.25
7.3.70.0120.01116.34
7.3.60.0140.01016.40
7.3.50.0220.00616.31
7.3.40.0110.01216.34
7.3.30.0110.01116.29
7.3.20.0160.00716.38
7.3.10.0140.00916.35
7.3.00.0190.00416.38
7.2.340.0150.01816.40
7.2.330.0100.01616.49
7.2.320.0160.01016.42
7.2.310.0090.01416.39
7.2.300.0110.01216.52
7.2.290.0130.01216.49
7.2.280.0150.01516.43
7.2.270.0190.00616.50
7.2.260.0200.00316.57
7.2.250.0120.01216.50
7.2.240.0130.01116.54
7.2.230.0190.00716.42
7.2.220.0150.00916.49
7.2.210.0070.01516.53
7.2.200.0130.01116.60
7.2.190.0160.00816.50
7.2.180.0160.01016.54
7.2.170.0150.00716.58
7.2.160.0150.00816.55
7.2.150.0160.00716.54
7.2.140.0180.00916.65
7.2.130.0160.00816.76
7.2.120.0150.00916.67
7.2.110.0150.01116.65
7.2.100.0140.01016.61
7.2.90.0240.00816.56
7.2.80.0150.01016.64
7.2.70.0130.01116.71
7.2.60.0140.01116.54
7.2.50.0210.00816.66
7.2.40.0170.00616.67
7.2.30.0130.00916.72
7.2.20.0110.01516.69
7.2.10.0130.01216.73
7.2.00.0170.01016.65

preferences:
31.24 ms | 403 KiB | 5 Q