3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_array = array("success"=>true ,'ab' => 2,'def' => 1); for ($i = 0; $i <= 6;$i++) { $data = [ 'lg_' . $i => 'LG: T-' . $i ]; $input_array = array_merge($input_array, $data); } print_r($input_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.5.10.0150.00516.67
8.5.00.0160.00819.93
8.4.150.0020.00114.05
8.4.140.0140.00717.81
8.4.130.0100.01117.61
8.4.120.0080.00320.54
8.4.110.0080.00422.55
8.4.100.0120.00817.75
8.4.90.0090.01218.49
8.4.80.0040.00417.75
8.4.70.0110.01117.70
8.4.60.0110.00719.04
8.4.50.0110.00818.79
8.4.40.0060.00319.52
8.4.30.0070.01318.67
8.4.20.0140.00724.14
8.4.10.0100.01019.36
8.3.280.0160.00518.33
8.3.270.0090.00916.80
8.3.260.0120.00816.45
8.3.250.0120.00918.79
8.3.240.0130.00616.50
8.3.230.0120.00716.61
8.3.220.0090.00917.01
8.3.210.0100.00616.67
8.3.200.0050.00316.53
8.3.190.0100.00917.22
8.3.180.0100.00818.52
8.3.170.0150.00316.25
8.3.160.0110.00716.68
8.3.150.0090.00918.85
8.3.140.0060.00916.61
8.3.130.0090.00018.36
8.3.120.0080.00018.75
8.3.110.0080.00016.48
8.3.100.0080.00016.62
8.3.90.0050.00316.50
8.3.80.0030.00618.56
8.3.70.0130.00718.08
8.3.60.0040.01118.31
8.3.50.0110.01017.21
8.3.40.0040.01518.65
8.3.30.0040.01118.79
8.3.20.0070.00021.95
8.3.10.0030.00621.70
8.3.00.0080.00023.61
8.2.290.0130.00520.43
8.2.280.0100.00618.34
8.2.270.0070.00416.64
8.2.260.0040.01118.79
8.2.250.0030.00618.62
8.2.240.0060.00316.54
8.2.230.0060.00320.94
8.2.220.0070.00324.06
8.2.210.0040.01626.77
8.2.200.0090.00018.29
8.2.190.0080.00616.58
8.2.180.0130.00718.00
8.2.170.0070.01022.96
8.2.160.0130.00020.52
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0050.00326.16
8.2.110.0090.00020.55
8.2.100.0070.00417.91
8.2.90.0000.00820.42
8.2.80.0050.00318.05
8.2.70.0040.00417.93
8.2.60.0050.00518.16
8.2.50.0090.00018.10
8.2.40.0070.00020.47
8.2.30.0070.00019.32
8.2.20.0050.00318.04
8.2.10.0030.00319.38
8.2.00.0030.00719.21
8.1.330.0130.00622.03
8.1.320.0120.00815.92
8.1.310.0070.01116.63
8.1.300.0060.00317.76
8.1.290.0090.00318.88
8.1.280.0070.00725.92
8.1.270.0050.00322.17
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00623.90
8.1.230.0040.00720.89
8.1.220.0080.00017.88
8.1.210.0060.00319.02
8.1.200.0100.00017.23
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0030.00618.56
8.1.160.0040.00418.82
8.1.150.0040.00418.89
8.1.140.0040.00418.74
8.1.130.0030.00320.07
8.1.120.0000.00717.29
8.1.110.0040.00417.31
8.1.100.0000.01117.41
8.1.90.0080.00017.28
8.1.80.0000.00817.39
8.1.70.0040.00417.42
8.1.60.0000.00817.40
8.1.50.0030.00617.44
8.1.40.0080.00017.48
8.1.30.0000.00817.49
8.1.20.0110.00017.60
8.1.10.0040.00417.45
8.1.00.0030.00617.47
8.0.300.0050.00220.02
8.0.290.0020.00516.75
8.0.280.0050.00318.53
8.0.270.0000.00716.86
8.0.260.0070.00018.44
8.0.250.0000.00716.87
8.0.240.0000.00716.95
8.0.230.0000.00716.91
8.0.220.0030.00316.91
8.0.210.0000.00716.80
8.0.200.0040.00416.91
8.0.190.0000.00816.97
8.0.180.0030.00316.87
8.0.170.0060.00316.93
8.0.160.0040.00416.86
8.0.150.0040.00416.87
8.0.140.0070.00016.73
8.0.130.0060.00013.23
8.0.120.0030.00516.74
8.0.110.0050.00216.80
8.0.100.0000.00716.79
8.0.90.0040.00416.82
8.0.80.0090.00616.84
8.0.70.0040.00416.81
8.0.60.0040.00416.76
8.0.50.0040.00416.68
8.0.30.0050.01617.21
8.0.20.0050.01416.92
8.0.10.0040.00416.84
8.0.00.0120.00616.91
7.4.330.0050.00015.55
7.4.320.0060.00016.43
7.4.300.0030.00316.53
7.4.290.0000.00716.51
7.4.280.0050.00316.45
7.4.270.0100.00016.52
7.4.260.0070.00016.48
7.4.250.0050.00316.50
7.4.240.0040.00316.39
7.4.230.0030.00316.35
7.4.220.0000.00816.63
7.4.210.0060.00816.47
7.4.200.0030.00316.53
7.4.160.0080.00916.43
7.4.130.0060.01516.35
7.4.120.0110.00916.32
7.4.110.0100.00716.60
7.4.100.0120.00416.59
7.4.90.0030.01416.52
7.4.80.0070.01119.39
7.4.70.0080.00816.47
7.4.60.0060.00916.44
7.4.50.0120.00316.64
7.4.40.0070.01416.23
7.4.00.0070.00715.03
7.3.330.0030.00313.10
7.3.320.0000.00513.17
7.3.310.0040.00316.23
7.3.300.0000.00616.16
7.3.290.0000.00716.26
7.3.280.0070.00916.21
7.3.260.0120.00916.36
7.3.240.0070.01116.47
7.3.230.0120.00916.42
7.3.210.0140.00716.66
7.3.200.0070.01016.23
7.3.190.0080.01216.41
7.3.180.0120.00616.53
7.3.170.0000.01616.50
7.3.160.0120.00416.55
7.3.60.0090.00614.50
7.3.50.0070.00414.51
7.3.40.0140.00714.38
7.3.30.0060.00614.66
7.3.20.0060.00616.59
7.3.10.0120.00316.41
7.3.00.0090.01216.68
7.2.330.0120.00616.51
7.2.320.0110.00716.48
7.2.310.0100.00616.39
7.2.300.0080.00916.73
7.2.290.0090.00916.46
7.2.190.0030.00915.00
7.2.180.0070.00414.79
7.2.170.0100.00314.84
7.2.160.0030.00914.98
7.2.150.0060.00616.66
7.2.140.0090.01316.57
7.2.130.0140.00916.65
7.2.120.0040.01416.88
7.2.110.0070.00716.61
7.2.100.0030.00916.73
7.2.90.0040.00716.72
7.2.80.0040.00716.67
7.2.70.0080.00416.86
7.2.60.0150.00716.80
7.2.50.0100.00316.71
7.2.40.0150.00616.77
7.2.30.0060.00616.96
7.2.20.0130.01017.00
7.2.10.0200.00016.57
7.2.00.0160.00616.92
7.1.300.0080.00315.75
7.1.290.0080.00515.67
7.1.280.0060.00615.69
7.1.270.0030.00915.70
7.1.260.0040.00715.54
7.1.250.0060.00915.41

preferences:
171.82 ms | 403 KiB | 5 Q