3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1= array("name"=>"sam", "add"=> "bangalore", "country"=> "India"); $arr2= array("name"=>"sur", "add"=> "chennai", "country"=> "India"); $union_arr=$arr1 + $arr2; print_r(array_reverse($union_arr)); ?>

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.0070.00718.31
8.3.50.0130.00522.99
8.3.40.0040.01118.46
8.3.30.0070.00718.45
8.3.20.0040.00420.25
8.3.10.0000.00821.60
8.3.00.0080.00017.67
8.2.180.0040.01418.16
8.2.170.0070.00722.96
8.2.160.0000.01419.04
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0000.00720.52
8.2.120.0070.00026.35
8.2.110.0030.00622.13
8.2.100.0030.00917.72
8.2.90.0000.00817.75
8.2.80.0060.00318.82
8.2.70.0040.00417.48
8.2.60.0030.00517.75
8.2.50.0000.00817.63
8.2.40.0040.00418.04
8.2.30.0040.00419.06
8.2.20.0000.00717.62
8.2.10.0070.00018.04
8.2.00.0100.00018.09
8.1.280.0130.00725.92
8.1.270.0050.00323.88
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00720.27
8.1.230.0040.00817.70
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0040.00417.22
8.1.190.0100.00017.10
8.1.180.0030.00518.10
8.1.170.0040.00417.62
8.1.160.0030.00322.09
8.1.150.0000.01118.69
8.1.140.0000.00719.55
8.1.130.0030.00317.61
8.1.120.0030.00317.40
8.1.110.0040.00417.36
8.1.100.0070.00017.34
8.1.90.0040.00417.37
8.1.80.0000.00817.37
8.1.70.0000.00717.29
8.1.60.0000.00717.45
8.1.50.0080.00017.34
8.1.40.0040.00417.45
8.1.30.0000.00917.60
8.1.20.0020.00517.40
8.1.10.0030.00617.50
8.1.00.0040.00417.23
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0040.00418.38
8.0.270.0000.00717.16
8.0.260.0030.00317.18
8.0.250.0070.00016.94
8.0.240.0070.00016.89
8.0.230.0100.00016.84
8.0.220.0040.00416.75
8.0.210.0060.00316.93
8.0.200.0000.00716.91
8.0.190.0080.00016.91
8.0.180.0000.00816.83
8.0.170.0000.00716.80
8.0.160.0000.00716.90
8.0.150.0000.00716.84
8.0.140.0030.00316.73
8.0.130.0000.00513.27
8.0.120.0000.00816.89
8.0.110.0000.00816.72
8.0.100.0030.00316.81
8.0.90.0060.00316.95
8.0.80.0110.00716.76
8.0.70.0080.00016.65
8.0.60.0030.00516.86
8.0.50.0000.00716.70
8.0.30.0080.00717.09
8.0.20.0110.00817.40
8.0.10.0070.00017.11
8.0.00.0040.01416.51
7.4.330.0050.00015.08
7.4.320.0060.00016.44
7.4.300.0020.00516.41
7.4.290.0000.00616.52
7.4.280.0040.00416.49
7.4.270.0030.00316.46
7.4.260.0040.00416.41
7.4.250.0070.00016.51
7.4.240.0030.00316.41
7.4.230.0000.00716.48
7.4.220.0120.01216.45
7.4.210.0060.00916.44
7.4.200.0070.00016.50
7.4.160.0120.00916.45
7.4.150.0070.01117.40
7.4.140.0110.01017.86
7.4.130.0090.00916.30
7.4.120.0090.00816.51
7.4.110.0140.00416.51
7.4.100.0130.00616.35
7.4.90.0120.00616.40
7.4.80.0170.00019.39
7.4.70.0140.00316.46
7.4.60.0070.01016.54
7.4.50.0030.01316.52
7.4.40.0090.00916.34
7.4.30.0060.01016.39
7.4.00.0070.01014.93
7.3.330.0000.00513.17
7.3.320.0030.00312.95
7.3.310.0000.00716.06
7.3.300.0000.00716.20
7.3.290.0030.01116.18
7.3.280.0070.00816.21
7.3.270.0090.00617.40
7.3.260.0130.00516.44
7.3.250.0110.00716.22
7.3.240.0110.00516.24
7.3.230.0060.01016.39
7.3.210.0040.01116.50
7.3.200.0070.01016.44
7.3.190.0000.01616.22
7.3.180.0150.00316.54
7.3.170.0090.00616.31
7.3.160.0070.01116.41
7.3.120.0030.01014.79
7.3.110.0100.00314.71
7.3.100.0030.01014.75
7.3.90.0060.00914.99
7.3.80.0060.00314.86
7.3.70.0070.00714.66
7.3.60.0090.00614.40
7.3.50.0040.00714.66
7.3.40.0090.00014.79
7.3.30.0030.01014.37
7.3.20.0030.01116.39
7.3.10.0080.00716.55
7.3.00.0000.01416.52
7.2.330.0140.00316.25
7.2.320.0100.00716.63
7.2.310.0100.01316.18
7.2.300.0100.00716.62
7.2.290.0100.00716.43
7.2.240.0030.00614.80
7.2.230.0060.01015.18
7.2.220.0030.00514.88
7.2.210.0040.01414.90
7.2.200.0070.01114.98
7.2.190.0030.01014.73
7.2.180.0090.00314.98
7.2.170.0000.00914.88
7.2.160.0000.01015.02
7.2.150.0150.00016.48
7.2.140.0060.00916.90
7.2.130.0100.00316.73
7.2.120.0080.00616.74
7.2.110.0080.00916.69
7.2.100.0050.00616.82
7.2.90.0030.01016.67
7.2.80.0020.01516.82
7.2.70.0100.00516.77
7.2.60.0070.00816.83
7.2.50.0040.01016.82
7.2.40.0030.00916.82
7.2.30.0080.00616.74
7.2.20.0090.00316.68
7.2.10.0040.00916.77
7.2.00.0060.00817.45
7.1.330.0040.00415.66
7.1.320.0090.00315.80
7.1.310.0070.00715.75
7.1.300.0000.01315.70
7.1.290.0040.01115.73
7.1.280.0030.00815.45
7.1.270.0000.01215.78
7.1.260.0030.00815.76
7.1.250.0060.00515.75
7.1.70.0050.00317.18
7.1.60.0030.01019.87
7.1.00.0000.07322.48
7.0.200.0100.00314.99
7.0.70.0970.06319.92
7.0.60.0670.06020.07
7.0.50.0900.06020.26
7.0.40.0730.09320.39
7.0.30.1070.08720.34
7.0.20.0870.06720.32
7.0.10.0870.06720.24
7.0.00.0930.06720.38
5.6.280.0030.07320.89
5.6.220.0700.08320.68
5.6.210.0800.07020.59
5.6.200.0770.07721.06
5.6.190.1000.06721.09
5.6.180.0530.06021.12
5.6.170.0670.05720.99
5.6.160.0730.06721.07
5.6.150.0770.05721.08
5.6.140.0100.06321.07
5.6.130.0300.07021.07
5.6.120.0630.06721.06
5.6.110.0830.06021.07
5.6.100.0700.05721.10
5.6.90.0730.07021.07
5.6.80.0830.06020.56
5.6.70.0230.07020.46
5.6.60.0700.06020.40
5.6.50.0600.05720.40
5.6.40.0570.06020.42
5.6.30.0670.05720.43
5.6.20.0500.05320.41
5.6.10.0600.05720.43
5.6.00.0530.07320.37
5.5.360.0500.07720.54
5.5.350.0570.06720.43
5.5.340.0800.04720.93
5.5.330.0770.06320.94
5.5.320.0470.06720.78
5.5.310.0830.07720.94
5.5.300.0470.05320.89
5.5.290.0570.06320.89
5.5.280.0270.07020.94
5.5.270.0930.04720.82
5.5.260.0670.05720.93
5.5.250.0570.07320.73
5.5.240.0500.05720.27
5.5.230.0730.06020.28
5.5.220.0600.06320.29
5.5.210.0570.05320.26
5.5.200.0630.05320.30
5.5.190.0730.06720.27
5.5.180.0670.06020.05
5.5.160.0700.07720.29
5.5.150.0800.06720.27
5.5.140.0670.07320.27
5.5.130.0730.08320.30
5.5.120.0700.05020.29
5.5.110.0630.06020.27
5.5.100.0830.03720.19
5.5.90.0600.05720.16
5.5.80.0700.05020.01
5.5.70.0670.06320.12
5.5.60.0670.06320.08
5.5.50.0570.05720.16
5.5.40.0630.04720.21
5.5.30.0770.06720.07
5.5.20.0670.06020.07
5.5.10.0700.05720.11
5.5.00.0730.05320.18

preferences:
61.79 ms | 401 KiB | 5 Q