3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original = ['test' => 'test', 'test2'=>'another test', 'test3' => 'third test']; $address = ['test' => 'test', 'test2'=>'another test', 'test3' => 'third test diff', 'test4' => 'ignore me bro']; $changes = array_filter($original, function ($key, $data) use ($address) { return $data === $address->getData($key); }, ARRAY_FILTER_USE_BOTH); var_dump($changes);

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.0110.00416.75
8.3.50.0080.01021.11
8.3.40.0110.00418.98
8.3.30.0100.00318.67
8.3.20.0020.00520.16
8.3.10.0080.00023.65
8.3.00.0080.00017.89
8.2.180.0090.01216.75
8.2.170.0090.00622.96
8.2.160.0140.00020.38
8.2.150.0030.00524.18
8.2.140.0070.00724.66
8.2.130.0050.00226.16
8.2.120.0040.00417.75
8.2.110.0030.00722.13
8.2.100.0100.00317.63
8.2.90.0060.00319.28
8.2.80.0030.00617.97
8.2.70.0050.00317.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0040.00419.19
8.2.30.0040.00420.76
8.2.20.0040.00417.82
8.2.10.0030.00618.00
8.2.00.0050.00318.00
8.1.280.0080.00825.92
8.1.270.0070.00723.91
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00722.42
8.1.230.0090.00317.79
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0080.00017.23
8.1.180.0030.00618.10
8.1.170.0000.00818.57
8.1.160.0000.00722.13
8.1.150.0040.00418.83
8.1.140.0080.00017.46
8.1.130.0070.00017.66
8.1.120.0070.00017.44
8.1.110.0050.00217.51
8.1.100.0080.00017.37
8.1.90.0040.00417.47
8.1.80.0000.00717.41
8.1.70.0000.00717.28
8.1.60.0080.00017.47
8.1.50.0040.00417.59
8.1.40.0000.00817.50
8.1.30.0110.00017.52
8.1.20.0050.00517.55
8.1.10.0050.00217.56
8.1.00.0040.00417.48
8.0.300.0020.00518.77
8.0.290.0040.00416.63
8.0.280.0000.00718.52
8.0.270.0050.00317.18
8.0.260.0030.00617.14
8.0.250.0040.00416.91
8.0.240.0030.00317.02
8.0.230.0000.00716.95
8.0.220.0050.00316.94
8.0.210.0040.00416.95
8.0.200.0000.00616.98
8.0.190.0030.00516.89
8.0.180.0000.00716.88
8.0.170.0050.00317.00
8.0.160.0040.00417.02
8.0.150.0040.00416.87
8.0.140.0030.00516.98
8.0.130.0000.00613.38
8.0.120.0040.00416.91
8.0.110.0070.00016.94
8.0.100.0050.00316.99
8.0.90.0000.00816.99
8.0.80.0080.00816.98
8.0.70.0030.00316.86
8.0.60.0070.00017.02
8.0.50.0030.00517.04
8.0.30.0020.01717.29
8.0.20.0120.00717.40
8.0.10.0030.00517.05
8.0.00.0100.00716.80
7.4.330.0000.00515.08
7.4.320.0030.00316.37
7.4.300.0040.00416.61
7.4.290.0000.01116.52
7.4.280.0030.00616.63
7.4.270.0030.00316.63
7.4.260.0000.00716.45
7.4.250.0050.00216.50
7.4.240.0020.00516.49
7.4.230.0030.00316.41
7.4.220.0060.01216.62
7.4.210.0090.00616.63
7.4.200.0040.00416.54
7.4.160.0090.00916.78
7.4.150.0090.00917.40
7.4.140.0140.00517.86
7.4.130.0110.00816.69
7.4.120.0050.01116.40
7.4.110.0110.00716.54
7.4.100.0090.00916.58
7.4.90.0110.00816.40
7.4.80.0140.00719.39
7.4.70.0160.00016.58
7.4.60.0060.01016.58
7.4.50.0060.00316.48
7.4.40.0130.00316.52
7.4.30.0100.00616.42
7.4.00.0070.01014.93
7.3.330.0060.00013.32
7.3.320.0030.00313.38
7.3.310.0070.00016.37
7.3.300.0000.00716.22
7.3.290.0050.00916.36
7.3.280.0120.00716.40
7.3.270.0130.01217.40
7.3.260.0080.00816.46
7.3.250.0140.00516.35
7.3.240.0060.01316.59
7.3.230.0120.00616.57
7.3.210.0050.01116.44
7.3.200.0130.00316.42
7.3.190.0130.00316.59
7.3.180.0060.01016.28
7.3.170.0040.01716.39
7.3.160.0120.00416.39
7.3.10.0100.00516.82
7.3.00.0070.00516.40
7.2.330.0070.01016.61
7.2.320.0030.01416.62
7.2.310.0120.00616.72
7.2.300.0070.00716.54
7.2.290.0060.01716.52
7.2.130.0050.00816.79
7.2.120.0040.01116.76
7.2.110.0060.00516.75
7.2.100.0050.00716.76
7.2.90.0090.00416.84
7.2.80.0050.00916.78
7.2.70.0040.00816.86
7.2.60.0100.00416.85
7.2.50.0080.00316.80
7.2.40.0050.00916.95
7.2.30.0070.00916.94
7.2.20.0050.00816.53
7.2.10.0010.01116.59
7.2.00.0090.00717.46
7.1.250.0070.00515.59
7.1.240.0060.00615.70
7.1.230.0070.00715.88
7.1.220.0030.00615.44
7.1.210.0130.00315.57
7.1.200.0040.00615.89
7.1.190.0000.01115.81
7.1.180.0070.00715.54
7.1.170.0000.00915.94
7.1.160.0030.00715.54
7.1.150.0060.00915.89
7.1.140.0080.00415.76
7.1.130.0100.00715.82
7.1.120.0060.00315.93
7.1.110.0030.01015.84
7.1.100.0000.01417.01
7.1.90.0130.00615.66
7.1.80.0030.00615.62
7.1.70.0070.00316.54
7.1.60.0100.00817.58
7.1.50.0170.00925.10
7.1.40.0030.00515.78
7.1.30.0000.01415.62
7.1.20.0000.01015.84
7.1.10.0070.00715.82
7.1.00.0050.04218.86
7.0.330.0000.01015.41
7.0.320.0000.00915.52
7.0.310.0000.01015.36
7.0.300.0080.00315.43
7.0.290.0070.00715.36
7.0.280.0100.00315.16
7.0.270.0110.00415.31
7.0.260.0030.00615.33
7.0.250.0100.00315.43
7.0.240.0070.00715.41
7.0.230.0070.00315.26
7.0.220.0080.00815.19
7.0.210.0060.00615.07
7.0.200.0090.00015.87
7.0.190.0070.00715.48
7.0.180.0000.01315.47
7.0.170.0070.01115.12
7.0.160.0120.00415.46
7.0.150.0030.01015.31
7.0.140.0060.00615.15
7.0.130.0000.01015.30
7.0.120.0070.00715.34
7.0.110.0000.01515.53
7.0.100.0040.00415.09
7.0.90.0060.00915.23
7.0.80.0030.01015.16
7.0.70.0070.00715.39
7.0.60.0080.02517.51
7.0.50.0030.02516.61
7.0.40.0140.03716.81
7.0.30.0150.02216.88
7.0.20.0210.03716.73
7.0.10.0070.04716.80
7.0.00.0080.04616.78
5.6.380.0030.00714.09
5.6.370.0090.00614.40
5.6.360.0100.00314.40
5.6.350.0030.00914.23
5.6.340.0030.01414.47
5.6.330.0030.00614.43
5.6.320.0080.00313.85
5.6.310.0030.00614.58
5.6.300.0070.00714.21
5.6.290.0080.00014.09
5.6.280.0030.02017.53
5.6.270.0040.01114.31
5.6.260.0030.01014.08
5.6.250.0030.01014.11
5.6.240.0040.00714.18
5.6.230.0090.00014.46
5.6.220.0060.00314.11
5.6.210.0100.03817.49
5.6.200.0070.04016.19
5.6.190.0030.02717.36
5.6.180.0230.03717.31
5.6.170.0220.03717.41
5.6.160.0040.02417.30
5.6.150.0080.02616.24
5.6.140.0050.04516.13
5.6.130.0050.04716.25
5.6.120.0120.04017.53
5.6.110.0170.02817.63
5.6.100.0030.03517.58
5.6.90.0070.05017.62
5.6.80.0030.02317.28
5.6.70.0040.01114.25
5.6.60.0100.00714.10
5.6.50.0120.00014.13
5.6.40.0160.00614.07
5.6.30.0110.00414.01
5.6.20.0090.00614.13
5.6.10.0110.00713.87
5.6.00.0070.01014.20
5.5.380.0030.01011.05
5.5.370.0030.00710.87
5.5.360.0030.00710.82
5.5.350.0170.03815.84
5.5.340.0080.02414.51
5.5.330.0100.03815.70
5.5.320.0050.02515.64
5.5.310.0230.03515.76
5.5.300.0020.02414.56
5.5.290.0020.04714.67
5.5.280.0030.02816.04
5.5.270.0030.03016.07
5.5.260.0030.05015.99
5.5.250.0100.04315.75
5.5.240.0070.02015.49
5.5.230.0000.01011.20
5.5.220.0040.00410.72
5.5.210.0000.00611.16
5.5.200.0030.00710.94
5.5.190.0030.00611.25
5.5.180.0040.01110.90
5.5.170.0040.00710.99
5.5.160.0100.00011.11
5.5.150.0090.00010.98
5.5.140.0000.01110.94
5.5.130.0060.00611.05
5.5.120.0090.00311.21
5.5.110.0110.00410.82
5.5.100.0080.00310.82
5.5.90.0060.00910.92
5.5.80.0060.00610.87
5.5.70.0070.00711.21
5.5.60.0100.00711.17
5.5.50.0030.00910.69
5.5.40.0130.00310.83
5.5.30.0070.00011.23
5.5.20.0040.01111.11
5.5.10.0060.00310.77
5.5.00.0100.00310.75
5.4.450.0270.03315.29
5.4.440.0290.03215.25
5.4.430.0320.03115.14
5.4.420.0450.02315.19
5.4.410.0300.03015.37
5.4.400.0280.03314.86
5.4.390.0250.03415.06
5.4.380.0340.02314.97
5.4.370.0370.02515.12
5.4.360.0370.02315.17
5.4.350.0270.03515.08
5.4.340.0330.02714.83
5.4.330.0080.00510.78
5.4.320.0320.02515.03
5.4.310.0390.03514.94
5.4.300.0350.04114.99
5.4.290.0280.03515.05
5.4.280.0360.03015.00
5.4.270.0340.02514.98
5.4.260.0330.03015.04
5.4.250.0280.03615.14
5.4.240.0330.03315.16
5.4.230.0370.02914.96
5.4.220.0380.03215.04
5.4.210.0300.03515.20
5.4.200.0400.02715.14
5.4.190.0360.03015.09
5.4.180.0330.03314.80
5.4.170.0380.03315.08
5.4.160.0450.02515.07
5.4.150.0350.03414.81
5.4.140.0410.02813.68
5.4.130.0350.03013.63
5.4.120.0410.02413.72
5.4.110.0360.02813.54
5.4.100.0370.02913.65
5.4.90.0420.02213.81
5.4.80.0350.03113.70
5.4.70.0080.02313.63
5.4.60.0270.03713.66
5.4.50.0150.02213.80
5.4.40.0170.01813.60
5.4.30.0080.02813.70
5.4.20.0030.03113.76
5.4.10.0320.02513.74
5.4.00.0210.00911.09

preferences:
51.1 ms | 401 KiB | 5 Q