3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __($v) { return "__($v)"; } $array1 = ['dogs' => __('Dogs'), 'cats' => __('Cats')]; $array2 = [ 'ducks' => ['width' => 350, 'height' => 350, 'crop' => true], 'cows' => ['width' => 750, 'height' => 150, 'crop' => true], ]; array_push($array1, ...array_keys($array2)); print_r($array1);

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.30.0100.00719.76
8.5.20.0080.00820.00
8.5.10.0090.00816.74
8.5.00.0130.01120.27
8.4.180.0120.01120.54
8.4.170.0140.00722.13
8.4.160.0070.00322.10
8.4.150.0070.00516.86
8.4.140.0130.01017.55
8.4.130.0050.01618.87
8.4.120.0120.00820.62
8.4.110.0110.00620.64
8.4.100.0120.00917.68
8.4.90.0120.00820.59
8.4.80.0090.01122.71
8.4.70.0120.00818.92
8.4.60.0070.00920.89
8.4.50.0080.01220.47
8.4.40.0120.00917.88
8.4.30.0150.00020.30
8.4.20.0100.01021.33
8.4.10.0350.01217.45
8.3.300.0100.01120.79
8.3.290.0120.01022.61
8.3.280.0120.01018.35
8.3.270.0070.01116.46
8.3.260.0100.00916.46
8.3.250.0120.00818.80
8.3.240.0060.00318.53
8.3.230.0040.00516.29
8.3.220.0090.00819.11
8.3.210.0050.00416.44
8.3.200.0050.00416.63
8.3.190.0100.00916.97
8.3.180.0090.00919.07
8.3.170.0110.00717.32
8.3.160.0120.00618.26
8.3.150.0060.01317.09
8.3.140.0290.01016.51
8.3.130.0230.00416.54
8.3.120.0150.00216.76
8.3.110.0210.00416.26
8.3.100.0210.00016.40
8.3.90.0120.00816.83
8.3.80.0230.00016.48
8.3.70.0140.01016.32
8.3.60.0210.00016.53
8.3.50.0150.00516.40
8.3.40.0200.00017.24
8.3.30.0110.00517.45
8.3.20.0110.00617.63
8.3.10.0130.00317.19
8.3.00.0050.00517.25
8.2.300.0090.01020.44
8.2.290.0110.00818.91
8.2.280.0160.00520.32
8.2.270.0040.00416.77
8.2.260.0040.00418.80
8.2.250.0000.01616.73
8.2.240.0170.00016.50
8.2.230.0140.00316.27
8.2.220.0140.00316.40
8.2.210.0080.00816.31
8.2.200.0140.00416.48
8.2.190.0170.00016.46
8.2.180.0150.00216.16
8.2.170.0200.00017.56
8.2.160.0120.00817.44
8.2.150.0140.00517.27
8.2.140.0130.00717.41
8.2.130.0120.00617.43
8.2.120.0100.00717.52
8.2.110.0120.00617.56
8.2.100.0110.00817.68
8.2.90.0110.00617.69
8.2.80.0090.00919.16
8.2.70.0190.00017.23
8.2.60.0140.00417.31
8.2.50.0130.00417.23
8.2.40.0190.00017.66
8.2.30.0120.00617.43
8.2.20.0160.00017.20
8.2.10.0080.00817.56
8.2.00.0110.00617.44
8.1.340.0110.00820.20
8.1.320.0080.00315.96

preferences:
66.39 ms | 851 KiB | 5 Q