3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json1 = '{"data": [{"category": "Games","id": "45345"}, {"category": "Music","id": "345345345"}, {"category": "Food","id": "1"}, {"category": "Pets","id": "13245345"}],"paging": {"next": "https://graph.facebook.com/1161990140/likes?limit=2&offset=2&__after_id=118243704898877"}}'; $json2 = '{"data": {"something": "blah","posts": [{"id": "34241","title": "orange"}],"items": [{"id": "1","name": "orange"},{"id": "2","name": "dog"},{"id": "3","name": "cat"},{"id": "4","name": "apple"}]}}'; $array1 = json_decode($json1, true); $array2 = json_decode($json2, true); $result = array_diff($array1, $array2); var_dump($result);

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.0100.01016.75
8.3.50.0090.01018.35
8.3.40.0000.01418.79
8.3.30.0070.00718.43
8.3.20.0000.00818.60
8.3.10.0060.00320.54
8.3.00.0090.00019.26
8.2.180.0140.00716.75
8.2.170.0100.01022.96
8.2.160.0030.01319.21
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00620.56
8.2.110.0100.00022.27
8.2.100.0110.00019.63
8.2.90.0000.00817.38
8.2.80.0050.00318.61
8.2.70.0000.00817.50
8.2.60.0040.00417.50
8.2.50.0040.00417.80
8.2.40.0060.00318.04
8.2.30.0040.00418.06
8.2.20.0000.00919.29
8.2.10.0030.00517.74
8.2.00.0030.00617.67
8.1.280.0130.00325.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00820.84
8.1.230.0110.00022.63
8.1.220.0080.00018.62
8.1.210.0040.00418.77
8.1.200.0000.00817.25
8.1.190.0040.00417.22
8.1.180.0000.00918.10
8.1.170.0070.00017.62
8.1.160.0000.00818.74
8.1.150.0040.00418.63
8.1.140.0040.00417.35
8.1.130.0000.00717.84
8.1.120.0040.00417.45
8.1.110.0040.00417.41
8.1.100.0000.00717.39
8.1.90.0030.00317.34
8.1.80.0000.00717.26
8.1.70.0030.00317.37
8.1.60.0030.00617.41
8.1.50.0020.00517.40
8.1.40.0040.00417.43
8.1.30.0030.00617.60
8.1.20.0080.00017.45
8.1.10.0000.00717.36
8.1.00.0000.00817.31
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0040.00418.37
8.0.270.0050.00217.11
8.0.260.0000.00618.57
8.0.250.0050.00316.89
8.0.240.0020.00516.82
8.0.230.0080.00016.95
8.0.220.0030.00316.90
8.0.210.0070.00016.89
8.0.200.0030.00316.98
8.0.190.0060.00316.91
8.0.180.0000.00716.93
8.0.170.0000.01016.89
8.0.160.0020.00516.96
8.0.150.0060.00316.78
8.0.140.0090.00016.71
8.0.130.0030.00313.36
8.0.120.0000.00716.84
8.0.110.0000.00816.72
8.0.100.0000.00816.95
8.0.90.0000.01017.00
8.0.80.0070.00716.77
8.0.70.0050.00316.91
8.0.60.0090.00016.95
8.0.50.0050.00316.82
8.0.30.0000.01717.04
8.0.20.0090.00916.88
8.0.10.0040.00416.91
8.0.00.0060.01216.89
7.4.330.0050.00012.87
7.4.320.0000.00716.54
7.4.300.0000.00716.45
7.4.290.0000.00716.44
7.4.280.0060.00316.46
7.4.270.0030.00316.30
7.4.260.0030.00313.11
7.4.250.0000.00816.33
7.4.240.0030.00316.50
7.4.230.0000.00716.55
7.4.220.0090.00916.55
7.4.210.0100.00716.52
7.4.200.0050.00316.49
7.4.190.0080.00016.49
7.4.160.0030.01316.59
7.4.150.0070.01116.53
7.4.140.0120.00816.41
7.4.130.0160.00316.40
7.4.120.0000.01716.34
7.4.110.0070.01016.21
7.4.100.0100.00716.71
7.4.90.0080.01116.33
7.4.80.0080.00819.39
7.4.70.0140.00316.54
7.4.60.0040.01416.30
7.4.50.0030.00316.34
7.4.40.0100.00616.27
7.4.30.0070.01116.41
7.4.00.0120.00314.83
7.3.330.0030.00313.04
7.3.320.0070.00013.07
7.3.310.0000.00716.20
7.3.300.0070.00016.26
7.3.290.0040.00416.23
7.3.280.0110.00616.22
7.3.270.0140.00316.28
7.3.260.0100.00616.30
7.3.250.0100.00716.28
7.3.240.0160.00016.34
7.3.230.0030.01416.41
7.3.210.0070.01016.20
7.3.200.0070.00716.19
7.3.190.0140.00516.37
7.3.180.0130.00716.28
7.3.170.0090.00616.32
7.3.160.0090.00616.20
7.3.120.0070.01014.73
7.3.110.0030.01014.68
7.3.100.0090.00614.45
7.3.90.0060.00814.69
7.3.80.0130.00014.71
7.3.70.0070.00714.76
7.3.60.0110.00014.78
7.3.50.0030.01014.71
7.3.40.0070.00714.76
7.3.30.0070.00314.53
7.3.20.0040.01116.50
7.3.10.0050.00816.18
7.3.00.0030.01216.50
7.2.330.0070.01016.39
7.2.320.0040.01716.22
7.2.310.0140.01016.61
7.2.300.0130.00316.60
7.2.290.0110.01116.44
7.2.240.0060.00915.03
7.2.230.0030.01014.54
7.2.220.0030.01014.79
7.2.210.0090.00314.88
7.2.200.0100.00714.60
7.2.190.0100.00714.95
7.2.180.0060.00914.84
7.2.170.0030.00714.96
7.2.160.0140.00015.03
7.2.150.0060.00616.70
7.2.140.0070.00716.89
7.2.130.0090.00516.52
7.2.120.0120.00716.70
7.2.110.0020.01416.76
7.2.100.0080.00816.56
7.2.90.0090.00916.52
7.2.80.0050.01016.62
7.2.70.0080.00616.68
7.2.60.0110.00616.66
7.2.50.0060.01216.75
7.2.40.0080.00816.62
7.2.30.0050.01116.55
7.2.20.0070.01116.65
7.2.10.0030.01016.44
7.2.00.0050.00917.80
7.1.330.0110.00415.58
7.1.320.0070.00415.55
7.1.310.0070.00715.44
7.1.300.0110.00315.69
7.1.290.0060.00915.79
7.1.280.0030.01315.71
7.1.270.0100.00315.49
7.1.260.0000.00915.73
7.1.250.0120.00515.63
7.1.200.0040.00815.64
7.1.100.0060.00318.06
7.1.70.0040.01117.21
7.1.60.0070.01719.31
7.1.50.0080.01216.57
7.1.00.0030.05722.48
7.0.200.0260.00314.63
7.0.140.0070.06722.09
7.0.110.0000.04319.86
7.0.100.0070.08320.01
7.0.90.0030.04719.96
7.0.80.0070.07019.93
7.0.70.0070.06019.87
7.0.60.0100.06720.10
7.0.50.0000.08720.09
7.0.40.0130.06719.59
7.0.30.0070.04019.74
7.0.20.0030.03719.74
7.0.10.0100.04319.77
7.0.00.0030.07719.74
5.6.280.0030.07321.14
5.6.260.0100.05020.66
5.6.250.0130.07320.73
5.6.240.0130.07020.71
5.6.230.0100.03020.70
5.6.220.0070.07720.69
5.6.210.0030.05020.59
5.6.200.0070.07020.65
5.6.190.0000.08720.65
5.6.180.0070.08020.63
5.6.170.0030.08320.60
5.6.160.0100.05320.66
5.6.150.0030.03720.55
5.6.140.0070.05320.58
5.6.130.0100.07020.55
5.6.120.0130.03020.63
5.6.110.0100.03320.45
5.6.100.0100.07720.60
5.6.90.0030.03720.58
5.6.80.0030.07719.94
5.6.70.0100.03719.93
5.6.60.0100.04719.92
5.6.50.0070.04719.98
5.6.40.0030.07319.82
5.6.30.0070.08020.05
5.6.20.0070.06719.82
5.6.10.0070.05719.94
5.6.00.0100.05719.99
5.5.380.0030.04317.46
5.5.370.0100.07717.63
5.5.360.0030.04717.52
5.5.350.0030.04317.52
5.5.340.0030.06018.01
5.5.330.0100.04717.77
5.5.320.0130.05717.86
5.5.310.0030.07318.13
5.5.300.0130.05318.25
5.5.290.0070.03717.84
5.5.280.0100.05317.98
5.5.270.0130.06317.86
5.5.260.0000.04318.00
5.5.250.0070.04017.94
5.5.240.0000.03717.15
5.5.230.0070.07717.53
5.5.220.0030.05717.47
5.5.210.0100.06717.40
5.5.200.0000.04317.18
5.5.190.0000.04717.36
5.5.180.0070.03717.20
5.5.160.0070.07017.47
5.5.150.0170.03017.44
5.5.140.0170.06317.11
5.5.130.0170.03717.46
5.5.120.0100.07017.23
5.5.110.0030.06317.48
5.5.100.0070.07317.10
5.5.90.0030.05317.38
5.5.80.0030.08017.14
5.5.70.0030.05017.37
5.5.60.0000.04016.96
5.5.50.0100.03717.23
5.5.40.0070.03017.49
5.5.30.0070.04017.08
5.5.20.0030.07017.22
5.5.10.0100.03317.36
5.5.00.0030.04017.33
5.4.450.0030.07319.28
5.4.440.0030.06319.30
5.4.430.0070.07319.25
5.4.420.0000.05719.63
5.4.410.0030.03319.46
5.4.400.0030.05719.27
5.4.390.0030.06019.02
5.4.380.0170.06318.93
5.4.370.0070.06318.96
5.4.360.0100.07019.00
5.4.350.0070.06318.98
5.4.340.0070.03319.12
5.4.320.0100.05019.07
5.4.310.0030.07719.04
5.4.300.0030.04018.94
5.4.290.0100.06319.02
5.4.280.0030.04019.07
5.4.270.0030.08718.98
5.4.260.0070.04018.98
5.4.250.0100.07319.27
5.4.240.0070.03319.11
5.4.230.0030.05019.18
5.4.220.0000.05719.16
5.4.210.0070.08019.00
5.4.200.0030.05719.02
5.4.190.0030.07019.17
5.4.180.0030.04719.10
5.4.170.0070.03318.92
5.4.160.0030.07318.98
5.4.150.0070.07019.00
5.4.140.0130.02716.17
5.4.130.0070.05316.26
5.4.120.0030.07316.23
5.4.110.0130.06316.50
5.4.100.0000.05016.41
5.4.90.0070.03016.50
5.4.80.0000.03316.37
5.4.70.0070.08016.46
5.4.60.0070.03016.23
5.4.50.0030.03016.45
5.4.40.0030.03716.52
5.4.30.0070.07316.49
5.4.20.0030.04316.48
5.4.10.0000.07016.51
5.4.00.0070.07315.71
5.3.290.0100.07314.68
5.3.280.0070.03714.54
5.3.270.0030.03714.41
5.3.260.0000.05314.49
5.3.250.0030.03314.47
5.3.240.0030.06714.50
5.3.230.0030.06014.54
5.3.220.0070.04714.40
5.3.210.0100.02714.58
5.3.200.0070.03014.63
5.3.190.0070.07314.46
5.3.180.0000.04014.45
5.3.170.0070.03014.42
5.3.160.0070.06014.51
5.3.150.0100.03014.58
5.3.140.0030.04014.43
5.3.130.0070.04014.50
5.3.120.0030.04014.40
5.3.110.0070.05014.38
5.3.100.0030.08013.98
5.3.90.0030.05013.91
5.3.80.0000.03713.91
5.3.70.0000.04313.89
5.3.60.0000.05014.02
5.3.50.0100.02714.05
5.3.40.0070.03713.90
5.3.30.0130.06313.93
5.3.20.0000.03313.63
5.3.10.0000.03713.49
5.3.00.0030.03013.50
5.2.170.0000.03012.07
5.2.160.0030.05012.07
5.2.150.0000.03012.07
5.2.140.0000.03312.07
5.2.130.0100.03312.07
5.2.120.0000.04012.07
5.2.110.0000.03712.07
5.2.100.0070.03712.07
5.2.90.0000.05312.07
5.2.80.0070.02312.07
5.2.70.0000.07012.07
5.2.60.0030.03712.07
5.2.50.0070.04312.07
5.2.40.0070.02712.07
5.2.30.0070.02712.07
5.2.20.0030.05312.07
5.2.10.0030.05012.07
5.2.00.0070.05312.07
5.1.60.0130.04012.07
5.1.50.0070.05012.07
5.1.40.0000.04312.07
5.1.30.0030.04312.07
5.1.20.0030.02312.07
5.1.10.0000.03312.07
5.1.00.0030.04312.07
5.0.50.0070.04012.07
5.0.40.0000.04712.07
5.0.30.0000.05012.07
5.0.20.0100.03712.07
5.0.10.0070.02312.07
5.0.00.0030.04312.07
4.4.90.0070.02312.07
4.4.80.0000.01712.07
4.4.70.0030.03312.07
4.4.60.0070.02712.07
4.4.50.0000.02312.07
4.4.40.0070.04712.07
4.4.30.0070.02712.07
4.4.20.0000.02012.07
4.4.10.0130.02012.07
4.4.00.0000.04712.07
4.3.110.0030.03312.07
4.3.100.0030.02712.07
4.3.90.0000.03012.07
4.3.80.0070.02012.07
4.3.70.0070.03312.07
4.3.60.0000.01712.07
4.3.50.0000.01712.07
4.3.40.0030.04312.07
4.3.30.0000.01712.07
4.3.20.0000.03312.07
4.3.10.0030.03312.07
4.3.00.0000.02312.07

preferences:
48.02 ms | 401 KiB | 5 Q