3v4l.org

run code in 300+ PHP versions simultaneously
<?php $students = Array( Array( 'userId' => 'user1', 'name' => 'Suman Mandal', 'age' => 20, ), Array( 'userId' => 'user2', 'name' => 'Amit Halder', 'age' => 30, ), Array( 'userId' => 'user3', 'name' => 'Asif Rahman', 'age' => 25, ), Array( 'userId' => 'user4', 'name' => 'Gopal Ghosh', 'age' => 21, ) ); $marks = Array( Array( 'userId' => 'user1', 'marks'=>80, ), Array( 'userId' => 'user3', 'marks'=>90, ) ); $students = array_column($students, null, 'userId'); $marks = array_column($marks, null, 'userId'); $marks_sheet = array_intersect_key(array_replace_recursive($students, $marks), $marks); print_r($marks_sheet);

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.0130.00819.93
8.4.150.0020.00014.05
8.4.140.0170.00917.39
8.4.130.0060.00418.79
8.4.120.0140.00524.15
8.4.110.0120.00818.75
8.4.100.0100.01018.76
8.4.90.0110.00920.61
8.4.80.0090.01020.41
8.4.70.0130.00617.56
8.4.60.0110.00918.70
8.4.50.0140.00719.61
8.4.40.0100.01019.31
8.4.30.0160.00317.39
8.4.20.0080.00020.39
8.4.10.0100.01019.26
8.3.280.0100.01018.16
8.3.270.0140.00516.75
8.3.260.0080.00916.60
8.3.250.0120.00718.67
8.3.240.0060.01017.04
8.3.230.0100.00816.34
8.3.220.0030.00419.02
8.3.210.0050.00316.41
8.3.200.0050.00316.75
8.3.190.0140.00517.25
8.3.180.0120.00516.47
8.3.170.0070.00718.98
8.3.160.0060.01318.37
8.3.150.0090.00920.57
8.3.140.0150.00016.57
8.3.130.0040.01118.18
8.3.120.0090.00018.66
8.3.110.0100.00620.94
8.3.100.0090.00924.06
8.3.90.0040.00426.77
8.3.80.0060.00616.78
8.3.70.0070.00718.31
8.3.60.0120.00318.10
8.3.50.0210.00118.08
8.3.40.0060.01118.89
8.3.30.0060.00918.41
8.3.20.0040.00419.07
8.3.10.0080.00021.78
8.3.00.0040.00420.61
8.2.290.0090.00920.43
8.2.280.0130.00718.19
8.2.270.0110.00717.29
8.2.260.0000.00818.48
8.2.250.0030.00616.37
8.2.240.0150.00019.02
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0060.00326.77
8.2.200.0030.00616.38
8.2.190.0060.00918.42
8.2.180.0090.00918.41
8.2.170.0060.00922.96
8.2.160.0170.00322.11
8.2.150.0060.00324.18
8.2.140.0000.00924.66
8.2.130.0050.00226.16
8.2.120.0140.00021.13
8.2.110.0090.00019.27
8.2.100.0090.00317.78
8.2.90.0000.00819.27
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0070.00417.66
8.2.30.0000.00717.87
8.2.20.0000.00717.98
8.2.10.0070.00017.87
8.2.00.0000.00817.56
8.1.330.0130.00521.74
8.1.320.0070.01216.21
8.1.310.0030.01216.84
8.1.300.0070.00316.07
8.1.290.0090.00018.88
8.1.280.0070.00725.92
8.1.270.0130.00622.01
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0070.00322.20
8.1.230.0040.00818.83
8.1.220.0050.00317.76
8.1.210.0050.00318.77
8.1.200.0050.00517.22
8.1.190.0080.00017.10
8.1.180.0000.00918.10
8.1.170.0050.00318.52
8.1.160.0030.00518.73
8.1.150.0000.00718.81
8.1.140.0000.00722.04
8.1.130.0030.00620.10
8.1.120.0040.00417.28
8.1.110.0000.00817.34
8.1.100.0040.00417.28
8.1.90.0040.00417.42
8.1.80.0080.00017.31
8.1.70.0000.00717.37
8.1.60.0040.00417.37
8.1.50.0040.00417.38
8.1.40.0040.00417.31
8.1.30.0080.00017.59
8.1.20.0040.00417.57
8.1.10.0020.00517.34
8.1.00.0000.00917.42
8.0.300.0040.00420.29
8.0.290.0070.00016.63
8.0.280.0000.00718.29
8.0.270.0000.00816.75
8.0.260.0030.00318.24
8.0.250.0000.00716.85
8.0.240.0040.00416.78
8.0.230.0080.00016.79
8.0.220.0060.00016.71
8.0.210.0070.00016.82
8.0.200.0000.00716.92
8.0.190.0080.00016.86
8.0.180.0080.00016.83
8.0.170.0060.00316.83
8.0.160.0040.00316.83
8.0.150.0000.00816.77
8.0.140.0040.00416.75
8.0.130.0030.00313.18
8.0.120.0050.00316.76
8.0.110.0080.00016.67
8.0.100.0040.00416.80
8.0.90.0000.00816.87
8.0.80.0060.01016.83
8.0.70.0040.00416.72
8.0.60.0080.00016.91
8.0.50.0000.00716.84
8.0.30.0090.01017.04
8.0.20.0060.01317.40
8.0.10.0050.00316.83
8.0.00.0110.00916.51
7.4.330.0050.00015.55
7.4.320.0030.00316.43
7.4.300.0000.00716.52
7.4.290.0000.00616.53
7.4.280.0070.00016.37
7.4.270.0000.00716.51
7.4.260.0040.00416.43
7.4.250.0070.00016.36
7.4.240.0030.00316.50
7.4.230.0030.00316.55
7.4.220.0000.00816.51
7.4.210.0070.01016.50
7.4.200.0000.00716.32
7.4.160.0100.00716.44
7.4.140.0100.01017.86
7.4.130.0070.01016.43
7.4.120.0090.00916.43
7.4.110.0120.00916.32
7.4.100.0070.01016.36
7.4.90.0110.00816.55
7.4.80.0060.01719.39
7.4.70.0060.01516.32
7.4.60.0030.01316.31
7.4.50.0070.01116.24
7.4.40.0080.00816.33
7.4.10.0030.01614.79
7.4.00.0090.00714.65
7.3.330.0020.00212.93
7.3.320.0050.00012.91
7.3.310.0050.00316.06
7.3.300.0030.00316.04
7.3.290.0000.00716.03
7.3.280.0090.00516.20
7.3.260.0100.00816.24
7.3.240.0100.00616.25
7.3.230.0100.00716.24
7.3.210.0130.00316.34
7.3.200.0030.01316.21
7.3.190.0110.00816.36
7.3.180.0120.00316.46
7.3.170.0090.00616.33
7.3.160.0110.00416.20
7.3.130.0150.00014.32
7.3.120.0100.00714.67
7.3.110.0190.00014.85
7.3.100.0100.00314.60
7.3.90.0080.00514.94
7.3.80.0120.00014.55
7.3.70.0000.01414.48
7.3.60.0040.00814.60
7.3.50.0060.00614.56
7.3.40.0090.00314.64
7.3.30.0030.01314.80
7.3.20.0070.01016.26
7.3.10.0070.00616.42
7.3.00.0060.00816.56
7.2.330.0030.01416.38
7.2.320.0040.01316.31
7.2.310.0030.01416.56
7.2.300.0080.00816.44
7.2.290.0060.01216.30
7.2.260.0040.01515.13
7.2.250.0000.01714.95
7.2.240.0000.01314.93
7.2.230.0130.00314.78
7.2.220.0000.01814.80
7.2.210.0090.00614.96
7.2.200.0040.01114.90
7.2.190.0070.00714.60
7.2.180.0060.00614.88
7.2.170.0000.01214.86
7.2.160.0000.01614.83
7.2.150.0100.00717.00
7.2.140.0130.00316.54
7.2.130.0050.01016.55
7.2.120.0050.00816.60
7.2.110.0050.00716.70
7.2.100.0070.00816.63
7.2.90.0060.00916.78
7.2.80.0070.00716.68
7.2.70.0050.00716.62
7.2.60.0050.00916.72
7.2.50.0060.00916.71
7.2.40.0060.00716.81
7.2.30.0050.01016.87
7.2.20.0050.00816.69
7.2.10.0080.00616.71
7.2.00.0060.00916.60
7.1.330.0110.00415.74
7.1.320.0110.00415.87
7.1.310.0030.01015.45
7.1.300.0030.00615.71
7.1.290.0050.00515.80
7.1.280.0040.00815.61
7.1.270.0000.01415.57
7.1.260.0100.00315.60
7.1.250.0050.01015.61
7.1.240.0030.01015.50
7.1.230.0100.00215.79
7.1.220.0080.00815.73
7.1.210.0030.01215.66
7.1.200.0090.00615.61
7.1.190.0080.00315.87
7.1.180.0090.00615.68
7.1.170.0060.00615.71
7.1.160.0100.00415.61
7.1.150.0060.00815.70
7.1.140.0060.00615.51
7.1.130.0030.01115.66
7.1.120.0070.00515.54
7.1.110.0030.00915.58
7.1.100.0070.00515.82
7.1.90.0050.00915.76
7.1.80.0020.01215.54
7.1.70.0080.00515.61
7.1.60.0130.00924.62
7.1.50.0160.00824.71
7.1.40.0180.01024.55
7.1.30.0180.00824.73
7.1.20.0140.01024.44
7.1.10.0050.00915.71
7.1.00.0080.00315.69
7.0.330.0100.00315.40
7.0.320.0100.00315.29
7.0.310.0140.00015.50
7.0.300.0070.00715.27
7.0.290.0060.00615.26
7.0.280.0000.01415.18
7.0.270.0100.00015.03
7.0.260.0040.00715.47
7.0.250.0070.00715.36
7.0.240.0030.01015.14
7.0.230.0100.00315.20
7.0.220.0090.00615.44
7.0.210.0030.01115.15
7.0.200.0030.01215.41
7.0.190.0060.00615.49
7.0.180.0030.01015.37
7.0.170.0040.00415.41
7.0.160.0110.00015.34
7.0.150.0000.01315.16
7.0.140.0000.01215.46
7.0.130.0120.00615.00
7.0.120.0040.01115.30
7.0.110.0000.01315.42
7.0.100.0000.01315.20
7.0.90.0030.00915.49
7.0.80.0030.00915.38
7.0.70.0100.00315.45
7.0.60.0070.00715.42
7.0.50.0040.00815.34
7.0.40.0070.00413.46
7.0.30.0060.00613.10
7.0.20.0030.01013.35
7.0.10.0040.00713.27
7.0.00.0030.00613.44
5.6.400.0030.01014.59
5.6.390.0000.01514.14
5.6.380.0040.01014.26
5.6.370.0070.00714.14
5.6.360.0070.00714.57
5.6.350.0030.01414.21
5.6.340.0070.00714.48
5.6.330.0120.00014.26
5.6.320.0040.01113.84
5.6.310.0030.00613.86
5.6.300.0150.00014.21
5.6.290.0090.00614.51
5.6.280.0090.00914.08
5.6.270.0100.00614.39
5.6.260.0030.01014.18
5.6.250.0000.01014.18
5.6.240.0000.01414.06
5.6.230.0100.00614.29
5.6.220.0000.01514.17
5.6.210.0060.00614.21
5.6.200.0000.00814.36
5.6.190.0000.00814.21
5.6.180.0030.00914.13
5.6.170.0030.01014.38
5.6.160.0070.01014.54
5.6.150.0000.01114.09
5.6.140.0110.00414.41
5.6.130.0000.01514.02
5.6.120.0090.00614.15
5.6.110.0060.00914.11
5.6.100.0040.00414.25
5.6.90.0030.00914.08
5.6.80.0040.00714.21
5.6.70.0040.00714.30
5.6.60.0060.00314.18
5.6.50.0070.00714.33
5.6.40.0030.01414.04
5.6.30.0070.00314.00
5.6.20.0040.01214.04
5.6.10.0030.00713.86
5.6.00.0030.00913.99

preferences:
34.68 ms | 403 KiB | 5 Q