3v4l.org

run code in 500+ 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.90.0090.00617.65
8.5.80.0110.00817.54
8.5.70.0110.00717.58
8.5.60.0110.00917.63
8.5.50.0080.00517.42
8.5.40.0130.00718.34
8.5.30.0120.00718.89
8.5.20.0100.00818.75
8.5.10.0160.00616.48
8.5.00.0120.00718.23
8.4.240.0150.00719.53
8.4.230.0150.00819.41
8.4.220.0160.00719.30
8.4.210.0100.00819.34
8.4.200.0220.01019.49
8.4.190.0150.01019.42
8.4.180.0130.01119.62
8.4.170.0120.00619.97
8.4.160.0140.00920.50
8.4.150.0090.00717.68
8.4.140.0160.00917.46
8.4.130.0110.00618.16
8.4.120.0160.00620.92
8.4.110.0130.00818.12
8.4.100.0160.00718.22
8.4.90.0100.01019.01
8.4.80.0120.00919.00
8.4.70.0140.00817.58
8.4.60.0150.01018.18
8.4.50.0130.00918.65
8.4.40.0130.00818.53
8.4.30.0160.00617.41
8.4.20.0130.00518.97
8.4.10.0140.00718.48
8.3.330.0160.00618.38
8.3.320.0140.00818.34
8.3.310.0120.00918.28
8.3.300.0140.00819.52
8.3.290.0140.00919.44
8.3.280.0130.00918.25
8.3.270.0130.00616.68
8.3.260.0090.00616.58
8.3.250.0120.00817.66
8.3.240.0110.00816.80
8.3.230.0130.00716.42
8.3.220.0100.00517.84
8.3.210.0090.00616.54
8.3.200.0110.00516.65
8.3.190.0130.00716.95
8.3.180.0100.00416.51
8.3.170.0100.00817.77
8.3.160.0110.01117.39
8.3.150.0120.00818.54
8.3.140.0160.00316.56
8.3.130.0110.00817.37
8.3.120.0110.00517.66
8.3.110.0130.00718.80
8.3.100.0140.00720.30
8.3.90.0090.00621.69
8.3.80.0090.00916.61
8.3.70.0120.00717.43
8.3.60.0130.00617.29
8.3.50.0180.00417.59
8.3.40.0130.01018.43
8.3.30.0120.00818.07
8.3.20.0140.00718.43
8.3.10.0140.00419.85
8.3.00.0090.00619.27
8.2.330.0060.01217.89
8.2.320.0130.00918.00
8.2.310.0130.00717.99
8.2.300.0200.00919.20
8.2.290.0170.00918.45
8.2.280.0190.00817.41
8.2.270.0180.00916.98
8.2.260.0160.00717.53
8.2.250.0140.00916.41
8.2.240.0200.00517.76
8.2.230.0150.00819.54
8.2.220.0190.00526.96
8.2.210.0160.00721.60
8.2.200.0150.00816.30
8.2.190.0170.00917.46
8.2.180.0200.00817.45
8.2.170.0170.00820.45
8.2.160.0210.00419.98
8.2.150.0130.00421.03
8.2.140.0170.00621.20
8.2.130.0170.00522.00
8.2.120.0200.00519.47
8.2.110.0170.00618.55
8.2.100.0220.00417.73
8.2.90.0160.00618.63
8.2.80.0160.00617.85
8.2.70.0150.00717.67
8.2.60.0090.00717.84
8.2.50.0130.01017.96
8.2.40.0190.00417.72
8.2.30.0120.00917.85
8.2.20.0170.00617.78
8.2.10.0190.00417.85
8.2.00.0130.00817.74
8.1.340.0250.01017.31
8.1.330.0210.00719.04
8.1.320.0150.01016.27
8.1.310.0160.01116.39
8.1.300.0190.00516.09
8.1.290.0180.00517.47
8.1.280.0180.00820.95
8.1.270.0230.00619.86
8.1.260.0150.00621.94
8.1.250.0140.00422.87
8.1.240.0110.00619.96
8.1.230.0110.00718.27
8.1.220.0090.00817.77
8.1.210.0090.00818.21
8.1.200.0090.00617.38
8.1.190.0120.00517.33
8.1.180.0070.00517.82
8.1.170.0070.00218.13
8.1.160.0090.00818.24
8.1.150.0070.00918.27
8.1.140.0090.00719.86
8.1.130.0100.00718.81
8.1.120.0140.00817.54
8.1.110.0050.01217.55
8.1.100.0100.00417.61
8.1.90.0060.00417.59
8.1.80.0090.00117.53
8.1.70.0080.00817.56
8.1.60.0110.00517.62
8.1.50.0160.00717.48
8.1.40.0100.00617.59
8.1.30.0070.00217.76
8.1.20.0100.00617.76
8.1.10.0070.00517.58
8.1.00.0030.00717.56
8.0.300.0080.00518.61
8.0.290.0120.00416.76
8.0.280.0070.00817.59
8.0.270.0090.00716.87
8.0.260.0100.00517.62
8.0.250.0080.00616.95
8.0.240.0110.00416.91
8.0.230.0110.00416.88
8.0.220.0100.00216.85
8.0.210.0170.00416.81
8.0.200.0150.00616.97
8.0.190.0150.00216.89
8.0.180.0170.00316.95
8.0.170.0160.00516.93
8.0.160.0150.00516.88
8.0.150.0130.00616.81
8.0.140.0100.00716.72
8.0.130.0160.00514.98
8.0.120.0100.00416.82
8.0.110.0120.00316.77
8.0.100.0100.00716.78
8.0.90.0080.00816.88
8.0.80.0100.00916.87
8.0.70.0110.00516.81
8.0.60.0140.00216.88
8.0.50.0080.00716.89
8.0.30.0120.00916.98
8.0.20.0110.01117.24
8.0.10.0120.00316.91
8.0.00.0130.00816.77
7.4.330.0090.00416.13
7.4.320.0080.00517.51
7.4.300.0080.00716.58
7.4.290.0050.00817.49
7.4.280.0090.00317.44
7.4.270.0040.00917.51
7.4.260.0070.00617.48
7.4.250.0080.00517.40
7.4.240.0070.00617.50
7.4.230.0070.00517.47
7.4.220.0110.00716.57
7.4.210.0090.00916.96
7.4.200.0050.00717.41
7.4.190.0110.00918.32
7.4.180.0150.00418.54
7.4.160.0110.00716.85
7.4.150.0140.00616.68
7.4.140.0110.01017.67
7.4.130.0130.00816.45
7.4.120.0110.00816.44
7.4.110.0170.00716.38
7.4.100.0120.00816.45
7.4.90.0140.00816.57
7.4.80.0080.01217.92
7.4.70.0090.01016.37
7.4.60.0080.01016.33
7.4.50.0100.01016.27
7.4.40.0120.00716.34
7.4.30.0140.00516.52
7.4.20.0080.01116.54
7.4.10.0130.01215.59
7.4.00.0110.00715.27
7.3.330.0080.00514.74
7.3.320.0060.00114.70
7.3.310.0050.00416.31
7.3.300.0090.00316.17
7.3.290.0090.00716.20
7.3.280.0100.00516.23
7.3.270.0080.00716.49
7.3.260.0100.00816.64
7.3.250.0230.00816.26
7.3.240.0110.00816.29
7.3.230.0130.00616.26
7.3.220.0160.00716.33
7.3.210.0140.00516.20
7.3.200.0080.00916.24
7.3.190.0100.00817.17
7.3.180.0120.00517.22
7.3.170.0110.00717.30
7.3.160.0130.00417.13
7.3.150.0220.00816.29
7.3.140.0140.00616.42
7.3.130.0160.00215.37
7.3.120.0090.00916.43
7.3.110.0130.00516.41
7.3.100.0110.00516.33
7.3.90.0100.00616.75
7.3.80.0100.00416.33
7.3.70.0050.01116.36
7.3.60.0090.00616.50
7.3.50.0100.00716.51
7.3.40.0120.00416.45
7.3.30.0080.01016.67
7.3.20.0110.00717.31
7.3.10.0090.00616.79
7.3.00.0080.00816.93
7.2.340.0130.00718.40
7.2.330.0120.01316.42
7.2.320.0190.00816.37
7.2.310.0150.01016.45
7.2.300.0190.00616.38
7.2.290.0150.01016.31
7.2.280.0240.01016.36
7.2.270.0310.00516.36
7.2.260.0180.01015.75
7.2.250.0120.01215.64
7.2.240.0100.00915.54
7.2.230.0140.00615.55
7.2.220.0130.01415.49
7.2.210.0170.00715.61
7.2.200.0170.00915.71
7.2.190.0160.00715.52
7.2.180.0150.00815.79
7.2.170.0140.00815.69
7.2.160.0140.01115.67
7.2.150.0190.00817.66
7.2.140.0210.00417.48
7.2.130.0090.01016.97
7.2.120.0090.00916.98
7.2.110.0090.00716.97
7.2.100.0100.00816.91
7.2.90.0090.00817.05
7.2.80.0110.00716.97
7.2.70.0090.00716.94
7.2.60.0060.00917.01
7.2.50.0080.00817.00
7.2.40.0070.00717.08
7.2.30.0070.00917.13
7.2.20.0070.00817.00
7.2.10.0100.00617.01
7.2.00.0090.00816.91
7.1.330.0140.00416.62
7.1.320.0120.00616.57
7.1.310.0100.01016.54
7.1.300.0100.00616.57
7.1.290.0090.00616.61
7.1.280.0060.00816.63
7.1.270.0050.01016.57
7.1.260.0120.00516.54
7.1.250.0060.00915.99
7.1.240.0100.00716.52
7.1.230.0100.00316.37
7.1.220.0100.00716.33
7.1.210.0070.01016.30
7.1.200.0110.00616.26
7.1.190.0120.00316.44
7.1.180.0100.00616.32
7.1.170.0080.00616.28
7.1.160.0110.00516.26
7.1.150.0080.00816.31
7.1.140.0080.00716.16
7.1.130.0070.01016.27
7.1.120.0100.00516.19
7.1.110.0070.00716.19
7.1.100.0090.00516.33
7.1.90.0070.00716.33
7.1.80.0050.01016.16
7.1.70.0090.00616.20
7.1.60.0130.00822.22
7.1.50.0150.00822.28
7.1.40.0170.00822.17
7.1.30.0160.00722.29
7.1.20.0130.00922.11
7.1.10.0060.00816.27
7.1.00.0090.00516.28
7.0.330.0160.00616.19
7.0.320.0180.00516.21
7.0.310.0170.00416.18
7.0.300.0170.00716.08
7.0.290.0160.00616.12
7.0.280.0130.01016.24
7.0.270.0180.00416.08
7.0.260.0080.00716.32
7.0.250.0090.00716.39
7.0.240.0080.00916.28
7.0.230.0120.00616.32
7.0.220.0120.00516.34
7.0.210.0070.00916.21
7.0.200.0090.00916.38
7.0.190.0100.00716.42
7.0.180.0100.00816.29
7.0.170.0110.00516.36
7.0.160.0140.00416.29
7.0.150.0050.00816.07
7.0.140.0030.00916.19
7.0.130.0110.00616.09
7.0.120.0060.00716.25
7.0.110.0040.00816.30
7.0.100.0060.00916.21
7.0.90.0040.00616.23
7.0.80.0060.00816.30
7.0.70.0130.00516.24
7.0.60.0110.00516.29
7.0.50.0100.00716.19
7.0.40.0120.00415.33
7.0.30.0080.00815.10
7.0.20.0080.00915.21
7.0.10.0070.00815.21
7.0.00.0070.00615.25
5.6.400.0090.00715.30
5.6.390.0060.01115.03
5.6.380.0070.01014.84
5.6.370.0100.00515.05
5.6.360.0100.00615.26
5.6.350.0080.01015.10
5.6.340.0090.00715.24
5.6.330.0120.00315.11
5.6.320.0070.00914.93
5.6.310.0090.00614.89
5.6.300.0130.00415.02
5.6.290.0090.00815.30
5.6.280.0100.00815.07
5.6.270.0100.00715.21
5.6.260.0060.01015.13
5.6.250.0070.00815.15
5.6.240.0050.01315.06
5.6.230.0150.00815.15
5.6.220.0140.00915.17
5.6.210.0160.00615.13
5.6.200.0130.00815.26
5.6.190.0120.00915.06
5.6.180.0140.00815.13
5.6.170.0150.00815.22
5.6.160.0150.00915.43
5.6.150.0100.01015.03
5.6.140.0170.00615.36
5.6.130.0120.01115.11
5.6.120.0170.00515.21
5.6.110.0120.00915.04
5.6.100.0140.00415.16
5.6.90.0140.00815.00
5.6.80.0140.00915.10
5.6.70.0150.00615.15
5.6.60.0140.00415.14
5.6.50.0170.00515.03
5.6.40.0140.01015.03
5.6.30.0140.00515.05
5.6.20.0140.00915.05
5.6.10.0120.00714.95
5.6.00.0130.00815.02

preferences:
48.23 ms | 2166 KiB | 5 Q