3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['Ttitle' => 'lilly', 'Price' => 1.75, 'Number' => 3], ['Title' => 'rose', 'Price' => 1.25, 'Number' => 15], ['Title' => 'daisy', 'Price' => 0.75, 'Number' => 25], ['Title' => 'nettle', 'Price' => 2.75, 'Number' => 33], ['Title' => 'orchid', 'Price' => 1.15, 'Number' => 7], ]; var_export( array_map( fn($row) => array_combine(['Title', 'Price', 'Number'], $row), $array ) ); var_export( array_map( fn($row) => ['Title' => $row['Ttitle'] ?? $row['Title'], 'Price' => $row['Price'], 'Number' => $row['Number']], $array ) );

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.60.0120.00916.73
8.3.50.0090.00918.66
8.3.40.0140.00020.32
8.3.30.0110.00318.49
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.180.0100.00725.92
8.2.170.0090.00619.13
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0030.00619.83
8.2.110.0040.00821.09
8.2.100.0080.00419.57
8.2.90.0040.00418.34
8.2.80.0050.00318.16
8.2.70.0040.00417.50
8.2.60.0050.00318.04
8.2.50.0000.00818.07
8.2.40.0000.00818.34
8.2.30.0000.00718.12
8.2.20.0000.01019.20
8.2.10.0000.00718.00
8.2.00.0080.00019.24
8.1.280.0140.00725.92
8.1.270.0060.00324.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00319.33
8.1.230.0110.00021.04
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0040.00417.25
8.1.190.0080.00017.36
8.1.180.0050.00318.10
8.1.170.0030.00618.45
8.1.160.0040.00418.90
8.1.150.0070.00018.57
8.1.140.0000.00717.34
8.1.130.0030.00618.81
8.1.120.0070.00017.48
8.1.110.0000.00717.35
8.1.100.0080.00017.46
8.1.90.0030.00617.44
8.1.80.0040.01217.42
8.1.70.0110.00517.36
8.1.60.0200.00017.48
8.1.50.0140.00517.47
8.1.40.0110.00717.53
8.1.30.0120.00717.55
8.1.20.0130.00617.68
8.1.10.0150.00517.50
8.1.00.0090.00917.45
8.0.300.0000.00719.89
8.0.290.0040.00416.63
8.0.280.0050.00318.29
8.0.270.0040.00417.94
8.0.260.0040.00418.43
8.0.250.0030.00316.84
8.0.240.0050.00316.91
8.0.230.0030.00316.86
8.0.220.0000.00716.67
8.0.210.0120.00316.64
8.0.200.0090.00616.80
8.0.190.0100.00516.80
8.0.180.0150.00016.82
8.0.170.0120.00316.88
8.0.160.0050.00916.71
8.0.150.0120.00216.81
8.0.140.0050.01016.86
8.0.130.0130.00316.64
8.0.120.0100.00516.72
8.0.110.0160.00016.95
8.0.100.0100.00516.82
8.0.90.0060.00916.78
8.0.80.0180.00016.79
8.0.70.0110.00416.75
8.0.60.0160.00016.70
8.0.50.0080.00816.71
8.0.30.0050.01116.91
8.0.20.0130.00316.80
8.0.10.0110.00416.93
7.4.330.0000.00515.55
7.4.320.0060.00016.52
7.4.300.0080.00516.48
7.4.290.0140.00416.40
7.4.280.0040.00916.61
7.4.270.0090.00616.52
7.4.260.0140.00616.44
7.4.250.0130.00516.52
7.4.240.0100.00716.38
7.4.230.0110.00616.47
7.4.220.0130.00316.49
7.4.210.0140.00016.48
7.4.200.0100.00516.43
7.4.190.0110.00416.54
7.4.180.0120.00216.50
7.4.160.0140.00016.60
7.4.150.0120.00216.50
7.4.140.0120.00016.29
7.4.130.0100.00216.41
7.4.120.0000.01016.41
7.4.110.0110.00016.42
7.4.100.0150.00016.38
7.4.90.0120.00016.38
7.4.80.0020.01016.42
7.4.70.0050.00516.41
7.4.60.0050.00516.42
7.4.50.0050.00716.34
7.4.40.0050.00516.34
7.4.30.0130.00016.28
7.4.20.0080.00316.50
7.4.10.0090.00016.35
7.4.00.0040.00816.40

preferences:
31.11 ms | 400 KiB | 5 Q